====== PHP RFC: Remove alternative PHP tags ====== * Date: 2014-09-09 * Author: Nikita Popov * Status: Accepted * Targeting: PHP 7 * Patch: https://github.com/php/php-src/pull/813 ===== Proposal ===== This RFC proposes the removal of ASP tags (''<%'') and script tags ('')i'' closing tag The listed opening tags will no longer enter PHP mode and the listed closing tags will no longer leave PHP mode. Additionally the ''asp_tags'' ini directive is removed. Trying to enable ''asp_tags'' will result in a core error. This RFC does //**not**// remove short opening tags ('' echo "foo" %>%%'' ===== Porting tool ===== To simplify porting of legacy code using the alternative tags, a [[https://gist.github.com/nikic/74769d74dad8b9ef221b|porting script]] is provided. The script takes a directory and will replace ASP and script tags in all ''.php'' files contained in this directory: php -d asp_tags=1 portAlternativeTags.php dir/ ===== Vote ===== The vote started on 2014-09-24 and ended on 2014-10-01. The required 2/3 majority has been reached, as such this RFC is accepted. * Yes * No