mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
213b666781
These error conditions throw in the function implementations, make the opcodes match.
15 lines
233 B
PHP
15 lines
233 B
PHP
--TEST--
|
|
Calling get_called_class() outside a class
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
var_dump(get_called_class());
|
|
} catch (Error $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
get_called_class() must be called from within a class
|