Re: [PHP-DEV] instanceof has higher precedence than casts

2004-02-23 Thread Andi Gutmans
Applied. Thanks, Andi At 15:59 16/02/2004 +0100, Jan Lehnardt wrote: Hi, some dude on IRC found out that php -r 'var_export((object)1 instanceof stdClass);'; results in class stdClass { public $scalar = false; } IMHO it should just return true. The ZEND_ENGINE file doesn't state anything about t

Re: [PHP-DEV] instanceof has higher precedence than casts

2004-02-17 Thread Andi Gutmans
I'll take a look at it. The patch seems to be OK. Thanks, Andi At 03:59 PM 2/16/2004 +0100, Jan Lehnardt wrote: Hi, some dude on IRC found out that php -r 'var_export((object)1 instanceof stdClass);'; results in class stdClass { public $scalar = false; } IMHO it should just return true. The ZE

[PHP-DEV] instanceof has higher precedence than casts

2004-02-16 Thread Jan Lehnardt
Hi, some dude on IRC found out that php -r 'var_export((object)1 instanceof stdClass);'; results in class stdClass { public $scalar = false; } IMHO it should just return true. The ZEND_ENGINE file doesn't state anything about the precedence of instanceof. The fix is pretty simple and a patch to z