tony2001 Mon Apr 4 12:30:42 2005 EDT
Modified files: (Branch: PHP_4_3)
/php-src NEWS
/php-src/ext/gmp gmp.c
Log:
fix #32567 (ext/gmp fails to compile with thread safety enabled)
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1247.2.869&r2=1.1247.2.870&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1247.2.869 php-src/NEWS:1.1247.2.870
--- php-src/NEWS:1.1247.2.869 Mon Apr 4 10:59:56 2005
+++ php-src/NEWS Mon Apr 4 12:30:41 2005
@@ -3,6 +3,7 @@
?? ??? 20??, Version 4.?.?
- Added the sorting flag SORT_LOCALE_STRING to the sort() functions which makes
them sort based on the current locale. (Derick)
+- Fixed bug #32567 (ext/gmp fails to compile in threadsafe mode). (Tony)
- Fixed bug #32538 (ext/swf/swf.c does not compile with gcc-3.4.x or newer).
(adam dot greenfield at gmail dot com)
- Fixed bug #32530 (chunk_split() does not append endstr if chunklen is
http://cvs.php.net/diff.php/php-src/ext/gmp/gmp.c?r1=1.29.4.12&r2=1.29.4.13&ty=u
Index: php-src/ext/gmp/gmp.c
diff -u php-src/ext/gmp/gmp.c:1.29.4.12 php-src/ext/gmp/gmp.c:1.29.4.13
--- php-src/ext/gmp/gmp.c:1.29.4.12 Tue Mar 1 08:18:31 2005
+++ php-src/ext/gmp/gmp.c Mon Apr 4 12:30:42 2005
@@ -205,7 +205,7 @@
if(Z_TYPE_PP(zval) == IS_RESOURCE) { \
ZEND_FETCH_RESOURCE(gmpnumber, mpz_t *, zval, -1, GMP_RESOURCE_NAME,
le_gmp);\
} else {\
- if(convert_to_gmp(&gmpnumber, zval, 0) == FAILURE) {\
+ if(convert_to_gmp(&gmpnumber, zval, 0 TSRMLS_CC) == FAILURE) {\
RETURN_FALSE;\
}\
ZEND_REGISTER_RESOURCE(NULL, gmpnumber, le_gmp);\
@@ -217,7 +217,7 @@
/* {{{ convert_to_gmp
* Convert zval to be gmp number */
-static int convert_to_gmp(mpz_t * *gmpnumber, zval **val, int base)
+static int convert_to_gmp(mpz_t * *gmpnumber, zval **val, int base TSRMLS_DC)
{
int ret = 0;
int skip_lead = 0;
@@ -509,7 +509,7 @@
}
}
- if(convert_to_gmp(&gmpnumber, number_arg, base) == FAILURE) {
+ if(convert_to_gmp(&gmpnumber, number_arg, base TSRMLS_CC) == FAILURE) {
RETURN_FALSE;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php