mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
16 lines
215 B
PHP
16 lines
215 B
PHP
--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
|