mirror of
https://github.com/php/php-src.git
synced 2026-04-24 08:28:26 +02:00
master renames phase 6
This commit is contained in:
+7
-7
@@ -29,18 +29,18 @@
|
||||
#include "zend_types.h"
|
||||
|
||||
#ifndef ZEND_MM_ALIGNMENT
|
||||
# define ZEND_MM_ALIGNMENT Z_I(8)
|
||||
# define ZEND_MM_ALIGNMENT_LOG2 Z_I(3)
|
||||
#elif ZEND_MM_ALIGNMENT < Z_I(4)
|
||||
# define ZEND_MM_ALIGNMENT Z_L(8)
|
||||
# define ZEND_MM_ALIGNMENT_LOG2 Z_L(3)
|
||||
#elif ZEND_MM_ALIGNMENT < Z_L(4)
|
||||
# undef ZEND_MM_ALIGNMENT
|
||||
# undef ZEND_MM_ALIGNMENT_LOG2
|
||||
# define ZEND_MM_ALIGNMENT Z_I(4)
|
||||
# define ZEND_MM_ALIGNMENT_LOG2 Z_I(2)
|
||||
# define ZEND_MM_ALIGNMENT Z_L(4)
|
||||
# define ZEND_MM_ALIGNMENT_LOG2 Z_L(2)
|
||||
#endif
|
||||
|
||||
#define ZEND_MM_ALIGNMENT_MASK ~(ZEND_MM_ALIGNMENT-Z_I(1))
|
||||
#define ZEND_MM_ALIGNMENT_MASK ~(ZEND_MM_ALIGNMENT-Z_L(1))
|
||||
|
||||
#define ZEND_MM_ALIGNED_SIZE(size) (((size) + ZEND_MM_ALIGNMENT - Z_I(1)) & ZEND_MM_ALIGNMENT_MASK)
|
||||
#define ZEND_MM_ALIGNED_SIZE(size) (((size) + ZEND_MM_ALIGNMENT - Z_L(1)) & ZEND_MM_ALIGNMENT_MASK)
|
||||
|
||||
typedef struct _zend_leak_info {
|
||||
void *addr;
|
||||
|
||||
+3
-3
@@ -40,7 +40,7 @@ typedef __int64 zend_off_t;
|
||||
# define ZEND_LONG_MAX _I64_MAX
|
||||
# define ZEND_LONG_MIN _I64_MIN
|
||||
# define ZEND_ULONG_MAX _UI64_MAX
|
||||
# define Z_I(i) i##i64
|
||||
# define Z_L(i) i##i64
|
||||
# define Z_UL(i) i##Ui64
|
||||
# else
|
||||
# error Cant enable 64 bit integers on non 64 bit platform
|
||||
@@ -53,7 +53,7 @@ typedef off_t zend_off_t;
|
||||
# define ZEND_LONG_MAX INT64_MAX
|
||||
# define ZEND_LONG_MIN INT64_MIN
|
||||
# define ZEND_ULONG_MAX UINT64_MAX
|
||||
# define Z_I(i) i##LL
|
||||
# define Z_L(i) i##LL
|
||||
# define Z_UL(i) i##ULL
|
||||
# else
|
||||
# error Cant enable 64 bit integers on non 64 bit platform
|
||||
@@ -67,7 +67,7 @@ typedef long zend_off_t;
|
||||
# define ZEND_LONG_MAX LONG_MAX
|
||||
# define ZEND_LONG_MIN LONG_MIN
|
||||
# define ZEND_ULONG_MAX ULONG_MAX
|
||||
# define Z_I(i) i##L
|
||||
# define Z_L(i) i##L
|
||||
# define Z_UL(i) i##UL
|
||||
# define SIZEOF_ZEND_LONG SIZEOF_LONG
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -74,7 +74,7 @@ ZEND_API void zend_qsort_r(void *base, size_t nmemb, size_t siz, compare_r_func_
|
||||
end = end_stack[loop];
|
||||
|
||||
while (begin < end) {
|
||||
offset = (end - begin) >> Z_I(1);
|
||||
offset = (end - begin) >> Z_L(1);
|
||||
_zend_qsort_swap(begin, begin + (offset - (offset % siz)), siz);
|
||||
|
||||
seg1 = begin + siz;
|
||||
|
||||
@@ -2130,7 +2130,7 @@ MYSQLND_METHOD(mysqlnd_conn_data, get_server_version)(const MYSQLND_CONN_DATA *
|
||||
p += 1; /* consume the dot */
|
||||
patch = ZEND_STRTOL(p, &p, 10);
|
||||
|
||||
return (zend_ulong)(major * Z_I(10000) + (zend_ulong)(minor * Z_I(100) + patch));
|
||||
return (zend_ulong)(major * Z_L(10000) + (zend_ulong)(minor * Z_L(100) + patch));
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
@@ -2882,7 +2882,7 @@ PHP_FUNCTION(openssl_csr_sign)
|
||||
{
|
||||
zval * zcert = NULL, *zcsr, *zpkey, *args = NULL;
|
||||
zend_long num_days;
|
||||
zend_long serial = Z_I(0);
|
||||
zend_long serial = Z_L(0);
|
||||
X509 * cert = NULL, *new_cert = NULL;
|
||||
X509_REQ * csr;
|
||||
EVP_PKEY * key = NULL, *priv_key = NULL;
|
||||
|
||||
@@ -309,7 +309,7 @@ static zend_long pgsql_handle_doer(pdo_dbh_t *dbh, const char *sql, zend_long sq
|
||||
if (qs == PGRES_COMMAND_OK) {
|
||||
ZEND_ATOL(ret, PQcmdTuples(res));
|
||||
} else {
|
||||
ret = Z_I(0);
|
||||
ret = Z_L(0);
|
||||
}
|
||||
PQclear(res);
|
||||
|
||||
|
||||
+2
-2
@@ -265,7 +265,7 @@ static PHP_FUNCTION(pspell_new)
|
||||
{
|
||||
char *language, *spelling = NULL, *jargon = NULL, *encoding = NULL;
|
||||
int language_len, spelling_len = 0, jargon_len = 0, encoding_len = 0;
|
||||
zend_long mode = Z_I(0), speed = Z_I(0);
|
||||
zend_long mode = Z_L(0), speed = Z_L(0);
|
||||
int argc = ZEND_NUM_ARGS();
|
||||
zval *ind;
|
||||
|
||||
@@ -362,7 +362,7 @@ static PHP_FUNCTION(pspell_new_personal)
|
||||
{
|
||||
char *personal, *language, *spelling = NULL, *jargon = NULL, *encoding = NULL;
|
||||
int personal_len, language_len, spelling_len = 0, jargon_len = 0, encoding_len = 0;
|
||||
zend_long mode = Z_I(0), speed = Z_I(0);
|
||||
zend_long mode = Z_L(0), speed = Z_L(0);
|
||||
int argc = ZEND_NUM_ARGS();
|
||||
zval *ind;
|
||||
|
||||
|
||||
@@ -2841,7 +2841,7 @@ PHP_FUNCTION(array_pad)
|
||||
|
||||
/* Populate the pads array */
|
||||
num_pads = pad_size_abs - input_size;
|
||||
if (num_pads > Z_I(1048576)) {
|
||||
if (num_pads > Z_L(1048576)) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "You may only pad up to 1048576 elements at a time");
|
||||
zval_dtor(return_value);
|
||||
RETURN_FALSE;
|
||||
|
||||
+1
-1
@@ -813,7 +813,7 @@ static inline int process_numeric_entity(const char **buf, unsigned *code_point)
|
||||
|
||||
/* many more are invalid, but that depends on whether it's HTML
|
||||
* (and which version) or XML. */
|
||||
if (code_l > Z_I(0x10FFFF))
|
||||
if (code_l > Z_L(0x10FFFF))
|
||||
return FAILURE;
|
||||
|
||||
if (code_point != NULL)
|
||||
|
||||
Reference in New Issue
Block a user