Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#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 12 years ago by asuth@…

Cc: asuth@… added

Cc Me!

comment:2 Changed 12 years ago by aizat.faiz@…

Cc: aizat.faiz@… added

Cc Me!

comment:3 Changed 12 years ago by milan@…

Cc: milan@… added

Cc Me!

comment:4 Changed 12 years ago by temp (Stephan Wentz)

Cc: stephan@… added

Cc Me!

comment:5 Changed 12 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:6 Changed 12 years ago by sebondus@…

Cc: sebondus@… added

Cc Me!

comment:7 Changed 12 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 in reply to:  5 Changed 12 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:9 Changed 12 years ago by mathgl67@…

Cc: mathgl67@… added

Cc Me!

comment:10 Changed 12 years ago by rasta.fukka@…

Cc: rasta.fukka@… added

Cc Me!

comment:11 Changed 12 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:12 Changed 12 years ago by info@…

Cc Me!

comment:13 Changed 12 years ago by info@…

Cc: info@… added

Cc Me!

comment:14 Changed 12 years ago by coolfactor@…

Cc: coolfactor@… added

Cc Me!

comment:15 in reply to:  description Changed 12 years ago by coolfactor@…

Thanks for your hard work on this, Ryan. Looking forward to this release.

comment:16 Changed 12 years ago by sommertm@…

Cc: sommertm@… added

Cc Me!

comment:17 Changed 12 years ago by dietrich.moerman@…

Cc: dietrich.moerman@… added

Cc Me!

comment:18 Changed 12 years ago by BjarneDMat

Cc: macintosh@… added

Cc Me!

comment:19 Changed 12 years ago by sgwillis@…

Cc: sgwillis@… added

Cc Me!

comment:20 Changed 12 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:21 Changed 12 years ago by ruben+macports@…

Cc: ruben+macports@… added

Cc Me!

comment:22 in reply to:  7 Changed 12 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

Done in r92737 / r92738.

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 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

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 12 years ago by asuth@…

php54-memcache and php54-apc seem to be missing. Currently hunting for others.

comment:25 Changed 12 years ago by asuth@…

Also php54-redis.

comment:26 Changed 12 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 in reply to:  description 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.

Note: See TracTickets for help on using tickets.