Bug #16535: Line breaks not correctly counted when file has Mac line endings

From: Date: Wed, 10 Apr 2002 20:26:43 +0000
Subject: Bug #16535: Line breaks not correctly counted when file has Mac line endings
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-4553@lists.php.net to get a copy of this message
From: danradigan@yahoo.com Operating system: Mac OS X PHP version: 4.1.2 PHP Bug Type: Scripting Engine problem Bug description: Line breaks not correctly counted when file has Mac line endings 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 less than the line it occured on. In my script PHP told me line 84, but it was actually 93. 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'). -- Edit bug report at http://bugs.php.net/?id=16535&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16535&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16535&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16535&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16535&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16535&r=support Expected behavior: http://bugs.php.net/fix.php?id=16535&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16535&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16535&r=submittedtwice

« previous php.bugs (#4553) next »