|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-05-03 06:26 UTC] derick@php.net
[2001-05-03 07:02 UTC] basil dot hussain at specialreserve dot net
[2001-05-03 07:07 UTC] andi@php.net
[2001-05-03 08:21 UTC] basil dot hussain at specialreserve dot net
[2001-05-03 08:21 UTC] basil dot hussain at specialreserve dot net
[2001-05-03 08:32 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 08:00:02 2025 UTC |
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... :)