-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split test into two due to different outputs
- Loading branch information
Showing
2 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--TEST-- | ||
PEAR_RunTest Bug #10286 - no output from fatal errors displayed. | ||
--SKIPIF-- | ||
<?php | ||
if (version_compare(PHP_VERSION, '8.0.0') >= 0) { | ||
echo 'skip'; | ||
} | ||
?> | ||
--FILE-- | ||
<?php | ||
$oops->method(); | ||
// PHP5: Fatal error: | ||
// PHP7: Catchable fatal error: | ||
?> | ||
--EXPECTF-- | ||
Notice: Undefined variable: oops in %sbug10286-old.php on line %d | ||
|
||
%satal error:%sCall to a member function method() on %s in %sbug10286-old.php on line %d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
--TEST-- | ||
PEAR_RunTest Bug #10286 - no output from fatal errors displayed. | ||
--SKIPIF-- | ||
<?php | ||
if (version_compare(PHP_VERSION, '8.0.0') == -1) { | ||
echo 'skip'; | ||
} | ||
?> | ||
--FILE-- | ||
<?php | ||
$oops->method(); | ||
// PHP5: Fatal error: | ||
// PHP7: Catchable fatal error: | ||
?> | ||
--EXPECTF-- | ||
Notice: Undefined variable: oops in %sbug10286.php on line %d | ||
Warning: Undefined variable $oops in %s/bug10286.php on line %d | ||
|
||
%satal error:%sCall to a member function method() on %s in %sbug10286.php on line %d | ||
Fatal error: Uncaught Error: Call to a member function method() on null in %s/bug10286.php:%d | ||
Stack trace: | ||
#0 {main} | ||
thrown in %s/bug10286.php on line %d |