#21938 [Opn-Fbk]: Wrong error line numbers

2003-02-13 Thread sniper
 ID:   21938
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Scripting Engine problem
 Operating System: Windows 2000
-PHP Version:  4.3.0
+PHP Version:  4.3.1-dev
 New Comment:

What was the result when testing with CGI binary?
(on command line!)

I can't reproduce this with even over 1000 lines of code..



Previous Comments:


[2003-02-05 03:45:55] [EMAIL PROTECTED]

It shows the correct line on short scripts like yours.
But when I create a script, write 20 times

if(isset($blubb)) {


}

ans then blubb(); which is now on line 88, it tells me the error is on
line 66. As longer the script is as higher is the difference.

Sorry at the moment i don't have the time to test this with the CGI
Binary. But i can do this on weekend.



[2003-02-04 18:19:09] [EMAIL PROTECTED]

Using PHP 4.3.1-dev and running this script:

?php

   blubb();

?

What line is the error reported on? (using PHP CLI binary)
And what about with PHP CGI binary ?

For me, it says the error is on line 3, which is correct.



[2003-01-30 05:41:12] [EMAIL PROTECTED]

Sorry, this doesn't really help. The numbers are nearer to the right
position now, but not correct.

Displayed: ..in Line 125
Correct Position: 138



[2003-01-29 07:04:03] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Ilia fixed something like this just few days ago, iirc.




[2003-01-29 06:17:07] [EMAIL PROTECTED]

What I did:
=

Made a script like this:

?php

blubb();

?

What should happen?

This error:

Fatal error: Call to undefined function: blubb() in foo.php on line 3

What happend?

This error:

Fatal error: Call to undefined function: blubb() in foo.php on line 2


As you see the line number is incorrect. It should be 3 instead of 2.
As longer the script is as longer are the differences betweeen the
correct and displayed line number.
This happens with all errors, warnings ans so on.

this happends since the upgrade of PHP to PHP 4.3.

System: Windows 2000 Server / Apache/1.3.24
Version: PHP 4.3 Windows Binary with unmodified php.ini-dist



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/21938

-- 
Edit this bug report at http://bugs.php.net/?id=21938edit=1




#21938 [Opn-Fbk]: Wrong error line numbers

2003-02-04 Thread sniper
 ID:   21938
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Scripting Engine problem
 Operating System: Windows 2000
 PHP Version:  4.3.0
 New Comment:

Using PHP 4.3.1-dev and running this script:

?php

   blubb();

?

What line is the error reported on? (using PHP CLI binary)
And what about with PHP CGI binary ?

For me, it says the error is on line 3, which is correct.


Previous Comments:


[2003-01-30 05:41:12] [EMAIL PROTECTED]

Sorry, this doesn't really help. The numbers are nearer to the right
position now, but not correct.

Displayed: ..in Line 125
Correct Position: 138



[2003-01-29 07:04:03] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Ilia fixed something like this just few days ago, iirc.




[2003-01-29 06:17:07] [EMAIL PROTECTED]

What I did:
=

Made a script like this:

?php

blubb();

?

What should happen?

This error:

Fatal error: Call to undefined function: blubb() in foo.php on line 3

What happend?

This error:

Fatal error: Call to undefined function: blubb() in foo.php on line 2


As you see the line number is incorrect. It should be 3 instead of 2.
As longer the script is as longer are the differences betweeen the
correct and displayed line number.
This happens with all errors, warnings ans so on.

this happends since the upgrade of PHP to PHP 4.3.

System: Windows 2000 Server / Apache/1.3.24
Version: PHP 4.3 Windows Binary with unmodified php.ini-dist



[2003-01-29 06:02:45] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to Open.

Thank you for your interest in PHP.




[2003-01-29 05:48:56] [EMAIL PROTECTED]

The error will be displayed at a wrong line.

Sample:
Undefined variable: foo in foo.php on line 39 

$foo is only used in line 113. This also happends with wrong functions
and other errors. This makes it really hard to find errors.

I'm using the windows binary with default configuration.
(php.ini-dist).




-- 
Edit this bug report at http://bugs.php.net/?id=21938edit=1




#21938 [Opn-Fbk]: Wrong error line numbers

2003-01-29 Thread sniper
 ID:   21938
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Scripting Engine problem
 Operating System: Windows 2000
 PHP Version:  4.3.0
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Ilia fixed something like this just few days ago, iirc.



Previous Comments:


[2003-01-29 06:17:07] [EMAIL PROTECTED]

What I did:
=

Made a script like this:

?php

blubb();

?

What should happen?

This error:

Fatal error: Call to undefined function: blubb() in foo.php on line 3

What happend?

This error:

Fatal error: Call to undefined function: blubb() in foo.php on line 2


As you see the line number is incorrect. It should be 3 instead of 2.
As longer the script is as longer are the differences betweeen the
correct and displayed line number.
This happens with all errors, warnings ans so on.

this happends since the upgrade of PHP to PHP 4.3.

System: Windows 2000 Server / Apache/1.3.24
Version: PHP 4.3 Windows Binary with unmodified php.ini-dist



[2003-01-29 06:02:45] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to Open.

Thank you for your interest in PHP.




[2003-01-29 05:48:56] [EMAIL PROTECTED]

The error will be displayed at a wrong line.

Sample:
Undefined variable: foo in foo.php on line 39 

$foo is only used in line 113. This also happends with wrong functions
and other errors. This makes it really hard to find errors.

I'm using the windows binary with default configuration.
(php.ini-dist).




-- 
Edit this bug report at http://bugs.php.net/?id=21938edit=1