Re: [PHP-DEV] while we're at it (PHP-5.1 & instanceof)

2005-06-16 Thread Wez Furlong
It seems a bit over-zealous to throw a fatal error when you're writing code to avoid a fatal error. If autoload fails, instanceof should simply return false. --Wez. On 6/16/05, Andi Gutmans <[EMAIL PROTECTED]> wrote: > Because it's a generic way of fetching classes and there's no reason to > cha

Re: [PHP-DEV] while we're at it (PHP-5.1 & instanceof)

2005-06-16 Thread Andi Gutmans
Because it's a generic way of fetching classes and there's no reason to change it. If there's a real problem then email me. Andi At 04:55 PM 6/16/2005 +0200, Michael Wallner wrote: Hi Andi Gutmans, you wrote: > instanceof calls __autoload() Well, what for I wonder? If the class is not define

Re: [PHP-DEV] while we're at it (PHP-5.1 & instanceof)

2005-06-16 Thread Michael Wallner
Hi Andi Gutmans, you wrote: > instanceof calls __autoload() Well, what for I wonder? If the class is not defined, no object can be an instance of it... Regards, -- Michael - < mike(@)php.net > signature.asc Description: OpenPGP digital signature

Re: [PHP-DEV] while we're at it (PHP-5.1 & instanceof)

2005-06-16 Thread Andi Gutmans
instanceof calls __autoload() At 04:02 PM 6/16/2005 +0200, Michael Wallner wrote: Hi Andi Gutmans, you wrote: > Seems to work... Sorry, what seems to work what way? Thanks, -- Michael - < mike(@)php.net > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://

Re: [PHP-DEV] while we're at it (PHP-5.1 & instanceof)

2005-06-16 Thread Michael Wallner
Hi Andi Gutmans, you wrote: > Seems to work... Sorry, what seems to work what way? Thanks, -- Michael - < mike(@)php.net > signature.asc Description: OpenPGP digital signature

Re: [PHP-DEV] while we're at it (PHP-5.1 & instanceof)

2005-06-16 Thread Andi Gutmans
Seems to work... At 11:15 PM 6/15/2005 +0200, Michael Wallner wrote: I already complained about that issue several times on IRC and now that it's time for PHP-5.1 to come, I'll just throw this question/rant in... Using is_a() throws a notice (E_STRICT IIRC) in PHP5, which should be fine, becaus

Re: [PHP-DEV] while we're at it (PHP-5.1 & instanceof)

2005-06-15 Thread Alan Knowles
http://www.akbkhome.com/blog.php/View/75/removing+that+stupid+is_a +warning..html You're not the only one ;) Regards Alan On Wed, 2005-06-15 at 23:15 +0200, Michael Wallner wrote: > I already complained about that issue several times on IRC > and now that it's time for PHP-5.1 to come, I'll just

Re: [PHP-DEV] while we're at it (PHP-5.1 & instanceof)

2005-06-15 Thread Andi Gutmans
Will look into it. At 11:15 PM 6/15/2005 +0200, Michael Wallner wrote: I already complained about that issue several times on IRC and now that it's time for PHP-5.1 to come, I'll just throw this question/rant in... Using is_a() throws a notice (E_STRICT IIRC) in PHP5, which should be fine, beca

[PHP-DEV] while we're at it (PHP-5.1 & instanceof)

2005-06-15 Thread Michael Wallner
I already complained about that issue several times on IRC and now that it's time for PHP-5.1 to come, I'll just throw this question/rant in... Using is_a() throws a notice (E_STRICT IIRC) in PHP5, which should be fine, because it was deprecated in favour of the instanceof operator. But there's