On 4/15/10 8:45 AM, Jari Aalto via RT wrote:
Show quoted text> print() and printf() not customarily checked when output is sent to
> STDOUT or STDERR. If you happen to have a production code to show where
> every print-call is surrounded by error checks, then we're all
> believers. The only place this could be potentially useful is from PHP.
The defaults of this policy are specifically to look for open, close, print, and say, i.e. the specific intent is for you to check for the result of those builtins.
Show quoted text> Please add more fine grained control how to list functions that are
> exempt from this check. The current configuration
>
> InputOutput::RequireCheckedSyscalls
>
>
> is "all or nothing", which isn't helpful.
This policy is configurable; it is not "all or nothing". You could cause the policy to complain about all error-reporting builtins except print like this:
[InputOutput::RequireCheckedSyscalls]
functions = :builtins
exclude_functions = print