summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/bug71220.phpt
diff options
context:
space:
mode:
authorGeorge Peter Banyard <girgias@php.net>2019-08-21 19:35:35 +0200
committerGeorge Peter Banyard <girgias@php.net>2019-08-23 20:01:51 +0200
commit675e975185b21b99dbc5ca47cf2fdd4cd79e68a1 (patch)
tree992c4940f0ef419d077b2f72273239090ca689e1 /ext/standard/tests/array/bug71220.phpt
parent1059e3dc39b65719c414ec0f31f65a77192034ab (diff)
downloadphp-git-675e975185b21b99dbc5ca47cf2fdd4cd79e68a1.tar.gz
Promote warning to error in zend_forbid_dynamic_call()
Diffstat (limited to 'ext/standard/tests/array/bug71220.phpt')
-rw-r--r--ext/standard/tests/array/bug71220.phpt12
1 files changed, 9 insertions, 3 deletions
diff --git a/ext/standard/tests/array/bug71220.phpt b/ext/standard/tests/array/bug71220.phpt
index 49e5bb7719..ed46b25e18 100644
--- a/ext/standard/tests/array/bug71220.phpt
+++ b/ext/standard/tests/array/bug71220.phpt
@@ -3,8 +3,14 @@ Bug #71220 (Null pointer deref (segfault) in compact via ob_start)
--FILE--
<?php
ob_start("compact");
-ob_end_clean();
+try {
+ ob_end_clean();
+} catch (\Error $e) {
+ echo $e->getMessage();
+}
?>
-okey
+
+OKAY
--EXPECT--
-okey
+Cannot call compact() dynamically
+OKAY