note 22564 added to function.call-user-func-array

From: Date: Sat, 22 Jun 2002 20:19:51 +0000
Subject: note 22564 added to function.call-user-func-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-32114@lists.php.net to get a copy of this message
Unified constructors in PHP4: <?php class Object { function Object() { $args= func_get_args(); call_user_func_array(array(&$this, '__construct'), $args); } function __construct($args= NULL) { var_dump($args); } } class Exception extends Object { var $message; function __construct($message) { $this->message= $message; parent::__construct(); } } class IOException extends Exception { } var_dump( error_reporting(), zend_version(), phpversion() ); $c= new IOException('file not found'); echo '===> Result: '; var_dump($c); ?> -- http://www.php.net/manual/en/function.call-user-func-array.php http://master.php.net/manage/user-notes.php?action=edit+22564 http://master.php.net/manage/user-notes.php?action=delete+22564 http://master.php.net/manage/user-notes.php?action=reject+22564

« previous php.notes (#32114) next »