پشتیبانی از ()construct__ در PHP4؟
۱۳۹۲/۰۵/۰۲

/**
* A hack to support __construct() on PHP 4
* Hint: descendant classes have no PHP4 class_name() constructors,
* so this constructor gets called first and calls the top-layer __construct()
* which (if present) should call parent::__construct()
*
* @return Object
*/
function object()
{
$arguments = func_get_args();
if (method_exists($this, '__destruct')) register_shutdown_function(array(&$this, '__destruct'));
call_user_func_array(array(&$this, '__construct'), $arguments);
}
https://github.com/felixge/raleigh-workshop-08/blob/master/application/cake/libs/object.php
