Re: [PHP-DEV] concatenation operator

2012-07-02 Thread Christopher Jones
On 06/30/2012 04:51 PM, Johannes Schlüter wrote: On Sat, 2012-06-30 at 03:53 -0700, Adi Mutu wrote: Only thing that helps is learning the code structure and digging through it. Any hint/documentation to learn that? Use the source. ;-) A bit more seriously: No, there's no good single

Re: [PHP-DEV] concatenation operator

2012-06-30 Thread Adi Mutu
: Saturday, June 30, 2012 12:36 AM Subject: Re: [PHP-DEV] concatenation operator On Fri, 2012-06-29 at 11:47 -0700, Adi Mutu wrote: Sorry for the late reply, I was away for a while.. I don't think I have dtrace because I'm on fedora.but i'll research. As said: Currently only on Solaris

Re: [PHP-DEV] concatenation operator

2012-06-30 Thread Johannes Schlüter
On Sat, 2012-06-30 at 03:53 -0700, Adi Mutu wrote: By initialization i mean the latest point possible where I can set a breakpoint, but right before my scripts starts executing it's emalloc's or efree's. Does executing include compilation? Does it include creating a stack frame etc. for

Re: [PHP-DEV] concatenation operator

2012-06-29 Thread Adi Mutu
, A. From: Johannes Schlüter johan...@schlueters.de To: Adi Mutu adi_mut...@yahoo.com Cc: Felipe Pena felipe...@gmail.com; PHP Developers Mailing List internals@lists.php.net Sent: Thursday, June 7, 2012 11:18 PM Subject: Re: [PHP-DEV] concatenation operator On Thu, 2012-06-07 at 12:53 -0700, Adi

Re: [PHP-DEV] concatenation operator

2012-06-29 Thread Johannes Schlüter
On Fri, 2012-06-29 at 11:47 -0700, Adi Mutu wrote: Sorry for the late reply, I was away for a while.. I don't think I have dtrace because I'm on fedora.but i'll research. As said: Currently only on Solaris, MacOS and BSD. Oracle is porting DTrace to Oracle Linux. RedHat created

Re: [PHP-DEV] concatenation operator

2012-06-14 Thread Ángel González
On 13/06/12 05:26, Morgan L. Owens wrote: After reading the performance improvements RFC about interned strings, and its passing mention of a special data structure (e.g. zend_string) instead of char*, I've been thinking a little bit about this and what such a structure could be. But rather

Re: Re: [PHP-DEV] concatenation operator

2012-06-14 Thread Morgan L. Owens
On 2012-06-15 04:00, Ángel González wrote: On 13/06/12 05:26, Morgan L. Owens wrote: After reading the performance improvements RFC about interned strings, and its passing mention of a special data structure (e.g. zend_string) instead of char*, I've been thinking a little bit about this and

Re: Re: [PHP-DEV] concatenation operator

2012-06-12 Thread Morgan L. Owens
On 2012-06-08 08:18, Johannes Schlüter wrote: On Thu, 2012-06-07 at 12:53 -0700, Adi Mutu wrote: Ok Johannes, thanks for the answer. I'll try to look deeper. I basically just wanted to know what happens when you concatenate two strings? what emalloc/efree happens. This depends. As always. As

Re: [PHP-DEV] concatenation operator

2012-06-07 Thread Adi Mutu
adi_mut...@yahoo.com Cc: PHP Developers Mailing List internals@lists.php.net Sent: Tuesday, June 5, 2012 11:17 PM Subject: Re: [PHP-DEV] concatenation operator Hi, 2012/6/5 Adi Mutu adi_mut...@yahoo.com: Hello, Can somebody point me to where the concatenation operator is implemented

Re: [PHP-DEV] concatenation operator

2012-06-07 Thread Johannes Schlüter
On Thu, 2012-06-07 at 11:50 -0700, Adi Mutu wrote: that's nice, but i haven't understood a thing...i know something about php core and php extensions, but nothing about the Zend engine specific. The mentioned place is directly in the VM, which in general is harder to understand, but well,

Re: [PHP-DEV] concatenation operator

2012-06-07 Thread Adi Mutu
@lists.php.net Sent: Thursday, June 7, 2012 10:44 PM Subject: Re: [PHP-DEV] concatenation operator On Thu, 2012-06-07 at 11:50 -0700, Adi Mutu wrote: that's nice, but i haven't understood a thing...i know something about php core and php extensions, but nothing about the Zend engine specific

Re: [PHP-DEV] concatenation operator

2012-06-07 Thread Johannes Schlüter
On Thu, 2012-06-07 at 12:53 -0700, Adi Mutu wrote: Ok Johannes, thanks for the answer. I'll try to look deeper. I basically just wanted to know what happens when you concatenate two strings? what emalloc/efree happens. This depends. As always. As said what has to be done is one allocation for

Re: [PHP-DEV] concatenation operator

2012-06-05 Thread Felipe Pena
Hi, 2012/6/5 Adi Mutu adi_mut...@yahoo.com: Hello, Can somebody point me to where the concatenation operator is implemented ?   . operator. Thanks, See http://lxr.php.net/xref/PHP_TRUNK/Zend/zend_vm_def.h#133 -- Regards, Felipe Pena -- PHP Internals - PHP Runtime Development Mailing