/** * A hack to support __construct() on PHP 4 * * Hint: descendant classes have no PHP4 class_name() * constructors, so this one gets called first and calls the * top-layer __construct() which (if present) should call * parent::__construct() * * @access public * @return void */ function AkObject() { Ak::profile('Instantiating ' . get_class($this)); $args = func_get_args(); ____ak_shutdown_function(&$this); call_user_func_array(array(&$this, '__construct'), $args); ____ak_shutdown_function(true); }
/** * A hack to support __construct() on PHP 4 * * Hint: descendant classes have no PHP4 class_name() * constructors, so this one gets called first and calls the * top-layer __construct() which (if present) should call * parent::__construct() * * @access public * @return void */ function AkObject() { $args = func_get_args(); ____ak_shutdown_function(&$this); call_user_func_array(array(&$this, '__construct'), $args); ____ak_shutdown_function(true); }
/** * A hack to support __construct() on PHP 4 * * Hint: descendant classes have no PHP4 class_name() * constructors, so this one gets called first and calls the * top-layer __construct() which (if present) should call * parent::__construct() * * @access public * @return void */ function AkObject() { static $_callback_called; Ak::profile('Instantiating ' . get_class($this)); $args = func_get_args(); // register_shutdown_function(array(&$this, '__destruct')); ____ak_shutdown_function(&$this); call_user_func_array(array(&$this, '__construct'), $args); if (empty($_callback_called)) { $_callback_called = true; register_shutdown_function('____ak_shutdown_function'); } }