From 2aa87329db33df5afb54ced94eea08715e9b18f8 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Wed, 23 Apr 2008 16:03:08 +0000 Subject: [PATCH] new test for webPhar failure on opening file --- ext/phar/tests/webphar_compilefail.phpt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ext/phar/tests/webphar_compilefail.phpt diff --git a/ext/phar/tests/webphar_compilefail.phpt b/ext/phar/tests/webphar_compilefail.phpt new file mode 100644 index 0000000000..ab5532d6be --- /dev/null +++ b/ext/phar/tests/webphar_compilefail.phpt @@ -0,0 +1,17 @@ +--TEST-- +Phar: Phar::webPhar, open compiled file fails +--SKIPIF-- + +--INI-- +phar.readonly=1 +--FILE-- +getMessage() . "\n"; +} +__HALT_COMPILER(); +?> +--EXPECTF-- +internal corruption of phar "%swebphar_compilefail.php" (truncated manifest at manifest length) \ No newline at end of file -- 2.50.1