xref: /PHP-7.2/Zend/tests/bug51791.phpt (revision a8cad398)
1--TEST--
2Bug #51791 (constant() failed to check undefined constant and php interpreter stoped)
3--FILE--
4<?php
5
6class A  {
7    const B = 1;
8}
9var_dump(constant('A::B1'));
10
11?>
12--EXPECTF--
13Warning: constant(): Couldn't find constant A::B1 in %s on line %d
14NULL
15