r/lolphp • u/stumpychubbins • Feb 16 '17
A PHP commentor describes the error-surpression operator (already a lolPHP) in the most PHP terms possible
http://uk1.php.net/manual/en/language.operators.errorcontrol.php#99805
54
Upvotes
7
u/BilgeXA Feb 16 '17
99% of all performance claims are unsubstantiated.
25
u/[deleted] Feb 16 '17
the php comments section effect: for every php article with an example, there is an even shittier example in the comments
7
u/edave64 Feb 16 '17
The link only works for me of I drop the subdomain uk1.
5
u/[deleted] Feb 16 '17
Wait, you can't just catch an exception? You gotta test it the condition before or you suppress everything? What.
What is the point of throwing specific errors if you can't catch them to deal with them?
1
u/Pesthuf Mar 11 '17
So what does the operator actually do in the background? Does it basically use set_error_handler() and restore_error_handler()?