From:             laan at home dot nl
Operating system: OSX 10.3.8
PHP version:      5.0.3
PHP Bug Type:     Output Control
Bug description:  wrong line in error report

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 bug report at http://bugs.php.net/?id=32185&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32185&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32185&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32185&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32185&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32185&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32185&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32185&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32185&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32185&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32185&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32185&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32185&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32185&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32185&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32185&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32185&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32185&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32185&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32185&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32185&r=mysqlcfg

Reply via email to