Stanislav Malyshev wrote:
Hi!
I've implemented a patch that allows to "mask" certain types of errors -
i.e. make PHP engine completely ignore them. Now even if the error is
not reported, it passes full cycle through message string creation, all
allocations on the way, etc. even though ultimately the result of it
will be thrown out. So I offer a way to make unwanted errors just
disappear.
I know I'm a nobody here but, I think this is a really important change.
I have worked in a couple of different companies where we have
specifically turned turned down the error log noise in our production
environment but kept them turned on fully (E_ALL | E_DEPRECATED) in our
dev/staging environments.
While our production environments were technically a bit quieter
log-wise, there was definitely no apparent performance benefit aside
from saving having to write to the logs. In fact, during our transition
from 4.x -> 5.x, we noticed a marked slowdown related to generation of
E_STRICT messages even when E_STRICT was disabled - which I only
realized through stepping through the source via gdb was because it was
still going through the motions of creating the messages even though
they were discarded later.
Again, I know I'm nobody here but, I really hope you find this patch
worth committing - I know I would.
Thanks for listening,
--
Carl P. Corliss
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php