Specifically, you want to enable the (under-documented)
runkit.internal_override INI option. It's mentioned on the reference page,
but with no explanation of what it does. I need to make a language-snippet
for that at some point....
This was added in version 0.6 (prior versions could only override
user-defined functions/methods). If you enable this option (PHP_INI_SYSTEM
only) you can use runkit_function_redefine() to replace the builtin time()
with something else.
-Sara
----- Original Message -----
From: "Wez Furlong" <kingwez@gmail.com>
Newsgroups: php.internals
To: <acox@broadwick.com>
Cc: <internals@lists.php.net>
Sent: Tuesday, November 15, 2005 4:07 PM
Subject: Re: [PHP-DEV] Overriding Default Functions
I think runkit is what you're looking for.
http://pecl.php.net/packages/runkit
--Wez.
On 11/15/05, Alan Cox <acox@broadwick.com> wrote: