Date: 08/15/01
- Next message: Sterling Hughes: "Re: [PHP-DEV] Setting up RFC"
- Previous message: Cynic: "Re: [PHP-DEV] Engine 2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: ron <email protected>
Operating system: Linux
PHP version: 4.0.6
PHP Bug Type: Feature/Change Request
Bug description: new_object_array()
I was hoping that the dynamic creation of objects could be extended to
support it's parameters in an array format like the functions
call_user_method_array and call_user_func_array(). This would be great for
test suites.
eg
function test_suite_object_test($class, $args) {
if (!class_exists($class)) error();
else {
$obj = new_object_array($class, $args);
...
futher tests on the object
...
}
}
This would useful, not having to hard code the constructors parameter
list, with obvious limitations, with something like:
function test_suite_object_test($class, $arg1, $arg2, $arg3, $arg4) {
if (!class_exists($class)) error();
else {
$obj = new $class($arg1, $arg2, $arg3, $arg4);
...
futher tests on the object
...
}
}
-- Edit bug report at: http://bugs.php.net/?id=12771&edit=1-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Sterling Hughes: "Re: [PHP-DEV] Setting up RFC"
- Previous message: Cynic: "Re: [PHP-DEV] Engine 2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

