Re: Overriding core functions

From: Date: Tue, 22 Aug 2006 15:41:21 +0000
Subject: Re: Overriding core functions
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-241013@lists.php.net to get a copy of this message
Brad Bonkoski wrote:
Some already good workarounds given for this question... BUT. Is it even possible to override a core function? Like I wrote a function called 'exit' and I got a parser error, which leads me to believe it is not even possible to override the core functions. Is this true of ALL PHP functions? -B 'exit' is a language construct like 'echo', so I don't think you'd be able to redefine that even with runkit.
Arpad

« previous php.general (#241013) next »