Re: Re: [PHP4BETA] cvs: php4 / NEWS TODO php4dllts.dsp php4ts.dsp /ext/mysql/libmysql/ libmysql.dsp /ext/standard/ array.c basic_functions.c
/sapi/apache/ php4apache.dsp /sapi/isapi/ php4isapi.dsp /sapi/nsapi/ php4nsapi.dsp

From: Date: Sat, 03 Jun 2000 15:16:57 +0000
Subject: Re: Re: [PHP4BETA] cvs: php4 / NEWS TODO php4dllts.dsp php4ts.dsp /ext/mysql/libmysql/ libmysql.dsp /ext/standard/ array.c basic_functions.c
/sapi/apache/ php4apache.dsp /sapi/isapi/ php4isapi.dsp /sapi/nsapi/ php4nsapi.dsp
References: 1 2 3 4 5 6 7  Groups: php.dev 
Request: Send a blank email to php-dev+get-20121@lists.php.net to get a copy of this message
Quoting Andi Gutmans <andi@zend.com>: > Having both is probably the right thing. Detect what the first array > element is. If it's an object then use it as object; if it is a string then > use it as the classname. Okay... so, looking at call_user_function_ex (which seems to be where the change needs to be made?), I'm not quite sure what needs to happen next. Does call_user_function_ex already handle static method calls? If so, then: if (object) { if (object->type == IS_STRING) { // function_name = object . '::' . function_name; // not sure of the c involved in concatting zvals together... } else if (object->type == IS_OBJECT) { function_table = &object->value.obj.ce->function_table; } else { return FAILURE; } } ... seems like it would do it? -chuck -- Charles Hagenbuch, <chagenbu@wso.williams.edu> -- "I forgot to mention how good my memory is." - Mandy

« previous php.dev (#20121) next »