Skip to content

Files

Latest commit

 

History

History
22 lines (15 loc) · 876 Bytes

PHPCompatibility.ControlStructures.NewExecutionDirectives.md

File metadata and controls

22 lines (15 loc) · 876 Bytes

Pattern: Malformed execution directive

Issue: -

Description

Checks for valid execution directives set with declare().

The sniff contains three distinct checks:

  • Check if the execution directive used is valid. PHP currently only supports three execution directives.
  • Check if the execution directive used is available in the PHP versions for which support is being checked. In the case of the encoding directive on PHP 5.3, support is conditional on the --enable-zend-multibyte compilation option. This will be indicated as such.
  • Check whether the value for the directive is valid.

PHP version All.

Further Reading