Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Improve open/close tag handling for phpdbg + stdin #14773

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

Copy link
Member

@iluuu1994 iluuu1994 commented Jul 2, 2024

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

devnexen reacted with thumbs up emoji
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /