Re: [PHP-DEV] Overloaded class registration

2004-11-16 Thread Marcus Boerger
Hello Evan, what you do is irrelevant you need to define the method signature. See example from Zend/zend_interfaces.c: static ZEND_BEGIN_ARG_INFO(arginfo_arrayaccess_offset, 0) ZEND_ARG_INFO(0, offset) ZEND_END_ARG_INFO(); static ZEND_BEGIN_ARG_INFO(arginfo_arrayaccess_offset_value, 0)

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/standard array.c

2004-11-16 Thread Marcus Boerger
Hello Andi, Tuesday, November 16, 2004, 11:56:48 PM, you wrote: > Marcus, > I didn't see discussion about this. How much is such a countable interface > really needed? Is this only for SPL or is this supposed to be general > purpose. I would prefer to only see it in SPL but I see you made some

[PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/standard array.c

2004-11-16 Thread Andi Gutmans
Marcus, I didn't see discussion about this. How much is such a countable interface really needed? Is this only for SPL or is this supposed to be general purpose. I would prefer to only see it in SPL but I see you made some changes to array.c. This might lead to inconsistency with the rest of PHP

Re: [PHP-DEV] Overloaded class registration

2004-11-16 Thread Evan Nemerson
On Tuesday 16 Nov 2004 13:32, Marcus Boerger wrote: > Hello Evan, > > your implementation is wrong, you need to specify the arguments to > __get/__set. Thanks for the reply, but can you be a bit more specific? I'm already specifying num_args and required_num_args (the former of which is what is

[PHP-DEV] Overloaded class registration

2004-11-16 Thread Evan Nemerson
Hi everyone, I noticed recently that both of my extensions (Panda and FANN, both in PECL) emit error messages when their __get() and __set() methods are registered. The problem seems to be that fptr.common->num_args is always 0 in zend_check_magic_method_implementation(), regardless of what I s

Re: [PHP-DEV] Overloaded class registration

2004-11-16 Thread Marcus Boerger
Hello Evan, your implementation is wrong, you need to specify the arguments to __get/__set. best regards marcus Tuesday, November 16, 2004, 9:01:25 PM, you wrote: > Hi everyone, > I noticed recently that both of my extensions (Panda and FANN, both in PECL) > emit error messages when their __

Re: [PHP-DEV] Type hints with null default values

2004-11-16 Thread Cristiano Duarte
Andi Gutmans wrote: > At 10:53 AM 10/27/2004 +0200, Christian Schneider wrote: >>Advocating to only change the PHP syntax to simplify it, > > Yeah I tend to agree. Adding [] for a not that popular case seems not to > be worth it. It just adds more complexity to the syntax. > I suggest to either l

Re: [PHP-DEV] PHP broken pipe in fork

2004-11-16 Thread Sara Golemon
>> I'm using a query in loop and go through all records to do some >> operations in the middle of the script i fork(); to do other things >> When i return to the parent process i try to make one update and i >> get the following error [nativecode=Unable to complete network >> request to host "127.0

Re: [PHP-DEV] PHP broken pipe in fork

2004-11-16 Thread Shaun Thomas
[EMAIL PROTECTED] wrote: I'm using a query in loop and go through all records to do some operations in the middle of the script i fork(); to do other things When i return to the parent process i try to make one update and i get the following error [nativecode=Unable to complete network request to h

[PHP-DEV] PHP broken pipe in fork

2004-11-16 Thread user
Hi, i'm using firebird 1.5.1 on a linux machine with a php script I'm using a query in loop and go through all records to do some operations in the middle of the script i fork(); to do other things When i return to the parent process i try to make one update and i get the following error [nativeco