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

Defer Services_Json inclusion/initialization until really needed #91

Merged
merged 1 commit into from
Jul 31, 2019

Conversation

sserbin
Copy link
Contributor

@sserbin sserbin commented Jul 12, 2019

Alternatively, I'd consider dropping Services_Json altogether. Since php
5.2 php comes in with bundled json ext so it should be available everywhere.

The motivation for this is that requireing this file always not only registers a class definition but also produces some undesired side-effects - namely, global constants definitions

@sserbin sserbin force-pushed the defer-services-json-inclusion branch from c1aad92 to 29d8e06 Compare July 12, 2019 09:56
@sserbin
Copy link
Contributor Author

sserbin commented Jul 12, 2019

Tests pass on 5.6 and 7, other travis envs seem to be not working at all

Alternatively, I'd consider dropping Services_Json altogether. Since php
5.2 php comes in with bundled json ext so it should be available everywhere
@sserbin sserbin force-pushed the defer-services-json-inclusion branch from 29d8e06 to 288adf3 Compare July 31, 2019 09:42
@sserbin
Copy link
Contributor Author

sserbin commented Jul 31, 2019

Tests pass on 5.6 and 7, other travis envs seem to be not working at all

rebased on master (which has updated travis config), so tests pass now

@tobio tobio merged commit d8ae5ba into campaignmonitor:master Jul 31, 2019
@tobio
Copy link
Contributor

tobio commented Jul 31, 2019

Thanks for this, I'd agree that this serialiser should be dropped. Hopefully someone from CM can make that happen. In the interim this change makes sense.

@sserbin
Copy link
Contributor Author

sserbin commented Jul 31, 2019

Thanks, @tobio

@sserbin
Copy link
Contributor Author

sserbin commented Aug 28, 2019

@taledo @markstaples any chance we can get a release for this? 🙏 I know there hasn't been anything else merged into master since the past release, but would be great to have this released, thanks!

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