| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2006-08-04 09:37 UTC] tony2001@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 10:00:02 2025 UTC | 
Description: ------------ wrong line number for "Use of undefined constant" notice. Reproduce code: --------------- <?php error_reporting(E_ALL); class A { public $a = UNDEFINED_CONSTANT; } $obj = new A; ?> Expected result: ---------------- Notice: Use of undefined constant UNDEFINED_CONSTANT - assumed 'UNDEFINED_CONSTANT' in [..]/test.php on line 4 Actual result: -------------- Notice: Use of undefined constant UNDEFINED_CONSTANT - assumed 'UNDEFINED_CONSTANT' in [..]/test.php on line 6