mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
Changed error messages
This commit is contained in:
parent
8a83fee12a
commit
58747dff3a
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
Parse error: syntax error, unexpected 'echo' (T_ECHO), expecting function (T_FUNCTION) in phar:///%sfatal_error_webphar.php/Web/View.php on line 380
|
||||
|
|
|
@ -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__));
|
||||
|
|
|
@ -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===
|
||||
===DONE===
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue