mirror of
https://github.com/php/php-src.git
synced 2025-01-02 08:54:04 +08:00
15 lines
258 B
Plaintext
15 lines
258 B
Plaintext
|
--TEST--
|
||
|
Bug #51791 (constant() failed to check undefined constant and php interpreter stoped)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
class A {
|
||
|
const B = 1;
|
||
|
}
|
||
|
var_dump(constant('A::B1'));
|
||
|
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Warning: constant(): Couldn't find constant A::B1 in %s on line %d
|
||
|
NULL
|