Skip to content
This repository has been archived by the owner on Jul 20, 2018. It is now read-only.

Add checks for trigger_error and set_error_handler #281

Merged

Conversation

devonliu
Copy link
Contributor

Add checks per issue #272:

trigger_error() doesn't make much sense, as there is no access to the
log file this will produce...and if you intentionally throw a fatal
error, that's doubly bad.
set_error_handler() is not supported.

Relevant tests are also added

devonliu added 3 commits May 22, 2015 00:49
Add checks per issue Automattic#272:
> trigger_error() doesn't make much sense, as there is no access to the
log file this will produce...and if you intentionally throw a fatal
error, that's doubly bad.
> set_error_handler() is not supported.

Test cases also added
Use spaces instead of tabs to be consistent with the rest of the code
Add trigger_error and set_error_handler to test file for use in
test-VIPRestrictedPatternsCheck
nickdaugherty added a commit that referenced this pull request May 22, 2015
Add checks for trigger_error and set_error_handler
@nickdaugherty nickdaugherty merged commit ece3ee3 into Automattic:master May 22, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants