1
0
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:
Tim Düsterhus
2025-07-01 20:24:11 +02:00
committed by GitHub
parent f71271dbaa
commit 59dd0f8a48
6 changed files with 8 additions and 21 deletions

View File

@@ -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

View File

@@ -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