summaryrefslogtreecommitdiff
path: root/ext/phar/tests/frontcontroller24.phpt
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2008-04-21 17:46:24 +0000
committerGreg Beaver <cellog@php.net>2008-04-21 17:46:24 +0000
commit2f56c7f3435f9df8fb44c41b5284383558d84b8b (patch)
tree24cc096db437a50a58c7bde062da87750cf3e57f /ext/phar/tests/frontcontroller24.phpt
parentcfc12b2afe4268a7439d7c09514fc97fc34a7cfa (diff)
downloadphp-git-2f56c7f3435f9df8fb44c41b5284383558d84b8b.tar.gz
new test for custom 404 handler, fix segfault found by test
Diffstat (limited to 'ext/phar/tests/frontcontroller24.phpt')
-rw-r--r--ext/phar/tests/frontcontroller24.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/phar/tests/frontcontroller24.phpt b/ext/phar/tests/frontcontroller24.phpt
new file mode 100644
index 0000000000..dca5a693cd
--- /dev/null
+++ b/ext/phar/tests/frontcontroller24.phpt
@@ -0,0 +1,14 @@
+--TEST--
+Phar front controller with custom 404 php script
+--SKIPIF--
+<?php if (!extension_loaded("phar")) die("skip"); ?>
+--ENV--
+SCRIPT_NAME=/frontcontroller24.php
+REQUEST_URI=/frontcontroller24.php/unknown/file
+PATH_INFO=/unknown/file
+--FILE_EXTERNAL--
+files/frontcontroller8.phar
+--EXPECTHEADERS--
+Content-type: text/html
+--EXPECTF--
+My 404 is rawesome \ No newline at end of file