From: Derick Rethans Date: Mon, 18 May 2009 21:28:42 +0000 (+0000) Subject: - Get rid of the four different versions of zend_extension* and only use X-Git-Tag: php-5.4.0alpha1~191^2~3619 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d5c8121b39cbdc7a40ccaf1914af2a638033610f;p=php - Get rid of the four different versions of zend_extension* and only use zend_extension. Because of the API identifier change in PHP 5.3 you also get a proper warning message now. --- diff --git a/configure.in b/configure.in index f7a1376761..6c3f93d325 100644 --- a/configure.in +++ b/configure.in @@ -1246,15 +1246,7 @@ if test "$PHP_THREAD_SAFETY" = "yes" && test "$PHP_MYSQL" = "yes"; then CPPFLAGS="$CPPFLAGS -DTHREAD=1" fi -if test "$PHP_DEBUG" = "1" && test "$PHP_THREAD_SAFETY" = "yes"; then - ZEND_EXT_TYPE="zend_extension_debug_ts" -elif test "$PHP_DEBUG" = "1"; then - ZEND_EXT_TYPE="zend_extension_debug" -elif test "$PHP_THREAD_SAFETY" = "yes"; then - ZEND_EXT_TYPE="zend_extension_ts" -else - ZEND_EXT_TYPE="zend_extension" -fi +ZEND_EXT_TYPE="zend_extension" PHP_SUBST(ZEND_EXT_TYPE) dnl diff --git a/main/php_ini.c b/main/php_ini.c index d276c1a8be..c71f63816b 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -170,19 +170,7 @@ PHPAPI void display_ini_entries(zend_module_entry *module) /* php.ini support */ #define PHP_EXTENSION_TOKEN "extension" -#ifdef ZTS -# if (ZEND_DEBUG) -# define ZEND_EXTENSION_TOKEN "zend_extension_debug_ts" -# else -# define ZEND_EXTENSION_TOKEN "zend_extension_ts" -# endif -#else -# if (ZEND_DEBUG) -# define ZEND_EXTENSION_TOKEN "zend_extension_debug" -# else -# define ZEND_EXTENSION_TOKEN "zend_extension" -# endif -#endif +#define ZEND_EXTENSION_TOKEN "zend_extension" /* {{{ config_zval_dtor */ diff --git a/scripts/phpize.m4 b/scripts/phpize.m4 index bf40948eed..dcc9f6a2d2 100644 --- a/scripts/phpize.m4 +++ b/scripts/phpize.m4 @@ -96,15 +96,7 @@ CPPFLAGS=$old_CPPFLAGS AC_MSG_RESULT([$PHP_DEBUG]) dnl Support for building and testing Zend extensions -if test "$PHP_DEBUG" = "yes" && test "$PHP_THREAD_SAFETY" = "yes; then - ZEND_EXT_TYPE="zend_extension_debug_ts" -elif test "$PHP_DEBUG" = "yes"; then - ZEND_EXT_TYPE="zend_extension_debug" -elif test "$PHP_THREAD_SAFETY" = "yes; then - ZEND_EXT_TYPE="zend_extension_ts" -else - ZEND_EXT_TYPE="zend_extension" -fi +ZEND_EXT_TYPE="zend_extension" PHP_SUBST(ZEND_EXT_TYPE) dnl Discard optimization flags when debugging is enabled