Re: [PHP-DEV] spl_autoload vs __autoload

2007-12-28 Thread Andrew Mason
Thanks for your replies guys. Part of the reason why I asked here is because of a previous posting a while back where Stas seemed to suggest that the spl_autoloader was superior but from reading the api i didn't know if this was purely from a flexibility point of view or if there was more too it.

Re: [PHP-DEV] spl_autoload vs __autoload

2007-12-28 Thread Pierre
On Dec 28, 2007 3:30 PM, <[EMAIL PROTECTED]> wrote: > On Dec 28, 2007 6:56 AM, Andrew Mason <[EMAIL PROTECTED]> wrote: > > Hi guys, > > Can anyone shed some light on the advantages of the spl_autoload over > > the standard __autoload ? is there any ? > > > > Please use php-general for that kind of

[PHP-DEV] Re: PATCH: Implementing closures in PHP

2007-12-28 Thread Ryusuke SEKIYAMA
>any idea about the possibility of hash conflict? How about this patch? http://www.opendogs.org/pub/php-5.3dev-071228a.patch This patch is PHP 5.3 version of the patch I have introduced in my blog. (written in Japanese) 1. http://d.hatena.ne.jp/rsky/20071126/1196077860 2. http://d.hatena.ne.jp/rs

Re: [PHP-DEV] spl_autoload vs __autoload

2007-12-28 Thread david . coallier
On Dec 28, 2007 6:56 AM, Andrew Mason <[EMAIL PROTECTED]> wrote: > Hi guys, > Can anyone shed some light on the advantages of the spl_autoload over > the standard __autoload ? is there any ? > Please use php-general for that kind of question. > > kind regards > Andrew > > -- > PHP Internals - PH

Re: [PHP-DEV] spl_autoload vs __autoload

2007-12-28 Thread Stefan Priebsch
Andrew Mason schrieb: > Hi guys, > Can anyone shed some light on the advantages of the spl_autoload over > the standard __autoload ? is there any ? You can only register one __autoload() function, whereas spl_autoload() allows for a hierarchy of handlers. This allows for libraries to register thei

Re: [PHP-DEV] spl_autoload vs __autoload

2007-12-28 Thread Alexey Zakhlestin
On 12/28/07, Andrew Mason <[EMAIL PROTECTED]> wrote: > Can anyone shed some light on the advantages of the spl_autoload over > the standard __autoload ? is there any ? sure. spl_autoload allows you to have many independent autoloaders -- Alexey Zakhlestin http://blog.milkfarmsoft.com/ -- PHP I

Re: [PHP-DEV] Patch for macros for tracking refcount and is_ref

2007-12-28 Thread Xuefer
why not keep ZVAL_ADDREF ZVAL_DELREF for 3rd party source level compatibility reason and deprecate it? e.g.: pecl/event/event.c: 790 ZVAL_ADDREF(ev->php_cb_arg); On Sep 4, 2007 10:24 PM, David Wang <[EMAIL PROTECTED]> wrote: > > One thing to note is that I removed the existing ZVAL_ADDREF and

[PHP-DEV] spl_autoload vs __autoload

2007-12-28 Thread Andrew Mason
Hi guys, Can anyone shed some light on the advantages of the spl_autoload over the standard __autoload ? is there any ? kind regards Andrew -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [bug in php5.3 cvs] op2 of OP_DATA which after INIT_NS_FCALL_BY_NAME is uninitialized

2007-12-28 Thread Dmitry Stogov
Thanks for catching this. Committed. Dmitry. phpxcache wrote: http://bugs.php.net/bug.php?id=43696 Description: as you can see in zend_compile.c opline->opcode = ZEND_INIT_NS_FCALL_BY_NAME; ZEND_INIT_NS_FCALL_BY_NAME's op1 is initialized, so is op2 . opline-

[PHP-DEV] [bug in php5.3 cvs] op2 of OP_DATA which after INIT_NS_FCALL_BY_NAME is uninitialized

2007-12-28 Thread phpxcache
http://bugs.php.net/bug.php?id=43696 Description: as you can see in zend_compile.c opline->opcode = ZEND_INIT_NS_FCALL_BY_NAME; ZEND_INIT_NS_FCALL_BY_NAME's op1 is initialized, so is op2 . opline->opcode = ZEND_OP_DATA; ZEND_OP_DATA's op1 is initialized here but