Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Feb 2006 11:47:31 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-ports@freebsd.org, ale@freebsd.org
Subject:   Default PHP version
Message-ID:  <43E49453.3080906@infracaninophile.co.uk>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigD8311697846DA233F069EE8F
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable


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!=3D  ${LOCALBASE}/bin/php-config --extension-dir | ${SED} -n=
e 's,^${LOCALBASE}/lib/php/\(.*\),\1,p'
 .else
-DEFAULT_PHP_VER?=3D      4
+DEFAULT_PHP_VER?=3D      5
=20
 PHP_VER?=3D      ${DEFAULT_PHP_VER}
 .if ${PHP_VER} =3D=3D 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 insta=
lled.
This tends to be off-putting as an initial experience, and finding out ho=
w
to remove the PHP4 installation and direct the ports system into installi=
ng
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 probabl=
y
drop PHP4 support entirely with its next major release.

	Cheers,

	Matthew

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


--------------enigD8311697846DA233F069EE8F
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD5JRZ8Mjk52CukIwRA6NFAJ48k74T0SkrhjwQn/2aVIyum+xr2wCeLSSP
VeQi2krSk/y1YmeyGIakdCs=
=u8kw
-----END PGP SIGNATURE-----

--------------enigD8311697846DA233F069EE8F--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43E49453.3080906>