Skip to content

Commit 58747df

Browse files
committed
Changed error messages
1 parent 8a83fee commit 58747df

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ext/phar/tests/fatal_error_webphar.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ Content-type: text/html; charset=UTF-8
1515
--EXPECTF--
1616
string(9) "\Web\View"
1717

18-
Parse error: syntax error, unexpected T_ECHO, expecting T_FUNCTION in phar://%sfatal_error_webphar.php/Web/View.php on line 380
18+
Parse error: syntax error, unexpected 'echo' (T_ECHO), expecting function (T_FUNCTION) in phar:///%sfatal_error_webphar.php/Web/View.php on line 380

ext/phar/tests/fgc_edgecases.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ include $pname . '/foo/hi';
4747
<?php rmdir(dirname(__FILE__) . '/poo'); ?>
4848
<?php unlink(dirname(__FILE__) . '/foob'); ?>
4949
--EXPECTF--
50-
Warning: file_get_contents() expects parameter 1 to be string, array given in %sfgc_edgecases.php on line %d
50+
Warning: file_get_contents() expects parameter 1 to be a valid path, array given in %sfgc_edgecases.php on line %d
5151
blah
5252
<?php
5353
echo file_get_contents("foo/" . basename(__FILE__));

ext/phar/tests/readfile_edgecases.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ include $pname . '/foo/hi';
3636
<?php rmdir(dirname(__FILE__) . '/poo'); ?>
3737
<?php unlink(dirname(__FILE__) . '/foob'); ?>
3838
--EXPECTF--
39-
Warning: readfile() expects parameter 1 to be string, array given in %sreadfile_edgecases.php on line %d
39+
Warning: readfile() expects parameter 1 to be a valid path, array given in %sreadfile_edgecases.php on line %d
4040
blah
4141
<?php
4242
readfile("foo/" . basename(__FILE__));
@@ -60,4 +60,4 @@ readfile("../oops");
6060
?>
6161

6262
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
63-
===DONE===
63+
===DONE===

0 commit comments

Comments
 (0)