Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89794 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93265 invoked from network); 10 Dec 2015 16:52:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Dec 2015 16:52:01 -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.49 as permitted sender) X-PHP-List-Original-Sender: sjoerd.maessen@gmail.com X-Host-Fingerprint: 74.125.82.49 mail-wm0-f49.google.com Received: from [74.125.82.49] ([74.125.82.49:33042] helo=mail-wm0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AF/50-24183-FADA9665 for ; Thu, 10 Dec 2015 11:52:00 -0500 Received: by mail-wm0-f49.google.com with SMTP id c201so42483702wme.0 for ; Thu, 10 Dec 2015 08:51:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=e5dSjKlP9EcayCfBZPzw1OWtRzEiURAELeHYlTP711o=; b=u+pgRuSdKcYx6LcbdHXrnoAhDdViWwCzgt00aztQRDpG8ovlKSXqsB6pWxQNiSoXAb sI43wwNNACQH7jkNLSAqVz99+H7a5g5XLMl6Z/YpT3zfgcuy6ABcQPvsnfQFSz6Co/id 9tVMH696na8KXctXSJ92c9U9GI2qtYT/0CBabw+STWSCnYOOPrLoInnKzPzvP11K8tJR JKZzbGYJ0H/+gs7lpNQvqpOWoC71VA8oXhFtC/JRAiPcMxrh2fKFLIO0+fgDzAOqI72v cVWVR7Rv7Br0ElsDt6kOkggI6IEY/HmjpK4CfbejILGfGyUFbCf4brGkIgS2Oq8Nw+P/ E8sw== MIME-Version: 1.0 X-Received: by 10.194.209.195 with SMTP id mo3mr14281783wjc.16.1449766316300; Thu, 10 Dec 2015 08:51:56 -0800 (PST) Received: by 10.28.184.11 with HTTP; Thu, 10 Dec 2015 08:51:56 -0800 (PST) Date: Thu, 10 Dec 2015 17:51:56 +0100 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=047d7b3a83024a646405268e06c7 Subject: Converting an 'old' PHP 5.x extension to PHP 7 From: sjoerd.maessen@gmail.com (Sjoerd Maessen) --047d7b3a83024a646405268e06c7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi everyone, 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. 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_key_e= x=E2=80=99" Googling won't really help since most results return posts of people who fail to install modules. How can I continue with making this work? Any good (up-to-date) resources? An IRC channel where I can help? --047d7b3a83024a646405268e06c7--