Re: override core function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 maintain that patch for your code to work in the various versions that you run/move to.

Is this a good idea - in my humble opinion - NO! Personally I would try to either find a different way to do whatever it is you are doing or find a workaround. Just because you can do it - doesn't mean you should.

--

life is a game... so have fun.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux