Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89841 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3494 invoked from network); 18 Dec 2015 11:31:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Dec 2015 11:31:01 -0000 Authentication-Results: pb1.pair.com header.from=francois@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=francois@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 212.27.42.2 as permitted sender) X-PHP-List-Original-Sender: francois@php.net X-Host-Fingerprint: 212.27.42.2 smtp2-g21.free.fr Received: from [212.27.42.2] ([212.27.42.2:46318] helo=smtp2-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 55/CE-51216-37EE3765 for ; Fri, 18 Dec 2015 06:31:00 -0500 Received: from [127.0.0.1] (unknown [82.240.16.115]) (Authenticated sender: flaupretre@free.fr) by smtp2-g21.free.fr (Postfix) with ESMTPSA id D2CB54B01D7; Fri, 18 Dec 2015 12:30:50 +0100 (CET) To: Adam Baratz , "internals@lists.php.net" References: Message-ID: <5673EE6A.60109@php.net> Date: Fri, 18 Dec 2015 12:30:50 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 151217-3, 17/12/2015), Outbound message X-Antivirus-Status: Clean Subject: Re: [PHP-DEV] call_user_function_ex() affects zval value From: francois@php.net (=?UTF-8?Q?Fran=c3=a7ois_Laupretre?=) Hi, Le 17/12/2015 22:52, Adam Baratz a écrit : > Hi, > > I'm working on PHP7 compatibility for an extension (which I didn't write). > I discovered an issue with a call like this: > > call_user_function_ex(EG(function_table), NULL, zval, &retval, 5, params, > 0, NULL); > > When zval refers to a [object, string] array, its value is different after > this call. I haven't seen this issue when zval is a string. I realize the > context probably matters here, but I'm having trouble narrowing down what > could be doing this. Any suggestions on how to debug this? > > Thanks, > Adam > If your code is public, can you give a pointer to the problematic call ? Or at least what your 'zval' points to on return. Regards François