Skip to content

Fix test failures in engine_unsafe_empty_string.phpt #18727

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

Merged
merged 1 commit into from
Jun 1, 2025

Conversation

nielsdos
Copy link
Member

@nielsdos nielsdos commented Jun 1, 2025

/./ matches all characters but newlines, so if random_bytes generates a string with newlines in it, the resulting string is not empty. Fix this by adding the s modifier.

`/./` matches all characters but newlines, so if `random_bytes`
generates a string with newlines in it, the resulting string is not
empty. Fix this by adding the `s` modifier.
@TimWolla TimWolla merged commit d8a17ca into php:PHP-8.3 Jun 1, 2025
9 checks passed
TimWolla added a commit that referenced this pull request Jun 1, 2025
* PHP-8.3:
  Fix test failures in engine_unsafe_empty_string.phpt (#18727)
TimWolla added a commit that referenced this pull request Jun 1, 2025
* PHP-8.4:
  Fix test failures in engine_unsafe_empty_string.phpt (#18727)
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.

2 participants