#27045 [NEW]: scripting Interpreter crashes when triggering error after php_syntax_check'ing
| From: | awulf at ev1 dot net | Date: | Mon, 26 Jan 2004 11:20:01 +0000 |
| Subject: | #27045 [NEW]: scripting Interpreter crashes when triggering error after php_syntax_check'ing | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-53900@lists.php.net to get a copy of this message | ||
From: awulf at ev1 dot net
Operating system: windows xp
PHP version: 5.0.0b3 (beta3)
PHP Bug Type: Scripting Engine problem
Bug description: scripting Interpreter crashes when triggering error after
php_syntax_check'ing
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.
--
Edit bug report at http://bugs.php.net/?id=27045&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27045&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27045&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27045&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27045&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27045&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27045&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27045&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27045&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27045&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27045&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27045&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27045&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27045&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27045&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27045&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27045&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27045&r=float