[php-src] PR #14773: Improve open/close tag handling for phpdbg + stdin
| From: | iluuu1994 | Date: | Tue, 02 Jul 2024 23:31:37 +0000 |
| Subject: | [php-src] PR #14773: Improve open/close tag handling for phpdbg + stdin | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-26978@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/14773
Author: iluuu1994
/cc @devnexen
phpdbg currently always compiles scripts with the
ZEND_COMPILE_POSITION_AFTER_OPEN_TAG
flag. To allow loading scripts through stdin that start with <?php, it would prepend
a ?> to the source. This would implicitly turn into ?> into
;, which are not allowed before declare(strict_types=1).