summaryrefslogtreecommitdiff
path: root/tests/classes
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-10-10 14:44:53 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-10-10 14:44:53 +0200
commit2118f6a898297c9705ac652ad38f79590f80885b (patch)
tree01920fbb2d0055ee83887fe58ddd93cb15fa6745 /tests/classes
parentfea482ee5c3bd173d8f5c3523653f79f52d8c189 (diff)
parent4463acb9513dfb62206760c49b3da1fe4d92f40a (diff)
downloadphp-git-2118f6a898297c9705ac652ad38f79590f80885b.tar.gz
Merge branch 'PHP-7.4'
Diffstat (limited to 'tests/classes')
-rw-r--r--tests/classes/static_properties_003_error4.phpt13
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/classes/static_properties_003_error4.phpt b/tests/classes/static_properties_003_error4.phpt
index 6a4eafcd2a..7c54fc42ad 100644
--- a/tests/classes/static_properties_003_error4.phpt
+++ b/tests/classes/static_properties_003_error4.phpt
@@ -8,17 +8,20 @@ class C {
$c = new C;
echo "\n--> Access non-visible static prop like instance prop:\n";
-$c->y =& $ref;
+try {
+ $c->y =& $ref;
+} catch (Error $e) {
+ echo $e, "\n";
+}
?>
==Done==
--EXPECTF--
--> Access non-visible static prop like instance prop:
-
-Fatal error: Uncaught Error: Cannot access protected property C::$y in %s:8
+Error: Cannot access protected property C::$y in %s:9
Stack trace:
#0 {main}
-Next Error: Cannot access protected property C::$y in %s:8
+Next Error: Cannot access protected property C::$y in %s:9
Stack trace:
#0 {main}
- thrown in %s on line 8
+==Done==