NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
line numbers in php


Joined: 05 Jul 2006
Posts: 1
Reply with quote
I just bought the PhpED for Windows and I've found a little thing. I'm debugging a piece of code that should be run in Windows and Linux. This code contains in the first line the linux shell name in this form:

#!/usr/bin/php -q

and after that the normal PHP code begins.

In this first php page everything works fine with the debug, BUT when you go to a different page (a function in a diferent .php file) the debugger visual indicator gets lost, the line you are debugging is not the line signaled in blue by the debugger, it's a line ahead. If you go to the first page and delete the first line (#!/usr/bin/php -q), which is for linux of course, the debugger works perfectly in all pages. Maybe you could fix this in future revisions.

Congratulations for such a nice PHP editor !
View user's profileFind all posts by joelrfSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8340
Reply with quote
It's a known bug in PHP itself. It screws up its line numbering when #! is found in the file beginning.
Try in a newer php version.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
line numbers in php
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic