-
Notifications
You must be signed in to change notification settings - Fork 2k
--with-mysql deprecated in php 5.6 #28
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
Comments
Yeah, I'm -1 on removing it because it's still available and still widely used. If/when upstream removes it completely, I think that warrants removal (since having it in really doesn't hurt people not using it much). |
Thanks. I was browsing existing issues and this was actually discusses twice in #6 and #7 Based on those, I think there are two opinions;
So it really depends; if this is the "official" PHP image, should the image;
Personally, I'm in favor of best practice. If people have to migrate their code to a newer version of PHP (e.g. 5.3 -> 5.5/5.6) they'll probably already run into issues at some point. Switching to Additionally, if they really need it, then it's simple to add by downloading the Dockerfile and add a single line (that's a big advantage of Docker). I think recently, the PHP 5.3 image was dropped because it EOL'd so why treat mysql differently? However, this is just my 0.02c, and open to other opinions. |
Did a bit of reading; To offer people that are still using Of course, people can always opt to stay on the PHP 5.4 image, which still supports |
Solid arguments; I'm convinced. 😄 |
Well, actually, I've been thinking about it a bit more, and I know I talked about that on another issue; how about this;
This will more clearly communicate that people should "steer away" from mysql, but are still able to use it by enabling it in their php.ini. This will require some documentation on "how to use it". Not sure though, if it is problematic to have different behaviour between different versions of the image, wdyt? To be clear, I have no real objection to "having mysql around", as Tianon said, "if you don't use it, it doesn't hurt", just feel that it's a good thing if official images also try to educate people a bit on best practice. |
I created a PR (#29) to build mysql as a shared extension. If this is accepted, I think it should be included in the README on the registry; https://registry.hub.docker.com/_/php/ However, I could not find the source of the README in this repository, so was unable to add it. I tested the change and it seems to work correctly, but having an extra pair of eyes on the change won't hurt to test if it works correctly :) |
Most (probably all) of the official images documentation is over here: https://github.com/docker-library/docs. |
Fixed in #41. |
Don't scramble the ) symbol which causes PHP 8 to break.
This was brought up in #27, and I wanted to open the discussion here, rather than in that particular PR.
The text was updated successfully, but these errors were encountered: