summaryrefslogtreecommitdiff
path: root/Zend/tests/bug76667.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug76667.phpt')
-rw-r--r--Zend/tests/bug76667.phpt21
1 files changed, 6 insertions, 15 deletions
diff --git a/Zend/tests/bug76667.phpt b/Zend/tests/bug76667.phpt
index cc5abb4372..03bd490a04 100644
--- a/Zend/tests/bug76667.phpt
+++ b/Zend/tests/bug76667.phpt
@@ -16,23 +16,14 @@ class T {
}
$x = new T;
-$x->x = 1;
+try {
+ $x->x = 1;
+} catch (\DivisionByZeroError $e) {
+ echo $e->getMessage() . \PHP_EOL;
+}
?>
--EXPECTF--
Warning: Undefined variable $undefined in %s on line %d
Warning: Attempt to read property "1" on null in %s on line %d
-
-Warning: Division by zero in %s on line %d
-
-Warning: Undefined variable $undefined in %s on line %d
-
-Warning: Attempt to read property "NAN" on null in %s on line %d
-
-Warning: Division by zero in %s on line %d
-
-Warning: Undefined variable $undefined in %s on line %d
-
-Warning: Attempt to read property "NAN" on null in %s on line %d
-
-Warning: Division by zero in %s on line %d
+Division by zero