mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Zend: Use zend_bad_method_call() when cloning from the wrong scope (#18999)
This commit is contained in:
@@ -17,4 +17,4 @@ try {
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
Error: Call to protected test::__clone() from global scope
|
||||
Error: Call to protected method test::__clone() from global scope
|
||||
|
||||
@@ -17,4 +17,4 @@ try {
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
Error: Call to private test::__clone() from global scope
|
||||
Error: Call to private method test::__clone() from global scope
|
||||
|
||||
Reference in New Issue
Block a user