dis-bench / src /php /php-src /Zend /tests /constants /bug51791.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
267 Bytes
--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