[MacPorts] #22808: PHP 5.3.1 bug breaks MediaWiki and no clear way to install PHP 5.3.0

MacPorts noreply at macports.org
Mon Dec 7 10:38:47 PST 2009


#22808: PHP 5.3.1 bug breaks MediaWiki and no clear way to install PHP 5.3.0
-----------------------------------+----------------------------------------
 Reporter:  niels.olson@…          |       Owner:  macports-tickets@…                   
     Type:  defect                 |      Status:  new                                  
 Priority:  Normal                 |   Milestone:                                       
Component:  ports                  |     Version:  1.8.1                                
 Keywords:                         |        Port:  php5 mediawiki                       
-----------------------------------+----------------------------------------

Comment(by ryandesign@…):

 Replying to [comment:5 niels.olson@…]:
 > $ sudo port install php52 +postgresql84[[BR]]
 > ...[[BR]]
 > Activating php52 @5.2.11_1+apache2+darwin_10+macosx[[BR]]
 > $ sudo port install php5-postgresql[[BR]]
 > ...[[BR]]
 > Activating php5-postgresql @5.3.1_0+postgresql84[[BR]]

 After the release of PHP 5.3.0 I began splitting PHP features into
 separate module ports like php5-postgresql. The version of these ports
 must be matched to the version of the php5 port. php5-postgresql is for
 use with php5 only. It does not work with php52. For php52, use the
 variants in the php52 port to add features.

 > hypothesis: maybe I can point php5-postgresql to build to the correct
 5.2.11 version of php

 No, php5-postgresql is for php5 only, not for php52.

 > $ sudo port install php52 +postgresql84 php5-postgresql
 @5.2.11_1+apache2+darwin_10+macosx[[BR]]

 Yes, using the +postgresql84 variant of the php52 port is the correct
 thing to do.

 > Activating php52 @5.2.11_1+apache2+darwin_10+macosx[[BR]]

 But here you see you have not after all selected the +postgresql84
 variant.

 The correct command to use is
 {{{
 sudo port install php52 +postgresql84
 }}}
 (and add any other variants you want; see `port variants php52` for the
 list of available features).

 > As above, I am not using the macports mediawiki, I'm using mediawiki
 from svn. It just seems that installing mediawiki +postgresql84 through
 macports is the only way to get a version of php that runs mediawiki with
 postgres at all.

 You should be able to use the mediawiki port with PHP 5.2.x, if desired,
 after you've installed the php52 port with postgresql support.

-- 
Ticket URL: <http://trac.macports.org/ticket/22808#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list