]> granicus.if.org Git - php/commitdiff
add test case for inability to open extract_list file
authorGreg Beaver <cellog@php.net>
Mon, 14 Apr 2008 17:21:49 +0000 (17:21 +0000)
committerGreg Beaver <cellog@php.net>
Mon, 14 Apr 2008 17:21:49 +0000 (17:21 +0000)
ext/phar/tests/fopen_edgecases.phpt

index fd34a30a209b2e3573cabd815bc3a8c37cbffdcc..d4c71fd0e876f76cd1ac520c980a73e5a1f69f60 100644 (file)
@@ -26,6 +26,9 @@ file_put_contents($fname2, '<?php oh crap __HALT_COMPILER();');
 $a = fopen($pname2 . '/hi', 'w');
 $a = fopen('phar://', 'r');
 $a = fopen('phar://foo.phar', 'r');
+
+ini_set('phar.extract_list', 'test.phar=' . dirname(__FILE__) . '/ump');
+$a = fopen('phar://test.phar/oops', 'r');
 ?>
 
 ===DONE===
@@ -44,4 +47,6 @@ Warning: fopen(phar://): failed to open stream: phar error: no directory in "pha
 
 Warning: fopen(phar://foo.phar): failed to open stream: operation failed in %sfopen_edgecases.php on line %d
 
+Warning: fopen(phar://test.phar/oops): failed to open stream: phar error: file "oops" extracted from "test.phar" could not be opened in %sfopen_edgecases.php on line %d
+
 ===DONE===
\ No newline at end of file