#33742 closed request (fixed)
php54 5.4.0
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | jyrkiwahlstedt, pixilla (Bradley Giesbrecht), karsten@…, antoine@…, oli@…, asuth@…, aizat.faiz@…, milan@…, temp (Stephan Wentz), sebondus@…, mathgl67@…, rasta.fukka@…, info@…, coolfactor@…, sommertm@…, dietrich.moerman@…, BjarneDMat, sgwillis@…, ruben+macports@… | |
Port: | php54 |
Description
PHP 5.4.0 has been released and needs to be added to MacPorts.
Rather than updating the existing php5 port and php5-* module ports to 5.4.0, a new php54 port will be created. It will resolve many outstanding bug reports and feature requests that have been filed against the php5 port over the years.
- php5 will become php53.
- It will be possible to install and use php54 and php53 simultaneously (#22668).
- Separate php5 extension ports will be subsumed into the php54 port as subports to make it easier for the maintainer to update them.
- SAPIs will finally become their own (sub)ports as well instead of being variants (#19091, #25890).
- The FPM SAPI will finally be available (#26039).
- ui_msgs will be rewritten (#12108).
- The php5extension portgroup will be renamed "php" and will become a unified portgroup like the unified python and perl5 portgroups; a single port for each third-party module will thus automatically create subports for each supported version of PHP.
Probably lots of other changes.
I'm almost done with this. php54 is in my users directory for now and will be published when it's ready. The unified php portgroup is already in the main tree.
Change History (27)
comment:1 Changed 13 years ago by asuth@…
Cc: | asuth@… added |
---|
comment:5 follow-up: 8 Changed 13 years ago by temp (Stephan Wentz)
Works fine!
Will php 5.4 always be installed as {prefix}/bin/php54? PHPStorm doesn't recognize it - you can only set a directory, and it only finds {prefix}/bin/php.
comment:7 follow-up: 22 Changed 13 years ago by mathgl67@…
Hi, I have problems with few pdo subports (sqlite, mysql). For the sqlite subport, the configure scripts failed with the following message:
:info:configure checking for PHP installed headers prefix... /opt/local/include/php54/php :info:configure checking if debug is enabled... no :info:configure checking if zts is enabled... no :info:configure checking for re2c... no :info:configure configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. :info:configure checking for gawk... gawk :info:configure checking for sqlite 3 support for PDO... yes, shared :info:configure checking for PDO includes... checking for PDO includes... :info:configure configure: error: Cannot find php_pdo_driver.h. :info:configure shell command " cd "/opt/local/var/macports/build/_Users_gauthierl_Ports_lang_php54/php54-sqlite/work/php-5.4.0/ext/pdo_sqlite" && ./configure --prefix=/opt/local --with-php-config=/opt/local/bin/php-config54 --with-sqlite3=/opt/local --with-pdo-sqlite=/opt/local --enable-sqlite-utf8 " returned error 1 :error:configure Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Did I do something wrong ?
comment:8 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to stephan@…:
Will php 5.4 always be installed as {prefix}/bin/php54?
Yes; that's the point. Different versions of PHP will be installed to different locations so they don't conflict.
PHPStorm doesn't recognize it - you can only set a directory, and it only finds {prefix}/bin/php.
There will be a "port select php" mechanism to create a php symlink for you, or you can create one manually.
comment:11 Changed 13 years ago by asuth@…
Hey -- any ETA on this? Can we help in some way? Looking forward to it and thanks for your work.
comment:15 Changed 13 years ago by coolfactor@…
Thanks for your hard work on this, Ryan. Looking forward to this release.
comment:20 Changed 13 years ago by coolfactor@…
Ryan - I appreciate that this is a big project and you're a volunteer. There's been offers from others to help. Has this help been considered, or is it not possible due to the complexity of the changes involved? Can you give us some type of progress report on when PHP 5.4 will be available via MacPorts?
Thanks again.
P.S. If I've missed something about this, please let me know. As far as I can tell it's still "in progress". Thanks.
comment:22 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to ryandesign@…:
There will be a "port select php" mechanism to create a php symlink for you
Replying to mathgl67@…:
Hi, I have problems with few pdo subports (sqlite, mysql). For the sqlite subport, the configure scripts failed with the following message:
:info:configure configure: error: Cannot find php_pdo_driver.h.
Thanks. I had overlooked this problem because it doesn't occur if the old php5 port is installed. Fixed in r92745.
comment:23 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Barring any problems uncovered by the buildbot, the new php port, featuring subports for php54 and php53 SAPIs and bundled extensions, is done, and was moved to the public ports tree in r92752. Thank you all for your patience. If you encounter any issues please do let me know.
comment:24 Changed 13 years ago by asuth@…
php54-memcache and php54-apc seem to be missing. Currently hunting for others.
comment:26 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Most PHP extensions that are not bundled with PHP are not available yet. I am working on them; no need to report them. There will be a separate ticket for this.
comment:27 Changed 12 years ago by umassthrower@…
Since the upgrade path when you already had the php5 port installed was not entirely clear from this ticket (it took awhile to realize the need to run an install of php54-apache2handler and replace the old LoadModule line with the new LoadModule line in httpd.conf) I was able to figure it out and answer this server fault question: http://serverfault.com/questions/394942/upgrading-from-php-5-3-to-php-5-4-with-macport/395599 which led to the OP pointing out this good Github gist on the subject: https://gist.github.com/2721719
Adding those resources here to help those who come after me so they can spend a little less time than I had to going from php5 to php53/php54.
Cc Me!