Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89799 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2805 invoked from network); 10 Dec 2015 17:29:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Dec 2015 17:29:53 -0000 Authentication-Results: pb1.pair.com header.from=sjoerd.maessen@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=sjoerd.maessen@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.41 as permitted sender) X-PHP-List-Original-Sender: sjoerd.maessen@gmail.com X-Host-Fingerprint: 74.125.82.41 mail-wm0-f41.google.com Received: from [74.125.82.41] ([74.125.82.41:34128] helo=mail-wm0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D6/52-24183-E86B9665 for ; Thu, 10 Dec 2015 12:29:50 -0500 Received: by mail-wm0-f41.google.com with SMTP id v187so44281542wmv.1 for ; Thu, 10 Dec 2015 09:29:50 -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=7Auqty9hogNnxgV/T/NIjpunnqqgMMlq1VpOKUaGj+I=; b=curueCdsZDaTM8YmTi01gQxYG8A/gwkVv+Dq02zBzVmg6sTJIRNO08Zs3Ljk4jVZwj 9U7kHZB5BUNNvdXOf42JXtvqiTcmGcZMd/PDDuD1P9yC/uznoXK6oJzH+Nc4xk0rTmxa troE++c5BqZ5sMaLDVB/FkFq1zHZixdiqIA9reTBOiiI+aiedUoEycxOCktJ9zjeVlDm 07+gm+SdScUnrHj8z2VrpQ7J2kn5L3sDrmbYGndeB7X1Q/+o24YV0f/JKtBsvxnFcNIw IMxIwN5Ljgjyby8xVhZo0yspN7ulktMnkObVST24N3zzVaC2/ziAnx5aORiKHgYOTt2p Swpg== MIME-Version: 1.0 X-Received: by 10.194.71.104 with SMTP id t8mr13797611wju.177.1449768587688; Thu, 10 Dec 2015 09:29:47 -0800 (PST) Received: by 10.28.184.11 with HTTP; Thu, 10 Dec 2015 09:29:47 -0800 (PST) In-Reply-To: References: Date: Thu, 10 Dec 2015 18:29:47 +0100 Message-ID: To: Adam Harvey Cc: PHP internals Content-Type: multipart/alternative; boundary=047d7bfceb00ad062805268e8ddb Subject: Re: [PHP-DEV] Converting an 'old' PHP 5.x extension to PHP 7 From: sjoerd.maessen@gmail.com (Sjoerd Maessen) --047d7bfceb00ad062805268e8ddb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Jan, Fran=C3=A7ois and Adam, Thank you for the quick responses. Ah yes an extension name can be helpful. I=E2=80=99m talking about the extension =E2=80=9Cphp-svm=E2=80=9D of Ian Ba= rber ( https://github.com/ianbarber/php-svm) which I made a fork of https://github.com/sjoerdmaessen/php-svm Regards, Sjoerd On Thu, Dec 10, 2015 at 6:22 PM, Adam Harvey wrote: > On 10 December 2015 at 08:51, Sjoerd Maessen > wrote: > > As a first time poster I'm very nervous but here we go! > > Welcome! > > > I cloned the github repo and was able to remove 1 error during the > > compilation process that had to do with ZVAL_STRING. This was an easy > error > > to fix since it came down to simply removing an argument. I've read > > https://wiki.php.net/phpng-upgrading but still I feel like there should > be > > more resources available after seeing the amount of extensions that are > > already successfully converted for PHP 7. For example I'm now stuck how > to > > fix an error like: > > > > "error: too many arguments to function =E2=80=98zend_hash_get_current_k= ey_ex=E2=80=99" > > We don't really have comprehensive documentation of how internal APIs > have changed from 5 to 7. Beyond the things noted on the phpng and > phpng-upgrading pages on the wiki, the best resource is probably > lxr.php.net, where you can look up a definition on both the PHP-5.6 > and PHP-7.0 branches and see how they've changed. > > For the most part, extension API changes are largely around things > like removing indirection on zvals, HashTables now containing zvals > rather than void pointers, and strings being represented as > zend_string structs rather than paired char * and int pointers. > > > How can I continue with making this work? Any good (up-to-date) > resources? > > An IRC channel where I can help? > > There is #php.pecl on efnet =E2=80=94 it's not the highest traffic channe= l, > but if you're patient there'll generally be someone around who can > help. > > Adam > --047d7bfceb00ad062805268e8ddb--