[PHP] override core function

2006-08-02 Thread Khai
Is it possible to override the core built-in function exit() in PHP. If so, how can I call the the built-in exit() from within my function? Thanks Khai -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] override core function

2006-08-02 Thread Robert Cummings
On Wed, 2006-08-02 at 12:26 -0700, Khai wrote: Is it possible to override the core built-in function exit() in PHP. If so, how can I call the the built-in exit() from within my function? No, but the following might help you: http://www.php.net/register_shutdown_function Cheers, Rob. --

Re: [PHP] override core function

2006-08-02 Thread Ligaya Turmelle
Khai wrote: Is it possible to override the core built-in function exit() in PHP. If so, how can I call the the built-in exit() from within my function? Thanks Khai I think you can override any core function by messing with the internals (though I could be wrong). But then you have to