PHP try\catch blocks: Drawbacks?
Posted: Fri Feb 05, 2010 9:26 am
Hi
In other languages, using try\catch block adds a performance hit because the compiler does not optimize the code within the block in order to more eazily catch errors.
So, is this also the case in PHP, is there a performance (speed and\or memory) hit in using try\catch blocks?
Thanks
Jeff in Seattle
In other languages, using try\catch block adds a performance hit because the compiler does not optimize the code within the block in order to more eazily catch errors.
So, is this also the case in PHP, is there a performance (speed and\or memory) hit in using try\catch blocks?
Thanks
Jeff in Seattle