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 f

Re: [PHP-DEV] concatenation operator

2012-06-07 Thread Adi Mutu
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. Also can you tell me if possible how to put a breakpoint to emalloc/efree which are executed only after all core functions are

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
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.  Can you point me to some resources on this topic? Thanks, From: Felipe Pena To: Adi Mutu Cc: PHP Developers Mai

Re: [PHP-DEV] Generators in PHP

2012-06-07 Thread Gustavo Lopes
(Sorry, I pressed something that sent the message prematurely) On Thu, 7 Jun 2012 01:10:52 +0200, Nikita Popov wrote: current() and key() should return false when !valid() Are you sure about that? The Iterator::current() docs don't specify anything, but the Iterator::key() docs say that it sh

Re: [PHP-DEV] Generators in PHP

2012-06-07 Thread Gustavo Lopes
On Thu, 7 Jun 2012 01:10:52 +0200, Nikita Popov wrote: current() and key() should return false when !valid() Are you sure about that? The Iterator::current() docs don't specify anything, but the Iterator::key() docs say that it should return NULL on failure. Checking on the first spl class tha

Re: [PHP-DEV] boolval() again

2012-06-07 Thread Pierre Joye
hi Gustavo, On Wed, Jun 6, 2012 at 9:48 PM, Gustavo Lopes wrote: > Adding a function or class most definitely is not a language change (unless > they have some special treatment like Iterator), unless you consider all the > core functions and classes to be part of the language, at which point >