ID:               44988
 User updated by:  lgandras at hotmail dot com
 Reported By:      lgandras at hotmail dot com
 Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: *
 PHP Version:      5.2.6
 New Comment:

I meant for example that if i put:

<?php
error_reporting(E_ALL);
$undefined .= 
"some".
"buggy ".
"string ";
?>

The message would say the line of the error would be the sixth  instead
of the third. My problem came when i was looking for the "undefined"
variable. It is right, that the value will be set, when the hole string
is parsed. But I don't think that the common interest is where the
string is completely parsed, but the line where the undefined variable
resides.


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

[2008-05-14 07:44:03] [EMAIL PROTECTED]

That's where the line begins. No bug here.

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

[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

Reply via email to