Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82408 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97529 invoked from network); 11 Feb 2015 02:36:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Feb 2015 02:36:15 -0000 Authentication-Results: pb1.pair.com header.from=reeze.xia@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=reeze.xia@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.178 as permitted sender) X-PHP-List-Original-Sender: reeze.xia@gmail.com X-Host-Fingerprint: 209.85.212.178 mail-wi0-f178.google.com Received: from [209.85.212.178] ([209.85.212.178:61052] helo=mail-wi0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 69/00-30843-B10CAD45 for ; Tue, 10 Feb 2015 21:36:13 -0500 Received: by mail-wi0-f178.google.com with SMTP id em10so363510wid.5 for ; Tue, 10 Feb 2015 18:36:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=i0YgsjUIlJVH7AR4x8S1i+nYw2nwUy8qejf6MwiZkWo=; b=nJj6FQjEdVxtchq0yKWPXf9ADrNe19wPBSOzAnKystfES4lCZJ9yDcdKLkijKFMUEv rWiY3Y5c9Rero1B9xXdjWrdHfl60IMLZa7XxjLtizcqKGQEf87m4b1x5EoZfiUIGSO5Z a73OSKjJyxbF+YohPzHYUYY9iDVLhzGpn0cUnXlSaYD2xwHu7X6+rjO/Mm7pc2JOCQVO Js6nGi3SGe/nx+hlq0jMQ6RCX5w2SGIGbv9XqPz6NGTEjxcM+2wS/Xss2h2GPGC802OD Q2rjWFyyP5xZMe/qGUGP3Uv04H2spdrcBRVuntV9j1PI2XCDpmBtKJqufBVuyDQzOHdF +DlA== X-Received: by 10.194.59.232 with SMTP id c8mr59436880wjr.76.1423622168339; Tue, 10 Feb 2015 18:36:08 -0800 (PST) MIME-Version: 1.0 Sender: reeze.xia@gmail.com Received: by 10.194.193.5 with HTTP; Tue, 10 Feb 2015 18:35:47 -0800 (PST) In-Reply-To: References: <54D3EE95.2080109@lerdorf.com> Date: Wed, 11 Feb 2015 10:35:47 +0800 X-Google-Sender-Auth: MW-ohiFUxAXTRZhwQfkiFNg8gS8 Message-ID: To: Jan Ehrhardt Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=047d7ba973dca368e8050ec6ddc2 Subject: Re: [PHP-DEV] Re: Annotated PHP 5->7 extension diff From: reeze@php.net (reeze) --047d7ba973dca368e8050ec6ddc2 Content-Type: text/plain; charset=ISO-8859-1 Can we just use PHP7 instead of PHPNG in the wiki, that might be misleading. On 11 February 2015 at 01:03, Jan Ehrhardt wrote: > Xinchen Hui in php.internals (Mon, 9 Feb 2015 14:49:43 +0800): > >On Mon, Feb 9, 2015 at 5:06 AM, Jan Ehrhardt wrote: > >> https://wiki.php.net/phpng-upgrading > [snip] > >> ib_link = (ibase_db_link *)zend_fetch_resource2(Z_RES_P(link_arg), > >> link_id, LE_LINK, le_link, le_plink); > >> > >> But this is only an educated guess based on looking at changes in other > >> extensions. At the moment I am struggling with the PHP7 translation of > >> this block: > >these are changes are made recently, I've updated the relates section > >in that wiki. > > Thanks. The wiki now contains my educated guess with an alternative if > you know nothing about link_arg's type. Could you apply the PHP7 changes > to ext/interbase/interbase.c as well? The Wiki is inconsistent with the > actual PHP7 sources at the moment... > > BTW, this seems to be a copy/paste error in the Wiki: > > - if (zend_hash_find(EG(class_table), Z_STRVAL_P(key),\ > Z_STRLEN_P(key)+1, (void**)&ce_ptr) == SUCCESS) { > + if ((func = zend_hash_find_ptr(ht, Z_STR_P(key))) != NULL) { > > Jan > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Reeze Xia http://reeze.cn --047d7ba973dca368e8050ec6ddc2--