Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60778 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55916 invoked from network); 7 Jun 2012 19:53:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jun 2012 19:53:48 -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.194 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.194 nm8-vm0.bullet.mail.sp2.yahoo.com Received: from [98.139.91.194] ([98.139.91.194:24832] helo=nm8-vm0.bullet.mail.sp2.yahoo.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 44/A8-11153-BC601DF4 for ; Thu, 07 Jun 2012 15:53:48 -0400 Received: from [98.139.91.68] by nm8.bullet.mail.sp2.yahoo.com with NNFMP; 07 Jun 2012 19:53:44 -0000 Received: from [98.139.91.28] by tm8.bullet.mail.sp2.yahoo.com with NNFMP; 07 Jun 2012 19:53:44 -0000 Received: from [127.0.0.1] by omp1028.mail.sp2.yahoo.com with NNFMP; 07 Jun 2012 19:53:44 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 788214.26602.bm@omp1028.mail.sp2.yahoo.com Received: (qmail 13296 invoked by uid 60001); 7 Jun 2012 19:53:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1339098824; bh=m4NHlkfvF6oXw4yDwa5kJBIKnvfWCyMGT/q1Z4EOZqY=; 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=c/AdCcZUwrWz9UjCt/j7aL6s/1z46T60fACEvJKNxDR+qThXqdUbSl2Bd7m+m2xC12jdbEvnCS4A8FZwvmr89PPAqE+7OU5OakzBosrrCpwOIojnhWmx9r/jznCoKV+RL/52eddF6WEZC3+pVmv2I5l7Oy6+21pR5rrxqn3IZQQ= 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=mIn4sZiwjcdDn5QoMG24l5xQjq5Hk9+fWOxzPcsFp5r6lXtS4zMmU1+7b4ObjGNmJ7HJkOvzUqojYCWePMg/JzfnhzN4UDzgNe3kmaY6yz2nu5eDJBvsznQwfgGvsHbZb08K9avNsN0vucMOHl8LU9DApK1QzsvZ3IWXfJ1kctE=; X-YMail-OSG: evhmFmMVM1kzqkLdDr9OiMu8qKbaiXdDgqj3hpRsvlte4S3 GbrKp0Zgbqh3yQPPJpyhFYZi5pwNJO4kQsEzEzkcSXT.c7WEaq1pAqLeKgjr Krtdr3qmhrCdhmiXeyfACBwRacyLwl4uS6jK63Yoq_8_9fyfL07OXjOEA2VE VCm9RuzjZzPCVzdHWZb68LjB.Y_PQVjJ8ddzhTV4yp.TxN5_pvMokuCpNxrr E.ZeiZZu_a3e1v1FPW5e0pku.Rf2hplIgbBSnr3OVoJxzPUCW3wrgHljd_a5 Kxx6Wtq4eX14vTZVtT7DKu3RTAlNMzM3JW6_NkU8hdIvhGG7zKc0Dy9PoPxg sqkLfWTHWmbtH_EJXCC_p6lKzbVOdggPRmGqdC.NeSxofjzQ7MTdj5Aaunw3 mSJSGE.SM9OUzFJ_Dz2.qkrlpTn_lV4u3WsREqmul9xJL76kwkt77XAoRLME .hRGkZAVhT5tus0Fk81Dx2gYf.2PJVGbJ2i5.6oAb Received: from [188.25.221.19] by web43502.mail.sp1.yahoo.com via HTTP; Thu, 07 Jun 2012 12:53:44 PDT X-Mailer: YahooMailWebService/0.8.118.349524 References: <1338926897.37775.YahooMailNeo@web43502.mail.sp1.yahoo.com> <1339095042.60350.YahooMailNeo@web43512.mail.sp1.yahoo.com> <1339098261.2665.578.camel@guybrush> Message-ID: <1339098824.12078.YahooMailNeo@web43502.mail.sp1.yahoo.com> Date: Thu, 7 Jun 2012 12:53:44 -0700 (PDT) Reply-To: Adi Mutu To: =?iso-8859-1?Q?Johannes_Schl=FCter?= Cc: Felipe Pena , PHP Developers Mailing List In-Reply-To: <1339098261.2665.578.camel@guybrush> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="1781091733-1404649659-1339098824=:12078" Subject: Re: [PHP-DEV] concatenation operator From: adi_mutu06@yahoo.com (Adi Mutu) --1781091733-1404649659-1339098824=:12078 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Ok Johannes, thanks for the answer. I'll try to look deeper.=A0=0AI basical= ly just wanted to know what happens when you concatenate two strings? what = emalloc/efree happens.=0A=0AAlso can you tell me if possible how to put a b= reakpoint to emalloc/efree which are executed only after all core functions= are registered? because it takes like a million years like this and a mill= ion F8 presses...=0A=0AThanks.=0A=0A=0A________________________________=0A = From: Johannes Schl=FCter =0ATo: Adi Mutu =0ACc: Felipe Pena ; PHP Developers Mail= ing List =0ASent: Thursday, June 7, 2012 10:44 PM= =0ASubject: Re: [PHP-DEV] concatenation operator=0A =0AOn Thu, 2012-06-07 a= t 11:50 -0700, Adi Mutu wrote:=0A> =0A> that's nice, but i haven't understo= od a thing...i know something about=0A> php core and php extensions, but no= thing about the Zend engine=0A> specific. =0A=0AThe mentioned place is dire= ctly in the VM, which in general is harder to=0Aunderstand, but well, it di= rects to the "concat_function" on=0Ahttp://lxr.php.net/xref/PHP_TRUNK/Zend/= zend_operators.c#1234=0A=0AKnowing basic C should be enough to understand t= he code there. The=0Aactual "algorithm" can also easily be guessed (allocat= e a buffer which=0Acan hold both strings at once and copy them over,the cod= e is a tiny bit=0Amore complex as it tries tore use an existing buffer than= allocating=0Asomething completely new)=0A=0AThe question is: What do you a= ctually want to know?=0A=0A> Can you point me to some resources on this top= ic?=0A=0AUnfortunately not. The source is the best documentation we have fo= r=0Athat.=0A=0Ajohannes=0A=0A=0A=0A-- =0APHP Internals - PHP Runtime Develo= pment Mailing List=0ATo unsubscribe, visit: http://www.php.net/unsub.php --1781091733-1404649659-1339098824=:12078--