Re: [PHP-DEV] [RFC] SPL & PCRE as always enabled in core

2007-06-06 Thread Marcus Boerger
Hello Alexey, but we already decided to obsolete mbstring in favor of ICU/PCRE in PHP 6. Also we have no control over mbstring's license because the license holder refuses to change mbstring library to PHP License. best regards marcus Wednesday, June 6, 2007, 4:32:11 PM, you wrote: > On 6/6/0

Re: [PHP-DEV] RE: using arrays instead of stdClass

2007-06-06 Thread Stanislav Malyshev
Yes, APC is able to memcpy arrays directly. I wonder how it deals with internal hash pointers - they can't be valid for anything except current run... Or you mean in does memcmp to values? -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com/ -- PHP Internals -

Re: [PHP-DEV] Recursive classes ... possible bug?

2007-06-06 Thread Greg Beaver
Antony Dovgal wrote: > On 06.06.2007 11:08, [EMAIL PROTECTED] wrote: >>> Why? >>> The behavior is quite clear - if the objects are instances of the >>> same class, we have no other way to compare them but to compare their >>> properties, this also applies to properties' properties and >>> propertie

Re: [PHP-DEV] RE: using arrays instead of stdClass

2007-06-06 Thread Rasmus Lerdorf
Stanislav Malyshev wrote: >> Well the problem is that I am trying to cache soap replies in APC. >> This seems to be buggy but at the very least will require a >> serialize/unserialize call, which again adds overhead. > > Wouldn't array require serializing too? Or APC is able to store arrays > in u

Re: [PHP-DEV] [RFC] SPL & PCRE as always enabled in core

2007-06-06 Thread Alexey Zakhlestin
On 6/6/07, Marcus Boerger <[EMAIL PROTECTED]> wrote: + other regex options suck I would argue that. mb_ereg (which is powered by oniguruma) seems to be way more interestingi (and it is faster too) -- Alexey Zakhlestin http://blog.milkfarmsoft.com/ -- PHP Internals - PHP Runtime Development

Re: [PHP-DEV] Recursive classes ... possible bug?

2007-06-06 Thread [EMAIL PROTECTED]
Antony Dovgal wrote: On 06.06.2007 11:08, [EMAIL PROTECTED] wrote: Why? The behavior is quite clear - if the objects are instances of the same class, we have no other way to compare them but to compare their properties, this also applies to properties' properties and properties' properties' p

Re: [PHP-DEV] Recursive classes ... possible bug?

2007-06-06 Thread Antony Dovgal
On 06.06.2007 11:08, [EMAIL PROTECTED] wrote: Why? The behavior is quite clear - if the objects are instances of the same class, we have no other way to compare them but to compare their properties, this also applies to properties' properties and properties' properties' properties etc. Well ye

Re: [PHP-DEV] Recursive classes ... possible bug?

2007-06-06 Thread M. Sokolewicz
Christian Schneider wrote: Daniel Penning wrote: Checking if the reference is equal and then doing the member-by-member comparison if they differ would prevent too deep recursion in most cases. That would solve this particular case (and might be worth doing for performance reasons anyway I'd s

Re: [PHP-DEV] Recursive classes ... possible bug?

2007-06-06 Thread Christian Schneider
Daniel Penning wrote: > Checking if the reference is equal and then doing the member-by-member > comparison if they differ would prevent too deep recursion in most cases. That would solve this particular case (and might be worth doing for performance reasons anyway I'd say) but won't solve the gen

Re: [PHP-DEV] [RFC] SPL & PCRE as always enabled in core

2007-06-06 Thread Jani Taskinen
And to be absolutely clear about this: This will happen in HEAD (PHP 6) only. Right? :) --Jani On Tue, 2007-06-05 at 22:19 +0200, Marcus Boerger wrote: > Hello internals, > > let's make ext/pcre and ext/spl first class core components and not allow > to disable them. > > SPL: > + influenc

Re: [PHP-DEV] RE: using arrays instead of stdClass

2007-06-06 Thread Lukas Kahwe Smith
Stanislav Malyshev wrote: Well the problem is that I am trying to cache soap replies in APC. This seems to be buggy but at the very least will require a serialize/unserialize call, which again adds overhead. Wouldn't array require serializing too? Or APC is able to store arrays in unserialize

Re: [PHP-DEV] Recursive classes ... possible bug?

2007-06-06 Thread Daniel Penning
Paweł Stradomski schrieb: [EMAIL PROTECTED] wrote: Dear internals, I stumbled upon the following odd error message from PHP which I was not expecting. function test(){ echo $this == $this->c1->c2?'equals':'not equals'; // Somehow this Use === (shallow test - returns true iff the

Re: [PHP-DEV] [RFC] SPL & PCRE as always enabled in core

2007-06-06 Thread Stanislav Malyshev
You are actually not allowed to change the signature. If you could add or drop & from the signature then there is a bug in the engine. That is what Pierre was referring to, the disability to change the signature. You mean when you inherit class with __get defined? Why not? -- Stanislav Malyshev,

[PHP-DEV] CVS Account Request: ron

2007-06-06 Thread Ron Korving
Active maintanance of the dutch PHP manual translation. I was asked to apply for a CVS account by Philip Olson. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] SPL & PCRE as always enabled in core

2007-06-06 Thread Marcus Boerger
Hello Stanislav, Wednesday, June 6, 2007, 9:06:13 AM, you wrote: >> Please check the bugs database. There was numerous reports about this >> problem and there is no solution to use an object instead of an array > I'm still not following, I tried modifying the example you gave making > __get ret

Re: [PHP-DEV] [RFC] SPL & PCRE as always enabled in core

2007-06-06 Thread Marcus Boerger
Hello Pierre, it is neither a core feature nor does it blong into the engine. And the real solution would be: - proxies (object, property), (object, array index) - another interface, say ArrayAccessByRef which allows to deal with references, a few things can be done automatically but you can n

Re: [PHP-DEV] [RFC] SPL & PCRE as always enabled in core

2007-06-06 Thread Stanislav Malyshev
Please check the bugs database. There was numerous reports about this problem and there is no solution to use an object instead of an array I'm still not following, I tried modifying the example you gave making __get return by reference and it worked just fine. I would gladly look up the bug d

Re: [PHP-DEV] [RFC] SPL & PCRE as always enabled in core

2007-06-06 Thread Pierre
On 6/5/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: >> Could you elaborate - which bugs? > > A rude explanation was here: > > http://blog.thepimp.net/index.php/post/2006/11/28/comment-posting-fixed-and-warning-removed-and-some-overload-mess I'm not sure I understand where is the bug. If yo