mirror of
https://github.com/php/php-src.git
synced 2024-11-27 11:53:33 +08:00
d30cd7d7e7
Closes GH-5590
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
|