Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8078 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77858 invoked by uid 1010); 23 Feb 2004 08:40:53 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 77790 invoked from network); 23 Feb 2004 08:40:50 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 23 Feb 2004 08:40:50 -0000 Received: (qmail 20225 invoked from network); 23 Feb 2004 08:40:45 -0000 Received: from guardian.zend.office (HELO andi-laptop.zend.com) (10.1.1.4) by mail.zend.com with SMTP; 23 Feb 2004 08:40:45 -0000 Message-ID: <5.1.0.14.2.20040223104038.05a83b48@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Mon, 23 Feb 2004 10:40:43 +0200 To: Jan Lehnardt , PHP Developers Mailing List In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] instanceof has higher precedence than casts From: andi@zend.com (Andi Gutmans) References: 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 the precedence of instanceof. > >The fix is pretty simple and a patch to zend_language_parser.y >is attached. >make test runs through fine, so I guess it doesn't brake >anything else, but I can't tell for sure of course. It >would be great if someone could look into this. > >Best regards, >Jan >-- >GPG Key: BB96 56B0 >Q: Thank Jan? - A: http://geschenke.an.dasmoped.net/ > > > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php