#32185 [Opn->Bgs]: wrong line in error report

From: Date: Fri, 04 Mar 2005 15:55:16 +0000
Subject: #32185 [Opn->Bgs]: wrong line in error report
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-76810@lists.php.net to get a copy of this message
ID: 32185 Updated by: sniper@php.net Reported By: laan at home dot nl -Status: Open +Status: Bogus Bug Type: Output Control Operating System: OSX 10.3.8 PHP Version: 5.0.3 New Comment: Works fine here. Previous Comments: ------------------------------------------------------------------------ [2005-03-04 09:52:30] laan at home dot nl Description: ------------ I'm a bit of a newbie at php, but when I make a "typo" in the code the error reported indicates the wrong line. example: info.php error in line 8 : phponfo() I checked it against a netbased server running php4.3.10 which displayes it correctly. Reproduce code: --------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>phpinfo()</title> </head> <body> <?php phponfo()?> </body> </html> Expected result: ---------------- Fatal error: Call to undefined function phponfo() in / Users/bert/Sites/php5/info.php on line 8 Actual result: -------------- Fatal error: Call to undefined function phponfo() in / Users/bert/Sites/php5/info.php on line 7 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32185&edit=1

« previous php.bugs (#76810) next »