[resolved] </script> skews line numbers |
Site Admin
|
it looks like a well-known bug in php itself. Sometimes it can't count the lines properly. It may happen if a) you have #!/usr/bin/php or something like this in the first line b) your file uses Mac-style line endings (at least for some of the lines) c) there is at least one HEREDOC in your file d) there is </script> in your code Debugger has nothing to do with this as it's php count line numbers. To make sure that you faced up with php problem, just create an error (echo uninitialized variable) in your script and compare line number (in E_NOTICE) with actual one. You may want to submit this bug to http://bugs.php.net/ BTW, what php version do you use? I did not see this bug for very long time, ~ 2years. At least I don't see it in php 4.4.2+ and 5.2.1+.
double-click is not supposed to expand/collapse the nodes in the tree. Please click on [+] and [-] marks or press + and - keys in the keyboard.
You may want to use / and * keys. |
||||||||||||||||||
Last edited by dmitri on Sat Feb 09, 2008 11:42 am; edited 1 time in total _________________ The PHP IDE team |
|
Hello Dmitri,
thanks for your help! I couldn't think of any of the first suggestions to check you gave (a - c), so I wasn't sure where to look at. Finally, I went through that particular file again and found several occurences where there was code lines like this:
Eventually, after editing some of these lines by e.g. removing extra linebreaks to have </script><?php ... on a single line, the "blue dots" in the editor came back correctly for that file. This is the first time I became aware of the possibility that PHP may act up on line numbers. Always something to learn and then some... So.... in short, not a problem at all with phpEd (which I couldn't believe anyway ), please mark this thread as "fixed". Thanks again for your time and hints!! Have a nice weekend, Tobias |
||||||||||||||
|
Site Admin
|
this is not a problem with PhpED but with php as I originally told you.
Please submit your code sample
to http://bugs.php.net/ and tell them that php reports wrong line in the E_NOTICE error for the uninitialized variable |
||||||||||||||
_________________ The PHP IDE team |
[resolved] </script> skews line numbers |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by