[PHP-DEV] Bug #10631 Updated: Incorrectly reported line number on errors with Mac line-breaks From: andi <email protected>
Date: 05/03/01

ID: 10631
Updated by: andi
Reported By: basil.hussain <email protected>
Old-Status: Open
Status: Closed
Bug Type: Scripting Engine problem
PHP Version: 4.0.4pl1
Assigned To:
Comments:

Should be fixed in 4.0.6.
Please open a new bug report if the problem persists with 4.0.6

Previous Comments:
---------------------------------------------------------------------------

[2001-05-03 07:02:55] basil.hussain <email protected>
Thanks, but unfortunately I can't test it myself as my servers have no C compilation facilities (for security purposes, etc.), so I'll have to wait.

Once 4.0.6 is out, though, if it doesn't solve this problem, I'll post back to this bug report.

---------------------------------------------------------------------------

[2001-05-03 06:26:59] derick <email protected>
This is likely fixed in the CVS now. PHP 4.0.6 will have it. Can you please try the latest CVS of PHP (and Zend) to test if it works now?

---------------------------------------------------------------------------

[2001-05-03 06:21:10] basil.hussain <email protected>
When a file is saved using Macintosh-style line breaks
('r') and there is some kind of error in the script (maybe
a parse error, etc.) then the line number that is reported
is always line 1.

It's a fairly minor thing, but annoying nonetheless. A
workaround, obviously, is to make sure you save your
scripts with Unix line-breaks ('n').

This sounds like it's related to (and may have been fixed
along with) bug #10578. However, in my experience it has
been in existence since PHP 4 was first released and
possibly even in PHP3. Maybe I should have reported it
sooner... :)

---------------------------------------------------------------------------

ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10631&edit=2

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>