Ask a Question related to PHP Bugs, Design and Development.
-
michael dot axt at mindcox dot com #1
#39098 [NEW]: parser bug: dash after if condition makes script crash without any error
From: michael dot axt at mindcox dot com
Operating system: Linux x86-64Bit
PHP version: 5.1.6
PHP Bug Type: Scripting Engine problem
Bug description: parser bug: dash after if condition makes script crash without any error
Description:
------------
If there is a dash after the right parenthesis, php crashes without any
error or notices. Apache delivers an empty page with http status 200.
This issue occurs only within the 64-bit version.
Reproduce code:
---------------
<?php
$test = true;
if ($test)-
{
echo "true";
}
echo "done";
Expected result:
----------------
Parse error: syntax error, unexpected..... bla bla as it is on most other
php versions :-)
--
Edit bug report at [url]http://bugs.php.net/?id=39098&edit=1[/url]
--
Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=39098&r=trysnapshot44[/url]
Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=39098&r=trysnapshot52[/url]
Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=39098&r=trysnapshot60[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=39098&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=39098&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=39098&r=needtrace[/url]
Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=39098&r=needscript[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=39098&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=39098&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=39098&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=39098&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=39098&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=39098&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=39098&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=39098&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=39098&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=39098&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=39098&r=float[/url]
No Zend Extensions: [url]http://bugs.php.net/fix.php?id=39098&r=nozend[/url]
MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=39098&r=mysqlcfg[/url]
michael dot axt at mindcox dot com Guest
-
Flash9.ocx makes IE7 Final Crash!
Lots of times I play a streaming video at this site http://media.games.ign.com/articles/693/693580/vid_1719332.html and Flash9.oxc crashes IE7! ... -
#26171 [Opn->Fbk]: using /(a)+/ to match a long string makes php crash
ID: 26171 Updated by: iliaa@php.net Reported By: xuefer at 21cn dot com -Status: Open +Status: ... -
#26171 [NEW]: using /(a)+/ to match a long string makes php crash
From: xuefer at 21cn dot com Operating system: win PHP version: 4.3.4 PHP Bug Type: PCRE related Bug description: using... -
#9719 [Com]: Dash in URL causing CGI Error to be reported
ID: 9719 Comment by: porantim at hotmail dot com Reported By: bradmiller at accesszone dot com Status: Closed... -
#22231 [Com]: PHP makes Apache crash
ID: 22231 Comment by: mail at dooley dot cjb dot net Reported By: henrik dot gebauer at web dot de Status: ... -
pajoye@php.net #2
#39098 [Opn->Fbk]: parser bug: dash after if condition makes script crash without any error
ID: 39098
Updated by: [email]pajoye@php.net[/email]
Reported By: michael dot axt at mindcox dot com
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: Linux x86-64Bit
PHP Version: 5.1.6
New Comment:
Please try using this CVS snapshot:
[url]http://snaps.php.net/php5.2-latest.tar.gz[/url]
For Windows:
[url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]
Previous Comments:
------------------------------------------------------------------------
[2006-10-09 16:17:05] michael dot axt at mindcox dot com
Description:
------------
If there is a dash after the right parenthesis, php crashes without any
error or notices. Apache delivers an empty page with http status 200.
This issue occurs only within the 64-bit version.
Reproduce code:
---------------
<?php
$test = true;
if ($test)-
{
echo "true";
}
echo "done";
Expected result:
----------------
Parse error: syntax error, unexpected..... bla bla as it is on most
other php versions :-)
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=39098&edit=1[/url]
pajoye@php.net Guest
-
tony2001@php.net #3
#39098 [Fbk->Bgs]: parser bug: dash after if condition makes script crash without any error
ID: 39098
Updated by: [email]tony2001@php.net[/email]
Reported By: michael dot axt at mindcox dot com
-Status: Feedback
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Linux x86-64Bit
PHP Version: 5.1.6
New Comment:
Parse error: syntax error, unexpected '{' in /tmp/3.php on line 4
To see the errors you should have display_errors enabled.
Previous Comments:
------------------------------------------------------------------------
[2006-10-09 16:25:42] [email]pajoye@php.net[/email]
Please try using this CVS snapshot:
[url]http://snaps.php.net/php5.2-latest.tar.gz[/url]
For Windows:
[url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]
------------------------------------------------------------------------
[2006-10-09 16:17:05] michael dot axt at mindcox dot com
Description:
------------
If there is a dash after the right parenthesis, php crashes without any
error or notices. Apache delivers an empty page with http status 200.
This issue occurs only within the 64-bit version.
Reproduce code:
---------------
<?php
$test = true;
if ($test)-
{
echo "true";
}
echo "done";
Expected result:
----------------
Parse error: syntax error, unexpected..... bla bla as it is on most
other php versions :-)
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=39098&edit=1[/url]
tony2001@php.net Guest
-
michael dot axt at mindcox dot com #4
#39098 [Bgs]: parser bug: dash after if condition makes script crash without any error
ID: 39098
User updated by: michael dot axt at mindcox dot com
Reported By: michael dot axt at mindcox dot com
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Linux x86-64Bit
PHP Version: 5.1.6
New Comment:
Error-Reporting is switched on - completely incl. strict's
I tried the code on a 5.1.6 32-Bit php. The error occurs only on the
64-Bit php.
Previous Comments:
------------------------------------------------------------------------
[2006-10-09 17:21:52] [email]tony2001@php.net[/email]
Parse error: syntax error, unexpected '{' in /tmp/3.php on line 4
To see the errors you should have display_errors enabled.
------------------------------------------------------------------------
[2006-10-09 16:25:42] [email]pajoye@php.net[/email]
Please try using this CVS snapshot:
[url]http://snaps.php.net/php5.2-latest.tar.gz[/url]
For Windows:
[url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]
------------------------------------------------------------------------
[2006-10-09 16:17:05] michael dot axt at mindcox dot com
Description:
------------
If there is a dash after the right parenthesis, php crashes without any
error or notices. Apache delivers an empty page with http status 200.
This issue occurs only within the 64-bit version.
Reproduce code:
---------------
<?php
$test = true;
if ($test)-
{
echo "true";
}
echo "done";
Expected result:
----------------
Parse error: syntax error, unexpected..... bla bla as it is on most
other php versions :-)
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=39098&edit=1[/url]
michael dot axt at mindcox dot com Guest



Reply With Quote

