Skip to content

PHP7 Update - Renamed String class to SharedString #698

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

Closed
wants to merge 19 commits into from

Conversation

publiux
Copy link

@publiux publiux commented Jan 8, 2016

PHP7 now reserves the class name String. PHPWord utilizes String as a class name, thus PHPWord presently does not work with PHP7. This PR renames the class to SharedString and updates it usage through the library and in the tests.

@publiux
Copy link
Author

publiux commented Jan 8, 2016

This build is failing because of mpdf. mpdf is still using the old constructor style that is not suitable for PHP7. A fix was pulled into mpdf's development branch ( mpdf/mpdf#68 ) but has not yet been tagged and thus is not pulled in via composer package.

@publiux
Copy link
Author

publiux commented Jan 8, 2016

I have updated composer.json to pull dev-development for mpdf, which has merged the constructor fix for PHP7. In the future, once the fix is pulled into a release tag, we need to change the composer.json to a stable version. Hopefully, this won't take too long.

@ghost ghost self-assigned this Jan 23, 2016
@ghost ghost added this to the 0.13.0 milestone Jan 23, 2016
@ghost ghost added the Change Request label Jan 23, 2016
@ghost
Copy link

ghost commented Jan 23, 2016

Partially resolved in scope of #658.

@Faryshta
Copy link

what does this need to be merged?

@ghost
Copy link

ghost commented Jul 9, 2016

Some thoughts.

mPDF 6.1 requires PHP 5.4+ while PHPWord - PHP 5.3.3+.

So, first of all #355 should be resolved.

@ghost ghost closed this Jul 9, 2016
@ghost ghost reopened this Jul 9, 2016
@ghost ghost removed their assignment Jul 9, 2016
@ghost ghost modified the milestones: Later, v0.13.0 Jul 30, 2016
@publiux publiux closed this Sep 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants