Date: 01/30/01
- Next message: tom.anheyer <email protected>: "[PHP-DEV] PHP 4.0 Bug #8994: socket_set_timeout works only once"
- Previous message: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #8734 Updated: Unable to send large emails, causes a GPF - small email work fine."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 8495
Updated by: sniper
Reported By: mark <email protected>
Old-Status: Open
Status: Bogus
Bug Type: Variables related
Assigned To:
Comments:
This is not a bug.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2001-01-10 14:43:05] mark <email protected>
Taken from bug 6818:
<?
$variable = 0;
if ($variable == "some_string")
{
print "This must be a bug?! Variable set as $variable.nn<br>";
$variable++;
if ($variable != "some_string")
{
print "But with variable set as $variable it works fine.nn";
}
}
else
{
print "This works as I expected.nn";
}
?>
---------------------------------------------------------------------------
[2001-01-09 10:27:13] stas <email protected>
Could you please describe your problem and give an example
of faulty code?
---------------------------------------------------------------------------
[2000-12-30 13:51:06] mark <email protected>
In response to (the closed) bug #6818 (I can't reopen it):
Using === instead of == is not a solution in my opinion:
- it's not compatible with older code (php3)
- it's still a bug: comparing a variable with value 0 with a string should always return 'false', regardless the type.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8495
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: tom.anheyer <email protected>: "[PHP-DEV] PHP 4.0 Bug #8994: socket_set_timeout works only once"
- Previous message: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #8734 Updated: Unable to send large emails, causes a GPF - small email work fine."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

