Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80910 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98467 invoked from network); 20 Jan 2015 22:13:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jan 2015 22:13:34 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain lerdorf.com designates 209.85.216.172 as permitted sender) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.216.172 mail-qc0-f172.google.com Received: from [209.85.216.172] ([209.85.216.172:57307] helo=mail-qc0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FC/E9-49046-D03DEB45 for ; Tue, 20 Jan 2015 17:13:33 -0500 Received: by mail-qc0-f172.google.com with SMTP id i8so24609989qcq.3 for ; Tue, 20 Jan 2015 14:13:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type; bh=i5onU9Ip3EmIcF6glGAx8bCRBkMCKWNJrW+ezESlTWE=; b=dd3LFYZmPt4awm+Z8BPSuBMDMLItNZZdtG+s44qEqFV/2GGll8ep+/lc7RGkLIJpya 5jTWdpsuFSZ3uwmHktAaaPf2iBgUWhnA6ycRrK0rW77PmdsfQQdP2n+Ouzett04mPz6h dNNNFHQ58XOBrf9y1hSWuU6FqE3HDt347iKpG+VaN7/HWKJPRJnAxAIh8bs5OxwY+79A 0qiV5FyCat9m8LnCf/HV6qXf0H3XoYZCykGccYK4w8sC1PwWcxUzLS2c0jIndTR/5RKC Q86bXi8lBZJ7v1r9gzOvBZZvgEB8mj4MzB+urLawi/zLPoMAPU/VzJikMT98HKreZLmO JLnA== X-Gm-Message-State: ALoCoQnpokRnHZqN07UdjvAQJFYFTdyvfcELhNV+2MA6i1kACG2fi5N0AD47My7zLUTw8IY3d4kJ X-Received: by 10.224.2.9 with SMTP id 9mr25133206qah.66.1421792010350; Tue, 20 Jan 2015 14:13:30 -0800 (PST) Received: from [192.168.200.14] (c-50-131-44-225.hsd1.ca.comcast.net. [50.131.44.225]) by mx.google.com with ESMTPSA id b109sm16486760qgf.40.2015.01.20.14.13.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jan 2015 14:13:28 -0800 (PST) Message-ID: <54BED307.5010606@lerdorf.com> Date: Tue, 20 Jan 2015 14:13:27 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: PHP internals References: <54BECE9E.5050502@lerdorf.com> In-Reply-To: <54BECE9E.5050502@lerdorf.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MCouBkmU6LPETGspSVN6HlVaksLbPU0xj" Subject: Re: Help - gcc mystery in ext/imap From: rasmus@lerdorf.com (Rasmus Lerdorf) --MCouBkmU6LPETGspSVN6HlVaksLbPU0xj Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 01/20/2015 01:54 PM, Rasmus Lerdorf wrote: > Things I have tried. changed it from "p" to "s" and also from "p" to "S= " > and using a zend_string * instead. In both cases I got the same bogus > address back from zpp. Right now I am trying to make sense of the > generated assembly differences, but it is slow going. It looks like I might have messed up the zend_string try before. Both Nikic and Michael suggested it probably had to to with int instead of size_t for the arg lengths, which I had considered but figured since it also broke with a zend_string which brings along the right length type that wasn't it. But, re-applying my patch: https://gist.github.com/anonymous/713089b9acca67bce42e seems to have fixed it. So, I guess the lesson is that we need to be careful when we migrate extensions to PHP 7. Passing ints instead of size_t string length params to zpp can cause extreme weirdness and we should go through all our bundled extensions and make sure things that are still using "s" have all been changed to size_t. -Rasmus --MCouBkmU6LPETGspSVN6HlVaksLbPU0xj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlS+0wcACgkQlxayKTuqOuCpegCeNUW5Wgyr/CnH/RkJuHMxn9Pc BxoAn16dCE3KWPQAC1psJU/KSmkHHYDl =/SS0 -----END PGP SIGNATURE----- --MCouBkmU6LPETGspSVN6HlVaksLbPU0xj--