#21979 [Opn->Bgs]: mistake of operator "if"

From: Date: Fri, 31 Jan 2003 12:41:43 +0000
Subject: #21979 [Opn->Bgs]: mistake of operator "if"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-31756@lists.php.net to get a copy of this message
ID: 21979 Updated by: cynic@php.net Reported By: alex_pidodny@hotmail.com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: windows 2000 PHP Version: 4.3.0 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php = is not the same as == Previous Comments: ------------------------------------------------------------------------ [2003-01-31 06:36:42] alex_pidodny@hotmail.com can't work a script $r=0; if ($r=1) {$a=1;} //comparison on equal else {$a=0;} print "Result=$a"; i see always "Result=1" but can work a script $r=0; if ($r==1) {$a=1;} //comparison on identical else {$a=0;} print "Result=$a"; i did see manual of PHP what must work both ways ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21979&edit=1

« previous php.bugs (#31756) next »