Date: 09/18/00
- Next message: bp2zzy <email protected>: "[PHP-DEV] PHP 4.0 Bug #6793: can not post a form's data to a .php ,it is always BLANK"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #6174 Updated: problem with sprintf, urlencode and string concatenation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> ----------
> From: Bug Database
> Sent: Sunday, September 17, 2000 11:54 pm
> To: php-dev <email protected>
> Subject: [PHP-DEV] PHP 4.0 Bug #6766 Updated: problem with comparing
> stings with zero
>
> ID: 6766
> User Update by: geoffphillips <email protected>
> Status: Closed
> Bug Type: *General Issues
> Description: problem with comparing stings with zero
>
> setup:
> standard php4 install from suse linux 6.4 cd edition
>
> bug:
> all strings compared for equality with zero, evaluates to true
> e.g.
> if ("abcd" == 0)
> print "hello";
> always prints "hello"
>
> Previous Comments:
> --------------------------------------------------------------------------
> -
>
> [2000-09-14 23:12:09] sniper <email protected>
> Use === instead of ==.
>
> --Jani
>
> --------------------------------------------------------------------------
> -
>
> [2000-09-14 18:20:17] geoffphillips <email protected>
> setup:
> standard php4 install from suse linux 6.4 cd edition
>
> bug:
> all strings compared for equality with zero, evaluates to true
> e.g.
> if ("abcd" == 0")
> print "hello";
> always prints "hello"
>
>
> --------------------------------------------------------------------------
> -
>
>
> Full Bug description available at: http://bugs.php.net/?id=6766
>
>
> --
> 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>
>
>
-- 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: bp2zzy <email protected>: "[PHP-DEV] PHP 4.0 Bug #6793: can not post a form's data to a .php ,it is always BLANK"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #6174 Updated: problem with sprintf, urlencode and string concatenation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

