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

removed preg_replace with /e modifier #123

Merged
merged 2 commits into from
Jun 13, 2013
Merged

removed preg_replace with /e modifier #123

merged 2 commits into from
Jun 13, 2013

Conversation

caseysoftware
Copy link
Contributor

switched from using preg_replace with /e as it's deprecated in 5.5 and not supported in some environments;
while an anonymous function would work, by using create_function we can stay 5.2 compatible;
necessary for Google App Engine compatibility;

switched from using preg_replace with /e as it's deprecated in 5.5 and
not supported in some environments;
while an anonymous function would work, by using create_function we can
stay 5.2 compatible
@kevinburke
Copy link
Contributor

It looks like the tests are failing with this message:

preg_replace_callback(): Modifier /e cannot be used with replacement callback

https://travis-ci.org/twilio/twilio-php/jobs/7790027

@kevinburke
Copy link
Contributor

If you turn it into a named function, you can use these tests:

ff981aa

caseysoftware added a commit that referenced this pull request Jun 13, 2013
Removed the preg_replace /e modifier in favor of using create_function
@caseysoftware caseysoftware merged commit f1e4ff8 into twilio:master Jun 13, 2013
@caseysoftware caseysoftware deleted the preg-refactor-e branch June 13, 2013 03:05
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

2 participants