summaryrefslogtreecommitdiff
path: root/ext/session/mod_user.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2014-10-16 21:28:40 -0700
committerRasmus Lerdorf <rasmus@php.net>2014-10-16 21:28:40 -0700
commita9d6556971a435f71eabf142d8fb814382f3b6ac (patch)
tree4fecce88bbc1bc3259856eb0314d780184de85eb /ext/session/mod_user.c
parent86674b5837bffe4486714f9661620020ee498f3b (diff)
parent176b8d7ca3aef3a172d8e429627c98e0328d02d8 (diff)
downloadphp-git-a9d6556971a435f71eabf142d8fb814382f3b6ac.tar.gz
Merge branch 'master' of git.php.net:php-src
* 'master' of git.php.net:php-src: (1132 commits) Micro optimizations for isset/empty Micro optimization for zend_hash_next_index_insert_new() Fix array_keys() on $GLOBALS Fix procedural finfo calls in methods Fix allocator for 64bit zend_long with 32bit long Use intptr_t for zend_intptr_t typedef Fix format strings in zend_alloc Drop zend_long64 in favor of int64_t Removed deprecated fields NEWS cleanup NEWS removing the NEWS entry as we had to revert this fix for now Revert "Merge branch 'PHP-5.5' into PHP-5.6" Revert "fix TS build" Revert "Merge branch 'PHP-5.4' into PHP-5.5" Revert "Bug #67965: Fix blocking behavior in non-blocking crypto streams" Revert "Bug #41631: Fix regression from first attempt (6569db8)" NEWS Fixed Bug #65171 imagescale() fails Fixed bug #68234 ...
Diffstat (limited to 'ext/session/mod_user.c')
-rw-r--r--ext/session/mod_user.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/session/mod_user.c b/ext/session/mod_user.c
index 40bb88813b..5d474deab5 100644
--- a/ext/session/mod_user.c
+++ b/ext/session/mod_user.c
@@ -1,6 +1,6 @@
/*
+----------------------------------------------------------------------+
- | PHP Version 5 |
+ | PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2014 The PHP Group |
+----------------------------------------------------------------------+
@@ -26,9 +26,9 @@ ps_module ps_mod_user = {
PS_MOD_SID(user)
};
-#define SESS_ZVAL_INT(val, a) \
+#define SESS_ZVAL_LONG(val, a) \
{ \
- ZVAL_INT(a, val); \
+ ZVAL_LONG(a, val); \
}
#define SESS_ZVAL_STRING(vl, a) \
@@ -44,7 +44,7 @@ ps_module ps_mod_user = {
#define SESS_ZVAL_STR(vl, a) \
{ \
- ZVAL_STR(a, STR_COPY(vl)); \
+ ZVAL_STR_COPY(a, vl); \
}
static void ps_call_handler(zval *func, int argc, zval *argv, zval *retval TSRMLS_DC)
@@ -73,10 +73,10 @@ static void ps_call_handler(zval *func, int argc, zval *argv, zval *retval TSRML
ret = SUCCESS; \
} else if (Z_TYPE(retval) == IS_FALSE) { \
ret = FAILURE; \
- } else if ((Z_TYPE(retval) == IS_INT) && (Z_IVAL(retval) == -1)) { \
+ } else if ((Z_TYPE(retval) == IS_LONG) && (Z_LVAL(retval) == -1)) { \
/* BC for clever users - Deprecate me */ \
ret = FAILURE; \
- } else if ((Z_TYPE(retval) == IS_INT) && (Z_IVAL(retval) == 0)) { \
+ } else if ((Z_TYPE(retval) == IS_LONG) && (Z_LVAL(retval) == 0)) { \
/* BC for clever users - Deprecate me */ \
ret = SUCCESS; \
} else { \
@@ -150,7 +150,7 @@ PS_READ_FUNC(user)
if (!Z_ISUNDEF(retval)) {
if (Z_TYPE(retval) == IS_STRING) {
- *val = STR_COPY(Z_STR(retval));
+ *val = zend_string_copy(Z_STR(retval));
ret = SUCCESS;
}
zval_ptr_dtor(&retval);
@@ -189,7 +189,7 @@ PS_GC_FUNC(user)
zval args[1];
STDVARS;
- SESS_ZVAL_INT(maxlifetime, &args[0]);
+ SESS_ZVAL_LONG(maxlifetime, &args[0]);
ps_call_handler(&PSF(gc), 1, args, &retval TSRMLS_CC);
@@ -207,7 +207,7 @@ PS_CREATE_SID_FUNC(user)
if (!Z_ISUNDEF(retval)) {
if (Z_TYPE(retval) == IS_STRING) {
- id = STR_COPY(Z_STR(retval));
+ id = zend_string_copy(Z_STR(retval));
}
zval_ptr_dtor(&retval);
} else {