Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82542 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97986 invoked from network); 12 Feb 2015 15:12:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Feb 2015 15:12:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=mapopa@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mapopa@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.178 as permitted sender) X-PHP-List-Original-Sender: mapopa@gmail.com X-Host-Fingerprint: 209.85.217.178 mail-lb0-f178.google.com Received: from [209.85.217.178] ([209.85.217.178:38768] helo=mail-lb0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EA/D8-50473-9E2CCD45 for ; Thu, 12 Feb 2015 10:12:42 -0500 Received: by mail-lb0-f178.google.com with SMTP id w7so10062903lbi.9 for ; Thu, 12 Feb 2015 07:12:39 -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=Y73pCX78OSeSp+f/l+gbDefcsaQLEdgAqny50o6KmSA=; b=unmr2rSQVtvmyipHnNACtXyQKfOw/PzDvH47oWqRgswnd4bNQURAV2gVu6B1BxRjit Z5t0RfD71nMUTsFsPBncUHPUpgPbv8MbYpKqnUG/dRcgEm2kOpJfi3U/+tZNqMuDxp8k 3JSdmoZNjYXlSlC4KcXcooEXImckw2+u2dak+TfvupRZcLkmOChLfMugw5LfWCevAgEm 80yL7D+NUQs2r0dT1NzbJa2Rfpltaccltvw4qw+oC60INuNglR/l+4U1iueFPG6e88Xe 2DHgkm9wNxfvKriq4Zp/wS0gBO4tEB2cb0GpNc0vz9uTVPrIdLuGQPUybcrghKcAgqSZ nmkg== MIME-Version: 1.0 X-Received: by 10.152.5.101 with SMTP id r5mr3818640lar.33.1423753959098; Thu, 12 Feb 2015 07:12:39 -0800 (PST) Received: by 10.112.13.39 with HTTP; Thu, 12 Feb 2015 07:12:39 -0800 (PST) In-Reply-To: <54DC9FB3.2040801@lsces.co.uk> References: <54DA162D.1070806@lsces.co.uk> <54DB4E59.4030503@lsces.co.uk> <54DC9FB3.2040801@lsces.co.uk> Date: Thu, 12 Feb 2015 17:12:39 +0200 Message-ID: To: Lester Caine Cc: PHP internals Content-Type: multipart/alternative; boundary=089e013d12d6fad02e050ee58c47 Subject: Re: [PHP-DEV] zend_get_parameters_ex rework From: mapopa@gmail.com (marius adrian popa) --089e013d12d6fad02e050ee58c47 Content-Type: text/plain; charset=UTF-8 Finish the patch and i will apply , also ZEND_FETCH_RESOURCE2 must be replaced with zend_fetch_resource2 like it was done in pgsql case https://github.com/php/php-src/commit/0d4255de30314dbfa32827e044b35543b1ae5a39 On Thu, Feb 12, 2015 at 2:42 PM, Lester Caine wrote: > On 12/02/15 11:35, Nikita Popov wrote: > > I've still got a question about the &string_arg on line 1.9 and if it > > should be changed to a string but that change needs working through > the > > following code. > > > > > > Yes, this should be changed to a string. E.g. use the 'S' zpp modifier > > and declare the variable as 'zend_string *str'. Then modify the places > > where it is used from Z_STRVAL_P(...) to str->val and Z_STRLEN_P(...) to > > str->len. > > OK that makes sense ... and I though I was on a roll, except while I can > convert one of the uses, another is feed by a zval which I then need to > convert to a zend_string, but I think I can just change b_val to > Z_STR*(b_val) but the compiler is saying that Z_STR is not defined? > > I've spent half an hour trying to dig around but not managed to find > what I should be using :( > > -- > Lester Caine - G8HFL > ----------------------------- > Contact - http://lsces.co.uk/wiki/?page=contact > L.S.Caine Electronic Services - http://lsces.co.uk > EnquirySolve - http://enquirysolve.com/ > Model Engineers Digital Workshop - http://medw.co.uk > Rainbow Digital Media - http://rainbowdigitalmedia.co.uk > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --089e013d12d6fad02e050ee58c47--