ID:               38324
 Updated by:       [EMAIL PROTECTED]
 Reported By:      ftl_ at freemail dot hu
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Linux / Windows
 PHP Version:      5.1.4
 New Comment:

The engine tries to resolve UNDEFINED_CONSTANT in runtime, because it
can be defined in previously included files (which are included in
runtime too) or somewhere else.
So the behaviour is expected and the error message is correct.


Previous Comments:
------------------------------------------------------------------------

[2006-08-04 03:29:35] ftl_ at freemail dot hu

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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38324&edit=1

Reply via email to