Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.php Subject: Re: PHP7 Stack Trace Mess Date: Tue, 23 Jun 2015 22:15:27 +0200 Organization: solani.org Lines: 17 Message-ID: References: <3t55898eadi3e2an3e8%sfroehli@Froehlich.Priv.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1435090524 13277 eJwFwQcBwEAIBDBLUNYj51j+JTQxcfYOdXO1s/Otpjlc0kQB/FReasIENMW8VJ9jsityQ3402hG5 (23 Jun 2015 20:15:24 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Tue, 23 Jun 2015 20:15:24 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 X-User-ID: eJwFwQERADEIAzBLMKBc5fDd8C/hkwo41IlC1tYiDMs2Db8cM+rSTorjuuUTq6b6NV60n/wBFYwQ0Q== In-Reply-To: Cancel-Lock: sha1:Lk8/y9KiM2OK+DwG9eNkzsffaiQ= X-NNTP-Posting-Host: eJwFwQkBACAIA8BMvLo4AqN/BO/CUrKPZ6THxmrJ6zKQ0xxABerLhMwYBL5qNf5Yl9arHzOBEfk= Xref: csiph.com comp.lang.php:15486 Thomas Mlynarczyk wrote: > On 23/06/15 18:58, Stefan Froehlich wrote: >> On Tue, 23 Jun 2015 16:28:23 Thomas Mlynarczyk wrote: >>> [...] it may be simpler for the engine not having to "remember" >>> the original values [...] >> It's the only reason I can think of. Otherwise all arguments would >> have to be copied eventually - just in case. > > Not necessarily. PHP implements "copy on write". If the argument is not > modified by the function, no copy will be made. Still, at least the zvals (16 bytes each) would have to be copied. -- Christoph M. Becker