On Sun, 25 Apr 2004, Sara Golemon wrote:
> Here's what I think is the fix for 28151 (I have no strong feelings on
> whether or not it belongs in the engine, but I am +1 on it personally).
> Zend guys?
Did you run "make test" with this change? I have a feeling that'd break
other things...
Derick
Here's what I think is the fix for 28151 (I have no strong feelings on
whether or not it belongs in the engine, but I am +1 on it personally).
Zend guys?
Index: Zend/zend_execute.c
===
RCS file: /repository/ZendEngine2/zend_execute.c
I added two new functions for handling output filters in the
Apache2Handler SAPI:
bool apache_add_output_filter(string filter_name) - Attempts to add the
named filter to the Filter Chain.
array apache_get_output_filters() - Returns an array of all Active
Output filters for this request
The abili
Hi all,
Hi Timm,
How about:
return call_user_func_array(
array(new ReflectionClass($className), 'newInstance'),
$functionParameters
);
I also considered this possibility, but it looked like big overhead.
Am I wrong?
Yours sincerly,
Julian Reich
--
PHP Internals - PHP Runtime Development Ma
Hello Julian,
adding a new function seens the wron way. I'd prefer adding this
functionality to the reflection API. Hande a look at
Zend/zend_reflection_api.c: ZEND_METHOD(reflection_class, newInstance)
marcus
Sunday, April 25, 2004, 7:02:40 PM, you wrote:
> Hi all,
> Referring to call_user_fu
Timm Friebe wrote:
How about:
return call_user_func_array(
array(new ReflectionClass($className), 'newInstance'),
$functionParameters
);
Untested but should work.
- Timm
Yep, I have done something similar and it worked. The Reflection API is quite powerful.
Andrey
--
PHP Internals
On Sun, 2004-04-25 at 19:02, Julian Reich wrote:
> Hi all,
>
> Referring to call_user_func_array() I would like to suggest a new
> function: new_object_array().
> I'm working on a php5 application framework and I would like to
> implement something I call an unified factory. The problem is that
Hi all,
Referring to call_user_func_array() I would like to suggest a new
function: new_object_array().
I'm working on a php5 application framework and I would like to
implement something I call an unified factory. The problem is that I
don't know how many parameters to expect.
Here's an examp