Skip to content
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

bom_match does not match UTF-32 LE #363

Closed
jmwebservices opened this issue Dec 3, 2019 · 0 comments
Closed

bom_match does not match UTF-32 LE #363

jmwebservices opened this issue Dec 3, 2019 · 0 comments

Comments

@jmwebservices
Copy link

Bug Report

Information Description
Version current
PHP version 7.3.12
OS Platform Win

Summary

bom_match() incorrectly returns BOM_UTF16_LE for strings with BOM_UTF32_LE. This is due to the order in which these constants are defined in League\Csv\ByteSequence.

Standalone code, or other way to reproduce the problem

var_dump( \League\Csv\bom_match( \League\Csv\ByteSequence::BOM_UTF32_LE ) === \League\Csv\ByteSequence::BOM_UTF32_LE );

Expected result

bool(true)

Actual result

bool(false)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant