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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: laan at home dot nl
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

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

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 20:01:30 2025 UTC