Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61048 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96556 invoked from network); 29 Jun 2012 18:47:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jun 2012 18:47:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=adi_mutu06@yahoo.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=adi_mutu06@yahoo.com; sender-id=unknown; domainkeys=good Received-SPF: error (pb1.pair.com: domain yahoo.com from 98.139.91.226 cause and error) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: adi_mutu06@yahoo.com X-Host-Fingerprint: 98.139.91.226 nm24-vm0.bullet.mail.sp2.yahoo.com Received: from [98.139.91.226] ([98.139.91.226:27892] helo=nm24-vm0.bullet.mail.sp2.yahoo.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 40/B6-62543-548FDEF4 for ; Fri, 29 Jun 2012 14:47:34 -0400 Received: from [98.139.91.64] by nm24.bullet.mail.sp2.yahoo.com with NNFMP; 29 Jun 2012 18:47:30 -0000 Received: from [98.139.91.10] by tm4.bullet.mail.sp2.yahoo.com with NNFMP; 29 Jun 2012 18:47:30 -0000 Received: from [127.0.0.1] by omp1010.mail.sp2.yahoo.com with NNFMP; 29 Jun 2012 18:47:30 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 661330.25775.bm@omp1010.mail.sp2.yahoo.com Received: (qmail 36435 invoked by uid 60001); 29 Jun 2012 18:47:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1340995650; bh=51/2n+XOqq1b5ml69sZPAr7URHJDSGEM9xWqtntE3kQ=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=g20j6WCDergtiQoydrYLrHhHTiT9IJOO7LicOjFuoeJz+aeT5s2QhqS50sZI2c14vdAbRlWTOkx1U+O6fudsG3RWawzK4pxBRDnugRK8Ay0tebLNjSJ3sPRRI3EhNlsPz39U3hfACXhw9fncjRySU+4oGGKBTceWGjWdDNygte4= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=V7aEsvkYL8thZvDHF/3FHI1mP44uvFVDe2abnS7ey6ePk7QqcDv/lAYQ075+3STdK+O6BtfJnaOjoqbjLjETR8mk1DOd3S21Ska7prt0my3hhCtW2pC2itzOqlfX78JT4Df7S9x5tJ2nS8WGXpCsVJY+S5PEfZZ5/rIvr53keTw=; X-YMail-OSG: aHCoiiIVM1nOO9vOLDqXWyfyjt36v53L13iqkp_7z0Nmru4 pfMGWkBhzQWoy8END8xqjWJSbL1Zv_O.X.IouSUEVZ.V3D5QjjXipqEkkSA2 TRtI4IUhqYqAQyB2bTOxt9McuBVgxe2RWp32WDd60Yr5LCwmrE3e1BXB4OMH qqLE.eryity4SNbdJWXo5QLR4EwSm1mG.X8e6TC.Fh4_c82kmSVYhX3VFgbu PJiE3ZH943VtllQ8he_XOoG4Jv8qwILVbwUBwjPAbv.SQoNWiJ_EtEkp8ulx l1aCnyMPLdki1XXzbckF8TV7x12fxU7BTo.shTuYO_8CYDfRUkl7SY71aOO8 RKCucebmX7iGzifnxc0dBovWi9t1asHiwsjBYWiMyAx0jlbYs70eRGzqnRsh R9cXIfFvuBpZhVoiiyBv5f5qqzLy5TqZYsew2tHWBcx_7kFKDinx_o6apxJe ObUHo83aCWn7wUg-- Received: from [188.25.224.78] by web43511.mail.sp1.yahoo.com via HTTP; Fri, 29 Jun 2012 11:47:30 PDT X-Mailer: YahooMailWebService/0.8.120.356233 References: <1338926897.37775.YahooMailNeo@web43502.mail.sp1.yahoo.com> <1339095042.60350.YahooMailNeo@web43512.mail.sp1.yahoo.com> <1339098261.2665.578.camel@guybrush> <1339098824.12078.YahooMailNeo@web43502.mail.sp1.yahoo.com> <1339100302.2665.623.camel@guybrush> Message-ID: <1340995650.24924.YahooMailNeo@web43511.mail.sp1.yahoo.com> Date: Fri, 29 Jun 2012 11:47:30 -0700 (PDT) Reply-To: Adi Mutu To: =?iso-8859-1?Q?Johannes_Schl=FCter?= Cc: Felipe Pena , PHP Developers Mailing List In-Reply-To: <1339100302.2665.623.camel@guybrush> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="1670598919-681518637-1340995650=:24924" Subject: Re: [PHP-DEV] concatenation operator From: adi_mutu06@yahoo.com (Adi Mutu) --1670598919-681518637-1340995650=:24924 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hello,=0A=0ASorry for the late reply, I was away for a while......=0AI don'= t think I have dtrace because I'm on fedora.....but i'll research.=0A=0AIf = i would want to set a breakpoint after php's initialization process, but ri= ght before the scripts execution, so that after that I can set breakpoints = to emalloc and efree which are executed only during my scripts execution wh= ere should i set it? Hope the question was clear enough.....=0A=0Adtrace re= lated:=0AWhy have you used 'execute:return' and not=A0concat_function:retur= n? What's with the execute function?=0A=0A=0AThanks,=0AA.=0A=0A=0A_________= _______________________=0A From: Johannes Schl=FCter =0ATo: Adi Mutu =0ACc: Felipe Pena ; PHP Developers Mailing List =0ASent: Thur= sday, June 7, 2012 11:18 PM=0ASubject: Re: [PHP-DEV] concatenation operator= =0A =0AOn Thu, 2012-06-07 at 12:53 -0700, Adi Mutu wrote:=0A> Ok Johannes, = thanks for the answer. I'll try to look deeper. =0A> I basically just wante= d to know what happens when you concatenate two=0A> strings? what emalloc/e= free happens.=0A=0AThis depends. As always. As said what has to be done is = one allocation=0Afor the result value ... and then the zval magic, which de= pends on=0Arefcount, references, ...=0A=0A> Also can you tell me if possibl= e how to put a breakpoint to=0A> emalloc/efree which are executed only afte= r all core functions are=0A> registered? because it takes like a million ye= ars like this and a=0A> million F8 presses...=0A=0ADepends on your debugger= . Most allow conditional breakpoints or have a=0Abreakpoint and while holdi= ng at some place add a few more ...=0A=0AFor such a question my preference = is using DTrace (on Solaris, Mac or=0ABSD), something like this session:=0A= =0A=A0 =A0 =A0 =A0 $ cat test.d=0A=A0 =A0 =A0 =A0 #!/sbin/dtrace=0A=A0 =A0 = =A0 =A0 =0A=A0 =A0 =A0 =A0 pid$target::concat_function:entry {=0A=A0 =A0 = =A0 =A0 =A0=A0=A0 self->in_concat =3D 1;=0A=A0 =A0 =A0 =A0 }=0A=A0 =A0 =A0 = =A0 =0A=A0 =A0 =A0 =A0 pid$target::execute:return {=0A=A0 =A0 =A0 =A0 =A0= =A0=A0 self->in_concat =3D 0;=0A=A0 =A0 =A0 =A0 }=0A=A0 =A0 =A0 =A0 =0A=A0 = =A0 =A0 =A0 pid$target::_emalloc:entry=0A=A0 =A0 =A0 =A0 / self->in_concat = /=0A=A0 =A0 =A0 =A0 {=0A=A0 =A0 =A0 =A0 =A0=A0=A0 trace(arg0);=0A=A0 =A0 = =A0 =A0 =A0=A0=A0 ustack();=0A=A0 =A0 =A0 =A0 }=0A=A0 =A0 =A0 =A0 =0A=A0 = =A0 =A0 =A0 pid$target::_erealloc:entry=0A=A0 =A0 =A0 =A0 / self->in_concat= /=0A=A0 =A0 =A0 =A0 {=0A=A0 =A0 =A0 =A0 =A0=A0=A0 trace(arg0);=0A=A0 =A0 = =A0 =A0 =A0=A0=A0 trace(arg1);=0A=A0 =A0 =A0 =A0 =A0=A0=A0 ustack();=0A=A0 = =A0 =A0 =A0 }=0A=A0 =A0 =A0 =A0 =0A=A0 =A0 =A0 =A0 $ cat test1.php=0A=A0 = =A0 =A0 =A0