#19099 [NEW]: comparison expressions
| From: | jacob at emcken dot dk | Date: | Mon, 26 Aug 2002 07:33:40 +0000 |
| Subject: | #19099 [NEW]: comparison expressions | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-17825@lists.php.net to get a copy of this message | ||
From: jacob@emcken.dk
Operating system: Debian Linux 2.4
PHP version: 4.1.2
PHP Bug Type: *General Issues
Bug description: comparison expressions
I am getting errors when executing the following code wich seems to be the
right syntax!?
I tested it on 2 other servers running apache and php4
Here are 2 examples of the some code wich should work if i'm not
mistaken:
<?
//Test 1
//This example give a "parse error in line 7"
$a=2;
$b=3;
if($a==$b || $b==3) {
echo "hey";
}
//Test 2
//This example gives the error: "Call to undefined function: ()"
$a=2;
$b=3;
if(($a==$b) || ($b==3)) {
echo "hey";
}
?>
I have coded alot of things on the server and this i the first time im
have run into trouble.
By the way this code sample runs just fine:
<?
if(false || true) {
echo "hey";
}
//And this one works just fine also
$a=2;
$b=3;
if($b==3) {
echo "hey";
}
?>
--
Edit bug report at http://bugs.php.net/?id=19099&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19099&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19099&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19099&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19099&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19099&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19099&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19099&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19099&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19099&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19099&r=globals