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

Fix #70277: new DateTimeZone($foo) is ignoring text after null byte #1474

Merged
merged 1 commit into from Aug 17, 2015

Conversation

cmb69
Copy link
Contributor

@cmb69 cmb69 commented Aug 17, 2015

The DateTimeZone constructors are not binary safe. They're parsing the timezone
as string, but discard the length when calling timezone_initialize(). This
patch adds a tz_len parameter and a respective check to timezone_initialize().

The DateTimeZone constructors are not binary safe. They're parsing the timezone
as string, but discard the length when calling timezone_initialize(). This
patch adds a tz_len parameter and a respective check to timezone_initialize().
@derickr
Copy link
Contributor

derickr commented Aug 17, 2015

Looks good to me

@cmb69
Copy link
Contributor Author

cmb69 commented Aug 17, 2015

Fine. I'll merge it ASAP.

@php-pulls php-pulls merged commit bb05749 into php:PHP-5.6 Aug 17, 2015
@cmb69 cmb69 deleted the PHP-5.6 branch August 17, 2015 17:37
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

Successfully merging this pull request may close these issues.

None yet

3 participants