com php-src: fixed compilation after merging master: ext/gmp/gmp.c

From: Date: Fri, 29 Nov 2013 16:12:35 +0000
Subject: com php-src: fixed compilation after merging master: ext/gmp/gmp.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-74168@lists.php.net to get a copy of this message
Commit: 9a834807bcd6e88e2ff12b6b466bbfb1ca9b2166 Author: Anatol Belski <ab@php.net> Fri, 29 Nov 2013 17:12:35 +0100 Parents: d8fa7f49901c0a7dcbc28d9b8438182dbc9e587f Branches: str_size_and_int64 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9a834807bcd6e88e2ff12b6b466bbfb1ca9b2166 Log: fixed compilation after merging master Changed paths: M ext/gmp/gmp.c Diff: diff --git a/ext/gmp/gmp.c b/ext/gmp/gmp.c index a938a16..aea010b 100644 --- a/ext/gmp/gmp.c +++ b/ext/gmp/gmp.c @@ -564,7 +564,7 @@ static int gmp_compare(zval *result, zval *op1, zval *op2 TSRMLS_DC) /* {{{ */ } /* }}} */ -static int gmp_serialize(zval *object, unsigned char **buffer, zend_uint *buf_len, zend_serialize_data *data TSRMLS_DC) /* {{{ */ +static int gmp_serialize(zval *object, unsigned char **buffer, zend_str_size_uint *buf_len, zend_serialize_data *data TSRMLS_DC) /* {{{ */ { mpz_ptr gmpnum = GET_GMP_FROM_ZVAL(object); smart_str buf = {0}; @@ -592,7 +592,7 @@ static int gmp_serialize(zval *object, unsigned char **buffer, zend_uint *buf_le } /* }}} */ -static int gmp_unserialize(zval **object, zend_class_entry *ce, const unsigned char *buf, zend_uint buf_len, zend_unserialize_data *data TSRMLS_DC) /* {{{ */ +static int gmp_unserialize(zval **object, zend_class_entry *ce, const unsigned char *buf, zend_str_size_uint buf_len, zend_unserialize_data *data TSRMLS_DC) /* {{{ */ { mpz_ptr gmpnum; const unsigned char *p, *max; @@ -1398,11 +1398,11 @@ ZEND_FUNCTION(gmp_sqrtrem) ZEND_FUNCTION(gmp_root) { zval *a_arg; - long nth; + php_int_t nth; mpz_ptr gmpnum_a, gmpnum_result; gmp_temp_t temp_a; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zl", &a_arg, &nth) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zi", &a_arg, &nth) == FAILURE) { return; } @@ -1430,7 +1430,7 @@ ZEND_FUNCTION(gmp_root) ZEND_FUNCTION(gmp_rootrem) { zval *a_arg; - long nth; + php_int_t nth; mpz_ptr gmpnum_a, gmpnum_result1, gmpnum_result2; gmp_temp_t temp_a;

« previous php.cvs (#74168) next »