Default PHP version

Matthew Seaman m.seaman at infracaninophile.co.uk
Sat Feb 4 03:47:49 PST 2006


Is it too late to consider changing the default PHP version used by the
ports system from PHP4 to PHP5 before 6.1-RELEASE?

happy-idiot-talk:/usr/ports/Mk:% diff -u bsd.php.mk{.save,}
--- bsd.php.mk.save     Sat Feb  4 11:31:26 2006
+++ bsd.php.mk  Sat Feb  4 11:31:45 2006
@@ -38,7 +38,7 @@
 .include "${LOCALBASE}/etc/php.conf"
 PHP_EXT_DIR!=  ${LOCALBASE}/bin/php-config --extension-dir | ${SED} -ne 's,^${LOCALBASE}/lib/php/\(.*\),\1,p'
 .else
-DEFAULT_PHP_VER?=      4
+DEFAULT_PHP_VER?=      5
 
 PHP_VER?=      ${DEFAULT_PHP_VER}
 .if ${PHP_VER} == 4

I'm getting queries from some new-to-FreeBSD users of phpMyAdmin (I'm the port
maintainer) who are surprised that if they do:

    # cd /usr/ports/databases/phpmyadmin
    # make install

on an otherwise php-virgin system, then they end up with PHP4 being installed.
This tends to be off-putting as an initial experience, and finding out how
to remove the PHP4 installation and direct the ports system into installing
PHP5 seems not to be entirely obvious to the beginner.

I think PHP5 is generally considered to be the standard version nowadays
amongst PHP programmers.  Indeed another PHP port I maintain will probably
drop PHP4 support entirely with its next major release.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       7 Priory Courtyard
                                                      Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey         Ramsgate
                                                      Kent, CT11 9PW

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20060204/f58f04dc/signature.bin


More information about the freebsd-ports mailing list