From: Greg Beaver Date: Tue, 22 Apr 2008 17:28:50 +0000 (+0000) Subject: new test for fatal error in php file executed by front controller X-Git-Tag: RELEASE_2_0_0b1~264 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3330c1696782256f3830de18cafed5e1a1c72021;p=php new test for fatal error in php file executed by front controller --- diff --git a/ext/phar/tests/files/frontcontroller8.phar b/ext/phar/tests/files/frontcontroller8.phar index d1b7ee6db8..ec05ceafb0 100644 Binary files a/ext/phar/tests/files/frontcontroller8.phar and b/ext/phar/tests/files/frontcontroller8.phar differ diff --git a/ext/phar/tests/files/frontcontroller8.phar.inc b/ext/phar/tests/files/frontcontroller8.phar.inc index ba568d608a..1dfb654a03 100644 --- a/ext/phar/tests/files/frontcontroller8.phar.inc +++ b/ext/phar/tests/files/frontcontroller8.phar.inc @@ -10,6 +10,7 @@ $a['404.php'] = 'My 404 is rawesome'; $a['noext'] = 'hi'; $a['unknown.ext'] = 'setStub(' "foo/bar", "phps" => Phar::PHP, "php" => Phar::PHPS)); echo "oops did not run\n"; diff --git a/ext/phar/tests/frontcontroller29.phpt b/ext/phar/tests/frontcontroller29.phpt new file mode 100644 index 0000000000..1cd0056fde --- /dev/null +++ b/ext/phar/tests/frontcontroller29.phpt @@ -0,0 +1,14 @@ +--TEST-- +Phar front controller with fatal error in php file +--SKIPIF-- + +--ENV-- +SCRIPT_NAME=/frontcontroller29.php +REQUEST_URI=/frontcontroller29.php/fatalerror.phps +PATH_INFO=/fatalerror.phps +--FILE_EXTERNAL-- +files/frontcontroller8.phar +--EXPECTHEADERS-- +Content-type: text/plain +--EXPECTF-- +Fatal error: Call to undefined function oopsie_daisy() in phar://%sfatalerror.phps on line 1 \ No newline at end of file