]> granicus.if.org Git - php/commitdiff
Changed error messages
authorHannes Magnusson <bjori@php.net>
Mon, 29 Aug 2011 14:29:40 +0000 (14:29 +0000)
committerHannes Magnusson <bjori@php.net>
Mon, 29 Aug 2011 14:29:40 +0000 (14:29 +0000)
ext/phar/tests/fatal_error_webphar.phpt
ext/phar/tests/fgc_edgecases.phpt
ext/phar/tests/readfile_edgecases.phpt

index 80efaa9ed1d0f805e9403be1d4e6c1bf39daf2e7..9d0970d17833cb7288f11502cdff22c7570a228b 100644 (file)
@@ -15,4 +15,4 @@ Content-type: text/html; charset=UTF-8
 --EXPECTF--
 string(9) "\Web\View"
 
-Parse error: syntax error, unexpected T_ECHO, expecting T_FUNCTION in phar://%sfatal_error_webphar.php/Web/View.php on line 380
\ No newline at end of file
+Parse error: syntax error, unexpected 'echo' (T_ECHO), expecting function (T_FUNCTION) in phar:///%sfatal_error_webphar.php/Web/View.php on line 380
index b943546963b1cf1d398a6afc67346bcc694ea373..2699834eb0cd5b1b079c594bfb0c6e1adc0eb4be 100644 (file)
@@ -47,7 +47,7 @@ include $pname . '/foo/hi';
 <?php rmdir(dirname(__FILE__) . '/poo'); ?>
 <?php unlink(dirname(__FILE__) . '/foob'); ?>
 --EXPECTF--
-Warning: file_get_contents() expects parameter 1 to be string, array given in %sfgc_edgecases.php on line %d
+Warning: file_get_contents() expects parameter 1 to be a valid path, array given in %sfgc_edgecases.php on line %d
 blah
 <?php
 echo file_get_contents("foo/" . basename(__FILE__));
index 2c93c8b2214dc4cc0f4b623dd493d4f3c9d115f2..3cf69edb9a38454d884ec35276d6d1dad093c334 100644 (file)
@@ -36,7 +36,7 @@ include $pname . '/foo/hi';
 <?php rmdir(dirname(__FILE__) . '/poo'); ?>
 <?php unlink(dirname(__FILE__) . '/foob'); ?>
 --EXPECTF--
-Warning: readfile() expects parameter 1 to be string, array given in %sreadfile_edgecases.php on line %d
+Warning: readfile() expects parameter 1 to be a valid path, array given in %sreadfile_edgecases.php on line %d
 blah
 <?php
 readfile("foo/" . basename(__FILE__));
@@ -60,4 +60,4 @@ readfile("../oops");
 ?>
 
 Warning: readfile(phar://%sreadfile_edgecases.phar.php/oops): failed to open stream: phar error: path "oops" is a directory in phar://%sreadfile_edgecases.phar.php/foo/hi on line %d
-===DONE===
\ No newline at end of file
+===DONE===