Bug#668150: [new check] Report error on PHP short_open_tags
Package: lintian
Version: 2.5.6~bpo60+1
Severity: wishlist
Hi,
we are considering disabling short_open_tags directive to Off by default
(to align with upstream recommended value) and we need a new lintian check
to:
- check packages with depending on any on php5 SAPI; I think checking just
for php5 and php5-cli revdeps should be enough
- check files in such packages with .php? (e.g. .php and .php5) extension
- check on '<?' patern; '<?[:space:]' is not OK; '<?php' and '<?=' is OK
('<?=' is supported from PHP (>= 5.4.0) when short_open_tags is disabled)
Since we want to disable short_open_tags by default I think this should be
a error and not a warning.
Thanks,
Ondrej
-- System Information:
Debian Release: 6.0.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable'), (300, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Reply to: