diff --git a/tests/PEAR_RunTest/bug10286-old.phpt b/tests/PEAR_RunTest/bug10286-old.phpt new file mode 100644 index 000000000..b0fcafb99 --- /dev/null +++ b/tests/PEAR_RunTest/bug10286-old.phpt @@ -0,0 +1,18 @@ +--TEST-- +PEAR_RunTest Bug #10286 - no output from fatal errors displayed. +--SKIPIF-- += 0) { + echo 'skip'; +} +?> +--FILE-- +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 diff --git a/tests/PEAR_RunTest/bug10286.phpt b/tests/PEAR_RunTest/bug10286.phpt index ccf9a567b..ace407d4f 100644 --- a/tests/PEAR_RunTest/bug10286.phpt +++ b/tests/PEAR_RunTest/bug10286.phpt @@ -1,5 +1,11 @@ --TEST-- PEAR_RunTest Bug #10286 - no output from fatal errors displayed. +--SKIPIF-- + --FILE-- method(); @@ -7,6 +13,9 @@ $oops->method(); // 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