summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorChristian Hoffmann <hoffie@gentoo.org>2009-12-30 01:05:42 +0000
committerChristian Hoffmann <hoffie@gentoo.org>2009-12-30 01:05:42 +0000
commit8d8d75870d11b802bde2b6a7cdd5d6e20a50a81d (patch)
treee301146365281fb3bdf09c58a9d4240379d8f191 /eclass
parentSet PYTHON_MODNAME. (diff)
downloadgentoo-2-8d8d75870d11b802bde2b6a7cdd5d6e20a50a81d.tar.gz
gentoo-2-8d8d75870d11b802bde2b6a7cdd5d6e20a50a81d.tar.bz2
gentoo-2-8d8d75870d11b802bde2b6a7cdd5d6e20a50a81d.zip
php-5.3 compatibility (5.3 supports zend_extension= in php.ini's only, without any suffix)
Diffstat (limited to 'eclass')
-rw-r--r--eclass/php-ext-base-r1.eclass10
1 files changed, 9 insertions, 1 deletions
diff --git a/eclass/php-ext-base-r1.eclass b/eclass/php-ext-base-r1.eclass
index 1ecbbe3bde6b..db0a00874b30 100644
--- a/eclass/php-ext-base-r1.eclass
+++ b/eclass/php-ext-base-r1.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-base-r1.eclass,v 1.9 2007/11/29 23:12:13 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-base-r1.eclass,v 1.10 2009/12/30 01:05:42 hoffie Exp $
#
# Author: Tal Peer <coredumb@gentoo.org>
# Author: Stuart Herbert <stuart@gentoo.org>
@@ -104,6 +104,14 @@ php-ext-base-r1_addextension() {
fi
ext_file="${EXT_DIR}/$1"
fi
+
+ # php-5.3 unifies zend_extension loading and just requires the
+ # zend_extension keyword with no suffix
+ # TODO: drop previous code and this check once <php-5.3 support is
+ # discontinued
+ if has_version '>=dev-lang/php-5.3' ; then
+ ext_type="zend_extension"
+ fi
else
# We don't need the full path for normal extensions!
ext_type="extension"