[PHP-DEV] Bug #1097 Updated: (0 == From: Bug Database (php-dev <email protected>)
Date: 01/26/99

ID: 1097
Updated by: rasmus
Reported By: eric <email protected>
Status: Closed
Bug Type: Other
Assigned To:
Comments:

You are comparing an integer to a string here. The inetger value of "test" is 0, hence the equality. Try:
if( (string) 0 == "test")

Full Bug description available at: http://ca.php.net/bugs.php3?id=1097

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>