Hi Romain,

I don't agree that the usage of @ is evil in general. In my opinion
the @-operator should only be used in conjunction with proper error
management though, because if I handle an error, I don't want it to
appear in my logs.

This should in my opinion also be done in symfony.

Example:

if (!$fp = fopen(...))
{
  $e = error_get_last();
  throw new FileException($e['message'], $e['type']);
}

This way you can properly discover the error or recover from it.


Bernhard

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to