From: s at vtit dot kuzstu dot ru Operating system: possibly any PHP version: Irrelevant PHP Bug Type: Scripting Engine problem Bug description: __LINE__ miscounts by several lines [script without a # sign at the top]
Description: ------------ While debugging and getting some error I receive the error in wrong line number. I suppose strict errors, not like a missing bracket or something like that. For example unknown method, variable and something like that. So, line number can be defined surely. After than I've played with __LINE__ and I've got a result. It reported some strange number of line. I suppose it's linked to CR, LF: i can reproduce this bug hard ;) So, the url is included in bugreport. Good luck. I had this bug before and find it very annoying. Some replics of others in the Internet doesn't answer at all. P.S. Script doesn't have a # sign at the top. Reproduce code: --------------- The page with links to 2 tests and 2 source codes: http://key.users.kemcity.ru/ Direct Links Test1: http://key.users.kemcity.ru/index1.php Test2: http://key.users.kemcity.ru/index2.php Source Code Source1: http://key.users.kemcity.ru/index1.txt Source2: http://key.users.kemcity.ru/index2.txt Expected result: ---------------- Test1: Does 10=10? [/www/htdocs/users/homepage/key/index1.php] Test2: Does 7=7? [/www/htdocs/users/homepage/key/index2.php] Actual result: -------------- Test1: Does 4=10? [/www/htdocs/users/homepage/key/index1.php] Test2: Does 4=7? [/www/htdocs/users/homepage/key/index2.php] -- Edit bug report at http://bugs.php.net/?id=28643&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28643&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28643&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28643&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28643&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28643&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28643&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28643&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28643&r=support Expected behavior: http://bugs.php.net/fix.php?id=28643&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28643&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28643&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28643&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28643&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28643&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28643&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28643&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28643&r=float