#39098 [Bgs]: parser bug: dash after if condition makes script crash without any error

From: Date: Mon, 09 Oct 2006 19:10:28 +0000
Subject: #39098 [Bgs]: parser bug: dash after if condition makes script crash without any error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-103325@lists.php.net to get a copy of this message
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] tony2001@php.net 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] pajoye@php.net Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip ------------------------------------------------------------------------ [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 http://bugs.php.net/?id=39098&edit=1

« previous php.bugs (#103325) next »