Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82090 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2246 invoked from network); 7 Feb 2015 11:05:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Feb 2015 11:05:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.45 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.45 mail-qa0-f45.google.com Received: from [209.85.216.45] ([209.85.216.45:58823] helo=mail-qa0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B1/91-27738-091F5D45 for ; Sat, 07 Feb 2015 06:05:52 -0500 Received: by mail-qa0-f45.google.com with SMTP id n8so14656274qaq.4 for ; Sat, 07 Feb 2015 03:05:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=bkPbAoHkJUtLUpihLkrY/imfEsj4EmzkSeKwgAm/RQg=; b=tIiIRUONeyUXqw3UP2gDf5bhtI3XdDJyi43QYO/gHMYbxPe0mCyGjuKWF+U0DzsRlE lacBAS+Qvo5oIchfYocFr5bSPbaAWus+PudmYxH+vY8dgXYJJVAceomzD4XbPM0EKcS9 QMqbMpYAMYfCsQWL9tf7jq50v/Wo+5Y9H92ELC3VooELwrpcYHP4yfPVce97hTwXImPL ar+mC32ObTuNT4G1WJ2u1ZwVRYLEVePNp75sDmTyRDkY5qEYxPAyOTZdcpI40FNKb97V Q/GE2eAOtT369B+C7tMzKY7uE1/+ai6mxdLUc1KthxCAXFeCWDjvkp/mTG4DBD9zvWLE OccA== MIME-Version: 1.0 X-Received: by 10.224.89.2 with SMTP id c2mr18593864qam.75.1423307149827; Sat, 07 Feb 2015 03:05:49 -0800 (PST) Received: by 10.96.3.168 with HTTP; Sat, 7 Feb 2015 03:05:49 -0800 (PST) Received: by 10.96.3.168 with HTTP; Sat, 7 Feb 2015 03:05:49 -0800 (PST) In-Reply-To: <037301d042c4$e58eab20$b0ac0160$@tekwire.net> References: <54D3EE95.2080109@lerdorf.com> <035f01d04281$e1133090$a33991b0$@tekwire.net> <037301d042c4$e58eab20$b0ac0160$@tekwire.net> Date: Sat, 7 Feb 2015 18:05:49 +0700 Message-ID: To: =?UTF-8?Q?Fran=C3=A7ois_Laupretre?= Cc: Rasmus Lerdorf , Guilherme Blanco , PHP internals Content-Type: multipart/alternative; boundary=001a11c3c7b41267ab050e7d8524 Subject: RE: [PHP-DEV] Annotated PHP 5->7 extension diff From: pierre.php@gmail.com (Pierre Joye) --001a11c3c7b41267ab050e7d8524 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Feb 7, 2015 5:57 PM, "Fran=C3=A7ois Laupretre" wr= ote: > > > 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. It is more a time issue and a non believer in too much generation of codes. > Just a question : for your demo extension, would you write two branches or a single one with #ifdef directives ? I ported one (not oss sadly) and I end up with separate files. One for 5.x, 7.x and common helpers. > Cheers > > Fran=C3=A7ois > > --001a11c3c7b41267ab050e7d8524--