#44988 [Opn->Bgs]: E_NOTICE error when referring to line
ID: 44988
Updated by: jani@php.net
Reported By: lgandras at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
-Operating System: WINDOWS AND LINUX
+Operating System: *
PHP Version: 5.2.6
New Comment:
That's where the line begins. No bug here.
Previous Comments:
------------------------------------------------------------------------
[2008-05-13 22:55:55] lgandras at hotmail dot com
Description:
------------
When error_reporting is set to E_ALL and a variable that is undefined
is concatenated, the line of the E_NOTICE error is set to the last line
of the concatenation.
Reproduce code:
---------------
<?php
error_reporting(E_ALL);
$undefined .=
"some string";
?>
Expected result:
----------------
Notice: Undefined variable: undefined in C:\Documents and
Settings\Andras Gyomrey\Mis documentos\www\error.php on line 3
Actual result:
--------------
Notice: Undefined variable: undefined in C:\Documents and
Settings\Andras Gyomrey\Mis documentos\www\error.php on line 4
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44988&edit=1
Thread (3 messages)