#44988 [Bgs]: E_NOTICE error when referring to line

From: Date: Wed, 14 May 2008 18:14:30 +0000
Subject: #44988 [Bgs]: E_NOTICE error when referring to line
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-124997@lists.php.net to get a copy of this message
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] jani@php.net 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

« previous php.bugs (#124997) next »