Test: /ext/standard/tests/general_functions/bug72920.phpt - Version 7.2.34        

Bug #72920 Accessing a private constant using constant() creates an exception AND warning
Submitted: 2016-08-22 11:27:47 Modified:
From: suralc.github Assigned:
Status: Closed Package: *General Issues
PHP Version: 7.1.0beta3 OS:

There is 1 diff reported by users for this test.

Count Diff
1 (100%)
001+ Warning: constant(): Couldn't find constant Foo::C1 in %s/bug72920.php on line 7
001- string(35) "Cannot access private const Foo::C1"
002+ NULL