Skip to content

Add PHP extensions check to installer - #290

Closed
moisseev wants to merge 2 commits into
web2project:masterfrom
moisseev:master
Closed

moisseev wants to merge 2 commits into
web2project:masterfrom
moisseev:master

Conversation

@moisseev

Copy link
Copy Markdown

resolves #289

@caseysoftware

Copy link
Copy Markdown
Member

While I agree with what you've done here, I think we need to tweak the approach. The phpExtCheck method should not be embedded in the PHP here. Ideally, it would be a method on the installer class or similar. Or - failing that - it would be in the main_functions.php file to keep it with the others.

(Also, I'm sorry I didn't respond to this sooner.. I didn't get a notification that you had updated it.)

@moisseev

moisseev commented Aug 1, 2015

Copy link
Copy Markdown
Author

I agree that phpExtCheck should not be embedded. But I suppose it's up to you to choose the best place for the method. If you want it on the installer class, where in the tree the Installer.class.php should be located?

@caseysoftware

Copy link
Copy Markdown
Member

Thanks @moisseev, and sorry this sat so long. Your idea and extension list are now on master in 706b734. Since this branch predates the Bootstrap installer, I reimplemented it there instead of merging:

  • The check lives in w2p_System_UpgradeManager::getExtensionChecks(), not inline in the installer, as discussed above.
  • The installer's check step lists each extension and what it's used for. A missing required extension (ctype, filter, gd, json, session) stops the install; a missing optional one (mbstring, iconv, zlib, curl, ldap) shows a warning.
  • The README lists the same extensions, and there's a unit test for the list.

Closing in favour of that commit.

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.

List of required php extensions

2 participants