|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-04-15 08:17 UTC] n dot manu at palina dot net
Following script :
<?
$test = 1;
if(((1 == $test)? true:false)){ //
echo 'ok';
}
else{ //
echo 'probleme';
}
?>
causes the following error :
Parse error: parse error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM in c:\program files\apache group\apache\htdocs\test_weber.php on line 4
--------------
With one of the following lines, there is no error :
if (((1 == $test)?true :false)){ //
if (((1 == $test)?true: false)){ //
if (((1 == $test)?true : false)){ //
--------------
This error is not reproducible in with the latest release of php4 (4.3.2)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 29 14:00:01 2025 UTC |
I am thinking that if you edit Zend/zend_language_scanner.l on line 486 where it reads: NAMESPACE_NAME ({LABEL}":")+{LABEL} and just put it into NAMESPACE_NAME {LABEL} then problem will be getting fixed up.