From 22878f0ea23deb56708f32cbd64209ad958d6736 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Wed, 23 Apr 2008 16:50:19 +0000 Subject: [PATCH] new test for valid callback that fails for rewrite callback --- ext/phar/tests/files/frontcontroller16.phar | Bin 330 -> 330 bytes ext/phar/tests/files/frontcontroller17.phar | Bin 0 -> 315 bytes ext/phar/tests/files/frontcontroller17.phar.inc | 16 ++++++++++++++++ ext/phar/tests/frontcontroller32.phpt | 14 ++++++++++++++ 4 files changed, 30 insertions(+) create mode 100644 ext/phar/tests/files/frontcontroller17.phar create mode 100644 ext/phar/tests/files/frontcontroller17.phar.inc create mode 100644 ext/phar/tests/frontcontroller32.phpt diff --git a/ext/phar/tests/files/frontcontroller16.phar b/ext/phar/tests/files/frontcontroller16.phar index 66fc1457082df566e95aee9f46ace7fdf7a4dff3..cce5db5bb5bc3f8fd50148f18cb217c4634e5bab 100644 GIT binary patch delta 43 zcmV+`0M!4=0?Gog2>}AzXp;*8BOJ3(+{xEwD&Ktj`rVaKEjOxGv`PX1002iqO+tuO B5fcCa delta 43 zcmV+`0M!4=0?Gog2>}AqUy};~BOIN#q@%d!PVXOn!k|};Qb0-OuloW3002iqO+tfT B5kmj~ diff --git a/ext/phar/tests/files/frontcontroller17.phar b/ext/phar/tests/files/frontcontroller17.phar new file mode 100644 index 0000000000000000000000000000000000000000..b83d41fd5b8dc4be713bd8f0961d1b1835535ab0 GIT binary patch literal 315 zcmcDqFUTn1Dk-W|sOAdDNG!6lDo;%UF*KA)Qj1IU3V=){9R(%*%)FG;3Lv)t$jd9u z$mLz8=Xt-7+rxuiC=I1G>q-p|9PRUHwP)XIb zOHVEFO)V}?Oi$I&RM1mUipc|O<4R4=$X8Ix&o3xeNXbl5$jdKLC@ReZ%35=kB^Je} zl;##_sKmSah3P1$#0R?ug}DX+t&5NMaP$d@clP%U@bqyF($KV4u(#voGG}05U<6`8 zC=H~5fD?$}egH|`&EWR{(OzL!y0?MU1Az@VG$5|Y$OPK{^4%Qi{KVtuJ$9{X;Ep<= Q6kXB3g$bz8-O1Mp0Hn}aTL1t6 literal 0 HcmV?d00001 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 -- 2.50.1