Calling a class constructor

From: Date: Wed, 30 Apr 2008 16:57:41 +0000
Subject: Calling a class constructor
Groups: php.internals 
Request: Send a blank email to internals+get-37366@lists.php.net to get a copy of this message
Currently there is no way to call a class constructor using call_user_func or something similar, the only way is to use a reflection object which is useless overhead and takes a few lines of code. This would be very useful to be able to do create_new(string $class, array $constructor_args) Does anyone else see a need for this?

« previous php.internals (#37366) next »