summaryrefslogtreecommitdiff
path: root/Zend/tests
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-10-10 11:40:49 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-10-10 11:40:49 +0200
commit96c84b7bc103b8515aa6b59f5f7d773a784786ec (patch)
tree761a82a697112b996416313fef73906b96261961 /Zend/tests
parentdaf1fc6e316d435cee9edd812b904e597e241ae5 (diff)
downloadphp-git-96c84b7bc103b8515aa6b59f5f7d773a784786ec.tar.gz
Fix leak on static method call on non-existent class
Diffstat (limited to 'Zend/tests')
-rw-r--r--Zend/tests/static_method_non_existing_class.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/Zend/tests/static_method_non_existing_class.phpt b/Zend/tests/static_method_non_existing_class.phpt
new file mode 100644
index 0000000000..a395c054c5
--- /dev/null
+++ b/Zend/tests/static_method_non_existing_class.phpt
@@ -0,0 +1,15 @@
+--TEST--
+Calling a static method on a non-existing class
+--FILE--
+<?php
+
+$str = "foo";
+try {
+ Test::{$str . "bar"}();
+} catch (Error $e) {
+ echo $e->getMessage(), "\n";
+}
+
+?>
+--EXPECT--
+Class 'Test' not found