Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48697 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20603 invoked from network); 9 Jun 2010 09:36:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Jun 2010 09:36:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 unknown Solaris 10 (beta) Received: from [217.114.211.66] ([217.114.211.66:53549] helo=schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B0/79-52820-6906F0C4 for ; Wed, 09 Jun 2010 05:36:23 -0400 Received: from localhost (ka.local [127.0.0.1]) by schlueters.de (Postfix) with SMTP id 1797A26CC1 for ; Wed, 9 Jun 2010 11:36:20 +0200 (CEST) Received: from [192.168.1.33] (ppp-93-104-46-214.dynamic.mnet-online.de [93.104.46.214]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by schlueters.de (Postfix) with ESMTPSA id 8808826CBF; Wed, 9 Jun 2010 11:36:19 +0200 (CEST) To: Frederic Hardy Cc: fqqdk , Tjerk Anne Meesters , PHP internals In-Reply-To: <4C0F5618.6050603@mageekbox.net> References: <4BF3A72B.8020903@mageekbox.net> <4BF3B4E2.5070209@mageekbox.net> <1274272995.14542.10.camel@guybrush> <4C0F5618.6050603@mageekbox.net> Content-Type: text/plain; charset="UTF-8" Date: Wed, 09 Jun 2010 11:36:17 +0200 Message-ID: <1276076177.7700.36.camel@guybrush> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Constant and expression ? From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Wed, 2010-06-09 at 10:51 +0200, Frederic Hardy wrote: > > See zval_update_constant_ex in zend_API.c as a starting point. While > > such an approach would also require some parser work and some clever > > idea where/how to store the expression to be evaluated etc. > So, it's possible ? > Very good news. Everything is "possible". The question is how maintainable the solution would be, how much of an performance impact it has etc. That I don't know. It might turn out not to be acceptable. I just gave a starting point in case somebody has the time needed for some experiments. As always: Ideas, there are many. They need developers who have time and motivation to do it. johannes