Date: 08/28/00
- Next message: Denis Grilli: "[PHP-DEV] Re: confirm subscribe to php-dev <email protected>"
- Previous message: chris.benndorf <email protected>: "[PHP-DEV] PHP 4.0 Bug #6403: remote mysql connection not stable under sol7"
- In reply to: Andi Gutmans: "Re: [PHP-DEV] wacky object idea"
- Next in thread: André Langhorst: "Re: [PHP-DEV] wacky object idea"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Quoting Andi Gutmans <andi <email protected>>:
> We have to think of all the possible contexts we would expect this to work
> (I'm sure there are not trivial ones) and then see what happens.
Are there any contexts where php doesn't already attempt to convert a
variable to the required type?
The one sticky thing I can think of is ===, and I think it's fine to say
that it'll fail in that case:
if ($object == false
would do the type conversion (using __boolean_value if it was defined),
whereas:
if ($object === false)
would fail.
-chuck
-- Charles Hagenbuch, <chuck <email protected>> -- "Alice found a niche in the market for her diabolically malodorous rabbit pellet."-- 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: Denis Grilli: "[PHP-DEV] Re: confirm subscribe to php-dev <email protected>"
- Previous message: chris.benndorf <email protected>: "[PHP-DEV] PHP 4.0 Bug #6403: remote mysql connection not stable under sol7"
- In reply to: Andi Gutmans: "Re: [PHP-DEV] wacky object idea"
- Next in thread: André Langhorst: "Re: [PHP-DEV] wacky object idea"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

