ID: 28643 User updated by: key at kemcity dot ru Reported By: key at kemcity dot ru Status: Bogus Bug Type: Scripting Engine problem Operating System: possibly any PHP Version: Irrelevant New Comment:
ok. I'll try,. Thanks for solution. It was a pleasure to get the answer so soon. ;) And anyway I can't understand why I can't use the deffierent kind of newline symbol ;))) Previous Comments: ------------------------------------------------------------------------ [2004-06-05 16:41:56] key at kemcity dot ru Ok. Try the next urls: http://soft.kemcity.ru/test/index.htm or http://users.info.kuzbass.net/~key/test/index.htm Direct Links: Test1 http://soft.kemcity.ru/test/index1.php or http://users.info.kuzbass.net/~key/test/index1.php Test2 http://soft.kemcity.ru/test/index2.php or http://users.info.kuzbass.net/~key/test/index2.php Source Code1: http://soft.kemcity.ru/test/index1.txt or http://users.info.kuzbass.net/~key/test/index1.txt Source Code2: http://soft.kemcity.ru/test/index1.txt or http://users.info.kuzbass.net/~key/test/index1.txt ------------------------------------------------------------------------ [2004-06-05 16:35:34] [EMAIL PROTECTED] No, you just need to use ONE style of line endings, this is not a bug and thus we mark it as bogus. ------------------------------------------------------------------------ [2004-06-05 16:33:34] key at kemcity dot ru And I found, that when I change the $0d symbol with $0a symbol, __LINES__ corrected. Replace inside of constructions like arrays [even big ones] doesn't do anything. The only problem is that my editor (FaR manager) uses $0d and $0a in mixed order [i suppose exactly as previous newline], notepad uses $0d$0a strictly. As far as I know, unix editor use the one symbol for newline. Is this a solution? To use only an $0d$0a for newline? ------------------------------------------------------------------------ [2004-06-05 16:24:48] [EMAIL PROTECTED] The URLs you provided don't work (can't be resolved). ------------------------------------------------------------------------ [2004-06-05 16:06:11] key at kemcity dot ru 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 this bug report at http://bugs.php.net/?id=28643&edit=1