php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32185 wrong line in error report
Submitted: 2005-03-04 09:52 UTC Modified: 2005-03-04 16:55 UTC
From: laan at home dot nl Assigned:
Status: Not a bug Package: Output Control
PHP Version: 5.0.3 OS: OSX 10.3.8
Private report: No CVE-ID: None
 [2005-03-04 09:52 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-04 16:55 UTC] sniper@php.net
Works fine here.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 23:01:30 2024 UTC