ID:               27045
 Updated by:       [EMAIL PROTECTED]
 Reported By:      awulf at ev1 dot net
-Status:           Open
+Status:           Feedback
 Bug Type:         Zend Engine 2 problem
 Operating System: windows xp
 PHP Version:      5.0.0b3 (beta3)
 New Comment:

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




Previous Comments:
------------------------------------------------------------------------

[2004-01-26 06:20:01] 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 = [EMAIL PROTECTED]

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.



------------------------------------------------------------------------


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

Reply via email to