summaryrefslogtreecommitdiff
path: root/pear/scripts/phpize.in
diff options
context:
space:
mode:
Diffstat (limited to 'pear/scripts/phpize.in')
-rw-r--r--pear/scripts/phpize.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/pear/scripts/phpize.in b/pear/scripts/phpize.in
index 537431ffad..fc6dec1b86 100644
--- a/pear/scripts/phpize.in
+++ b/pear/scripts/phpize.in
@@ -27,3 +27,13 @@ aclocal
autoconf
autoheader
libtoolize -f -c
+
+# dumping API NOs:
+PHP_API_VERSION=`egrep '#define PHP_API_VERSION' $includedir/main/php.h|sed 's/#define PHP_API_VERSION//'`
+ZEND_MODULE_API_NO=`egrep '#define ZEND_MODULE_API_NO' $includedir/Zend/zend_modules.h|sed 's/#define ZEND_MODULE_API_NO//'`
+ZEND_EXTENSION_API_NO=`egrep '#define ZEND_EXTENSION_API_NO' $includedir/Zend/zend_extensions.h|sed 's/#define ZEND_EXTENSION_API_NO//'`
+
+echo "Configuring for:"
+echo " PHP Api Version: "$PHP_API_VERSION
+echo " Zend Module Api No: "$ZEND_MODULE_API_NO
+echo " Zend Extension Api No: "$ZEND_EXTENSION_API_NO