-
Notifications
You must be signed in to change notification settings - Fork 7.9k
No longer allow block mode for declare(encoding) #9455
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,5 @@ declare(encoding="UTF-8") { | |
echo "ok\n"; | ||
} | ||
?> | ||
--EXPECT-- | ||
ok | ||
ok | ||
--EXPECTF-- | ||
Fatal error: Encoding declaration pragma must not use block mode in %s on line %d | ||
Comment on lines
+16
to
+17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes no sense to test block mode thrice. Just change the test to not use block mode (or drop it if redundant). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, right! This was just to get CI green quickly. I'll update/fix this soonish. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know that pragma is used in the current wording, but the strict_type one does not use this word, so it might make sense to change the wording to be consistent