PHP CodeSniffer sniff for php_sapi_name()
Closed, ResolvedPublic

Description

bug 37957 is about replacing php_sapi_name() calls by PHP_SAPI. We could use a Sniff in PHP CodeSniffer that would detect such call and propose a replacement.


Version: unspecified
Severity: enhancement

bzimport added a project: Continuous-Integration.Via ConduitNov 22 2014, 1:32 AM
bzimport set Reference to bz44633.
hashar created this task.Via LegacyFeb 4 2013, 8:17 AM
hashar added a comment.Via ConduitMar 20 2013, 12:09 PM

Upstream bug report to PHP_CodeSniffer is https://pear.php.net/bugs/bug.php?id=19863

Krinkle added a comment.Via ConduitMay 7 2013, 10:10 PM

Change-Id: I371612b39ab3c8663bcf0071d1e09d9a69180ff2

...
+ <rule ref="Generic.PHP.SAPIUsage" />

Merged.

Legoktm moved this task to Upstream on the MediaWiki-Codesniffer workboard.Via WebTue, Mar 10, 6:25 AM

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.