Skip to content

Commit d29d244

Browse files
author
Derick Rethans
committed
- MFH: 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. #- [DOC]
1 parent aedaf1a commit d29d244

File tree

4 files changed

+4
-31
lines changed

4 files changed

+4
-31
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ PHP NEWS
55
- Upgraded bundled libmagic to 5.03 in the fileinfo extension. (Scott)
66

77
- Added the ability for json_decode() to take a user specified depth. (Scott)
8+
- Coalesce all the zend_extension_* variables into zend_extension. (Derick)
89

910
- Disabled SQLite3::loadExtension for threaded SAPIs. (Scott)
1011

configure.in

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,15 +1332,7 @@ if test "$PHP_THREAD_SAFETY" = "yes" && test "$PHP_MYSQL" = "yes"; then
13321332
CPPFLAGS="$CPPFLAGS -DTHREAD=1"
13331333
fi
13341334

1335-
if test "$PHP_DEBUG" = "1" && test "$PHP_THREAD_SAFETY" = "yes"; then
1336-
ZEND_EXT_TYPE="zend_extension_debug_ts"
1337-
elif test "$PHP_DEBUG" = "1"; then
1338-
ZEND_EXT_TYPE="zend_extension_debug"
1339-
elif test "$PHP_THREAD_SAFETY" = "yes"; then
1340-
ZEND_EXT_TYPE="zend_extension_ts"
1341-
else
1342-
ZEND_EXT_TYPE="zend_extension"
1343-
fi
1335+
ZEND_EXT_TYPE="zend_extension"
13441336
PHP_SUBST(ZEND_EXT_TYPE)
13451337

13461338
dnl

main/php_ini.c

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -170,19 +170,7 @@ PHPAPI void display_ini_entries(zend_module_entry *module)
170170

171171
/* php.ini support */
172172
#define PHP_EXTENSION_TOKEN "extension"
173-
#ifdef ZTS
174-
# if (ZEND_DEBUG)
175-
# define ZEND_EXTENSION_TOKEN "zend_extension_debug_ts"
176-
# else
177-
# define ZEND_EXTENSION_TOKEN "zend_extension_ts"
178-
# endif
179-
#else
180-
# if (ZEND_DEBUG)
181-
# define ZEND_EXTENSION_TOKEN "zend_extension_debug"
182-
# else
183-
# define ZEND_EXTENSION_TOKEN "zend_extension"
184-
# endif
185-
#endif
173+
#define ZEND_EXTENSION_TOKEN "zend_extension"
186174

187175
/* {{{ config_zval_dtor
188176
*/

scripts/phpize.m4

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,7 @@ CPPFLAGS=$old_CPPFLAGS
9696
AC_MSG_RESULT([$PHP_DEBUG])
9797

9898
dnl Support for building and testing Zend extensions
99-
if test "$PHP_DEBUG" = "yes" && test "$PHP_THREAD_SAFETY" = "yes; then
100-
ZEND_EXT_TYPE="zend_extension_debug_ts"
101-
elif test "$PHP_DEBUG" = "yes"; then
102-
ZEND_EXT_TYPE="zend_extension_debug"
103-
elif test "$PHP_THREAD_SAFETY" = "yes; then
104-
ZEND_EXT_TYPE="zend_extension_ts"
105-
else
106-
ZEND_EXT_TYPE="zend_extension"
107-
fi
99+
ZEND_EXT_TYPE="zend_extension"
108100
PHP_SUBST(ZEND_EXT_TYPE)
109101

110102
dnl Discard optimization flags when debugging is enabled

0 commit comments

Comments
 (0)