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 date_create_from_format when using | char #18

Merged
merged 1 commit into from
Apr 29, 2017

Conversation

mcfedr
Copy link
Contributor

@mcfedr mcfedr commented Apr 25, 2017

When using | in format string all not set fields are reset to unix 0 time
See | in http://php.net/manual/en/datetime.createfromformat.php

I am only slightly unsure about the memory management here, and use of zval_ptr_dtor

When using | in format string all not set fields are reset to unix 0
time
@mcfedr mcfedr force-pushed the fix_create_from_format branch from 90c7062 to d248a1c Compare April 25, 2017 15:25
@mcfedr
Copy link
Contributor Author

mcfedr commented Apr 25, 2017

The failed test seems to have nothing to do with this, and are actually I suspect related to daylight saving for LA time.

@mcfedr
Copy link
Contributor Author

mcfedr commented Apr 26, 2017

And I'm pretty sure something is wrong in the php5 version because its crashing on my build server, but I dont know what I should be doing differnetly

@hnw
Copy link
Owner

hnw commented Apr 29, 2017

Thanks!👍

@hnw hnw merged commit f23313a into hnw:master Apr 29, 2017
@mcfedr mcfedr deleted the fix_create_from_format branch May 5, 2017 12:49
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.

2 participants