php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27045 scripting Interpreter crashes when triggering error after php_syntax_check'ing
Submitted: 2004-01-26 06:20 UTC Modified: 2004-02-23 22:43 UTC
From: awulf at ev1 dot net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5.0.0b3 (beta3) OS: windows xp
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: awulf at ev1 dot net
New email:
PHP Version: OS:

 

 [2004-01-26 06:20 UTC] awulf at ev1 dot net
Description:
------------
i have a small function that checks if a certain file exists. if it does, it runs php_check_syntax on that file. if the syntax is ok, then it includes the file, otherwise it triggers an E_USER_ERROR.

what's happening is this: when the file does have a syntax error, then once the script hits the part where it should through the E_USER_ERROR, it instead crashes the Scripting Interpreter. if i replace E_USER_ERROR with E_USER_WARNING it will run through to the end, with correct output. similarly, if i replace triggering the error with a simple echo statement followed by an exit(), this will also crash the Scripting Interpreter.


---------------------------------------------------
my php.ini differs from php.ini-dist in the following ways:
register_globals=On
magic_quotes_runtime = On
extension_dir = "./extensions/"
upload_max_filesize = 16M
extension=php_gd2.dll
extension=php_mysql.dll
sendmail_from = awulf@ev1.net

Reproduce code:
---------------
there are two small files found in the following directory:

http://chalkboard.inversiondesigns.com/phpError/

they are:

http://chalkboard.inversiondesigns.com/phpError/bar.phps
http://chalkboard.inversiondesigns.com/phpError/myError.phps



Expected result:
----------------
enter
test if bar.php exists
test if bar.php is syntatically correct.
Fatal error: parse error in bar.php in C:\apache\htdocs\classlist.php on line 3


Actual result:
--------------
i'm running in MSIE 6.+ and get a popup error box with:
PHP Script Interpreter has encountered a problem and needs to close.  We are sorry for the inconvenience.

[i click for more info]

AppName: php.exe	 AppVer: 5.0.0.0	 ModName: php4ts.dll
ModVer: 5.0.0.0	 Offset: 00006d1a



I hope this helps. let me know if there's any more info i can give you to help out. oh, and i'm on apache 1.3.14.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-27 15:57 UTC] sniper@php.net
Please try using this CVS snapshot:

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


 [2004-02-01 18:12 UTC] awulf at ev1 dot net
i've been trying to install the snapshot. i installed it just like every
other installation of php i've done (i replace the /php folder with the
new one, and update the ini file), but no luck. i get a Internal Server
Error. my php.ini is modified from the -dist as i mentioned above, but
no luck. even with the given -dist, i get a internal service error. i
can't even run an empty script, nor the phpinfo() function.

ideas? this is my first ever snapshot install... is there something i'm
missing? thanks so much.
 [2004-02-02 02:53 UTC] sniper@php.net
Try again this one:

http://snaps.php.net/win32/php5-win32-latest.zip

 [2004-02-08 11:17 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2004-02-23 22:43 UTC] awulf at ev1 dot net
i finally got my apache configured for the latest release... and yeah, it works with the latest snapshot. thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 00:01:33 2024 UTC