ID:               43584
 Updated by:       [EMAIL PROTECTED]
 Reported By:      wtoledo at hotmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Windows XP
 PHP Version:      5.2.5
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

= is the assignment operator, not the "is equal" operator.


Previous Comments:
------------------------------------------------------------------------

[2007-12-12 19:51:26] wtoledo at hotmail dot com

Description:
------------
Execute this and see the result. I cound't beleave it. After I've
changed $mensagem I printed it to make choore it was changed. Than I
test it and it ignores the change.

Thanks.

Reproduce code:
---------------
<?php
$mensagem = "1";
if ($mensagem = "1"){
    $mensagem = "Erro - ";
}
echo $mensagem;
if  ($mensagem = "1"){
     echo $mensagem;
}
?>
Execute this and see the result.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=43584&edit=1

Reply via email to