Skip to content

Conversation

iluuu1994
Copy link
Member

/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).

@iluuu1994
Copy link
Member Author

It seems my fix didn't work, and it wasn't immediately obvious to me why. Hence, I won't be pursuing this. Sorry @devnexen.

@iluuu1994 iluuu1994 closed this Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant