From: Greg Beaver Date: Wed, 23 Apr 2008 16:50:19 +0000 (+0000) Subject: new test for valid callback that fails for rewrite callback X-Git-Tag: RELEASE_2_0_0b1~255 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22878f0ea23deb56708f32cbd64209ad958d6736;p=php new test for valid callback that fails for rewrite callback --- diff --git a/ext/phar/tests/files/frontcontroller16.phar b/ext/phar/tests/files/frontcontroller16.phar index 66fc145708..cce5db5bb5 100644 Binary files a/ext/phar/tests/files/frontcontroller16.phar and b/ext/phar/tests/files/frontcontroller16.phar differ diff --git a/ext/phar/tests/files/frontcontroller17.phar b/ext/phar/tests/files/frontcontroller17.phar new file mode 100644 index 0000000000..b83d41fd5b Binary files /dev/null and b/ext/phar/tests/files/frontcontroller17.phar differ diff --git a/ext/phar/tests/files/frontcontroller17.phar.inc b/ext/phar/tests/files/frontcontroller17.phar.inc new file mode 100644 index 0000000000..85b8729f31 --- /dev/null +++ b/ext/phar/tests/files/frontcontroller17.phar.inc @@ -0,0 +1,16 @@ +setStub('getMessage() . "\n"); +} +echo "oops did not run\n"; +var_dump($_ENV, $_SERVER); +__HALT_COMPILER();'); +?> diff --git a/ext/phar/tests/frontcontroller32.phpt b/ext/phar/tests/frontcontroller32.phpt new file mode 100644 index 0000000000..c463bbb683 --- /dev/null +++ b/ext/phar/tests/frontcontroller32.phpt @@ -0,0 +1,14 @@ +--TEST-- +Phar front controller with valid callback that is not good +--SKIPIF-- + +--ENV-- +SCRIPT_NAME=/frontcontroller32.php +REQUEST_URI=/frontcontroller32.php +--EXPECTHEADERS-- +Content-type: text/html +--FILE_EXTERNAL-- +files/frontcontroller17.phar +--EXPECTF-- +Warning: Parameter 1 to sort() expected to be a reference, value given in %sfrontcontroller32.php on line 3 +phar error: failed to call rewrite callback \ No newline at end of file