Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89797 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98483 invoked from network); 10 Dec 2015 17:20:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Dec 2015 17:20:16 -0000 Authentication-Results: pb1.pair.com header.from=flaupretre@free.fr; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=flaupretre@free.fr; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain free.fr from 212.27.42.1 cause and error) X-PHP-List-Original-Sender: flaupretre@free.fr X-Host-Fingerprint: 212.27.42.1 smtp1-g21.free.fr Received: from [212.27.42.1] ([212.27.42.1:61761] helo=smtp1-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1D/61-24183-C44B9665 for ; Thu, 10 Dec 2015 12:20:13 -0500 Received: from zimbra71-e12.priv.proxad.net (unknown [172.20.243.221]) by smtp1-g21.free.fr (Postfix) with ESMTP id B4B5C94011D; Thu, 10 Dec 2015 18:19:12 +0100 (CET) Date: Thu, 10 Dec 2015 18:20:09 +0100 (CET) To: Sjoerd Maessen Cc: internals@lists.php.net Message-ID: <2117623727.475892316.1449768009631.JavaMail.root@zimbra71-e12.priv.proxad.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [217.108.162.120] X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - FF3.0 (Win)/7.2.0-GA2598) X-Authenticated-User: flaupretre@free.fr Subject: Re: [PHP-DEV] Converting an 'old' PHP 5.x extension to PHP 7 From: flaupretre@free.fr References: Hi, ----- Mail original ----- > De: "Sjoerd Maessen" > =C3=80: internals@lists.php.net > Envoy=C3=A9: Jeudi 10 D=C3=A9cembre 2015 17:51:56 > Objet: [PHP-DEV] Converting an 'old' PHP 5.x extension to PHP 7 >=20 > Hi everyone, >=20 > As a first time poster I'm very nervous but here we go! I've recently > upgraded my development environment to PHP 7. Everything works > amazing > however 1 module I used to use a lot is not ported yet to PHP 7. I've > notified the creator but I thought this also may be a good > opportunity to > see if I can get some more knowledge about this subject. >=20 > 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: >=20 > "error: too many arguments to function > =E2=80=98zend_hash_get_current_key_ex=E2=80=99" >=20 > Googling won't really help since most results return posts of people > who > fail to install modules. >=20 > How can I continue with making this work? Any good (up-to-date) > resources? > An IRC channel where I can help? pecl-compat include files (https://github.com/flaupretre/pecl-compat) may h= elp, but porting an extension from PHP 5 to 7 remains a complex operation, = and there's not so much information available. Unfortunately, compiling wit= hout error is generally not enough. Anyway, it does greatly depend on your = extension. Some 'pure-bridge' extensions are relatively easy to port. Can y= ou please indicate which extension you are considering ? Regards Fran=C3=A7ois