My 2c,
@ should be avoided unless there is clearly a very good reason. Otherwise we'll not receive those informative errors, and be waylaid in a debugger trying to figure it out. Using @ with preg_* seems odd. Suppression of missing param errors for some reason, maybe?
Pádraic Brady
http://blog.quantum-star.com
http://www.patternsforphp.com
@ should be avoided unless there is clearly a very good reason. Otherwise we'll not receive those informative errors, and be waylaid in a debugger trying to figure it out. Using @ with preg_* seems odd. Suppression of missing param errors for some reason, maybe?
Pádraic Brady
http://blog.quantum-star.com
http://www.patternsforphp.com
----- Original Message ----
From: Thomas Weidner <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]; [email protected]
Sent: Wednesday, October 4, 2006 8:19:33 AM
Subject: Re: [fw-general] Questionable use of '@' error suppression on preg_match()
From: Thomas Weidner <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]; [email protected]
Sent: Wednesday, October 4, 2006 8:19:33 AM
Subject: Re: [fw-general] Questionable use of '@' error suppression on preg_match()
> Does anyone else feel the use of '@' in conjunction with preg_*()
> functions should be avoided in the framework?
My opinion :
I would say that @ should be prevented almost everywhere...
We should have other ways to handle errors and warnings than
supressing/ignoring them.
Greetings
Thomas
> functions should be avoided in the framework?
My opinion :
I would say that @ should be prevented almost everywhere...
We should have other ways to handle errors and warnings than
supressing/ignoring them.
Greetings
Thomas
