mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
d30cd7d7e7
Closes GH-5590
18 lines
267 B
PHP
18 lines
267 B
PHP
--TEST--
|
|
Bug #51791 (constant() failed to check undefined constant and php interpreter stopped)
|
|
--FILE--
|
|
<?php
|
|
|
|
class A {
|
|
const B = 1;
|
|
}
|
|
try {
|
|
constant('A::B1');
|
|
} catch (Error $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
Undefined constant A::B1
|