From:             [EMAIL PROTECTED]
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

Reply via email to