hope add func_alias() function

From: Date: Mon, 04 Jan 2010 05:45:39 +0000
Subject: hope add func_alias() function
Groups: php.internals php.internals 
Request: Send a blank email to internals+get-46598@lists.php.net to get a copy of this message
php v5.3 added class_alias() function. same, i hope add func_alias() function is used to solve the problem without throwing an exception. Example: // Now class str {
    public static function len($str)
    {
        return strlen($str); // Warning is here, none throwing an exception
        // if u need exception, pls youself write ?
        // However, if this type of operation a lot?
    }
} str::len(array()); // Warning in the above // Expected class str{} func_alias('strlen', array('str', 'len')); str::len(array()); // strlen same warning. // This a fast packaging method. btw: Sorry, I speak english very poorly. regards dark9@rune.ws

« previous php.internals (#46598) next »