Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82089 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 126 invoked from network); 7 Feb 2015 10:57:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Feb 2015 10:57:55 -0000 Authentication-Results: pb1.pair.com header.from=francois@tekwire.net; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=francois@tekwire.net; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain tekwire.net does not designate 212.27.42.2 as permitted sender) X-PHP-List-Original-Sender: francois@tekwire.net X-Host-Fingerprint: 212.27.42.2 smtp2-g21.free.fr Received: from [212.27.42.2] ([212.27.42.2:64783] helo=smtp2-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DB/11-27738-0BFE5D45 for ; Sat, 07 Feb 2015 05:57:55 -0500 Received: from moorea (unknown [82.240.16.115]) by smtp2-g21.free.fr (Postfix) with ESMTP id 162154B0289; Sat, 7 Feb 2015 11:54:25 +0100 (CET) Reply-To: To: "'Pierre Joye'" Cc: "'Rasmus Lerdorf'" , "'PHP internals'" , "'Guilherme Blanco'" References: <54D3EE95.2080109@lerdorf.com> <035f01d04281$e1133090$a33991b0$@tekwire.net> In-Reply-To: Date: Sat, 7 Feb 2015 11:57:42 +0100 Message-ID: <037301d042c4$e58eab20$b0ac0160$@tekwire.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQJT40Yc92vFpGpBAIsf6quZGCxAwgEFkKmDAjW4NjwBmg9jBAMWoUmrAaJRo2WbkUuewA== Content-Language: fr X-Antivirus: avast! (VPS 150205-1, 05/02/2015), Outbound message X-Antivirus-Status: Clean Subject: RE: [PHP-DEV] Annotated PHP 5->7 extension diff From: francois@tekwire.net (=?utf-8?Q?Fran=C3=A7ois_Laupretre?=) > De : Pierre Joye [mailto:pierre.php@gmail.com] > Not sure it will help. It is really about showing cases for deref, > duplicate, convert, iterate, etc. The zpp, return values or > functions/class/methods declaration are really the easy part here. I understand. I thought it would be a nice way to enhance the = abstraction layer php-ext-gen provides, as I am missing use cases. = Generating glue code is just one of the project objectives. The second = one is to provide an abstraction layer allowing to duplicate as few code = as possible when migrating an extension to PHP 7 (HHVM is also in = scope). I already fully abstract resources, so that user code doesn't have to = deal, for instance, with zend_resource structs. I also provide an API = for persistent resources, which Zend does not provide. That's just an = example. It can be done for many other areas. But, if you don't want to participate, I'll integrate that myself using = your examples. Just a question : for your demo extension, would you write two branches = or a single one with #ifdef directives ? Cheers Fran=C3=A7ois