cvs: php4 /ext/session session.c

From: Date: Tue, 05 Feb 2002 01:30:22 +0000
Subject: cvs: php4 /ext/session session.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-9274@lists.php.net to get a copy of this message
sniper Mon Feb 4 20:30:22 2002 EDT Modified files: /php4/ext/session session.c Log: Let's be consistent and use zval instead of pval Index: php4/ext/session/session.c diff -u php4/ext/session/session.c:1.274 php4/ext/session/session.c:1.275 --- php4/ext/session/session.c:1.274 Mon Feb 4 20:28:55 2002 +++ php4/ext/session/session.c Mon Feb 4 20:30:22 2002 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: session.c,v 1.274 2002/02/05 01:28:55 sniper Exp $ */ +/* $Id: session.c,v 1.275 2002/02/05 01:30:22 sniper Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -251,7 +251,7 @@ #define ADD_COOKIE(a) sapi_add_header(a, strlen(a), 1); #define STR_CAT(P,S,I) {\ - pval *__p = (P);\ + zval *__p = (P);\ size_t __l = (I);\ ulong __i = Z_STRLEN_P(__p);\ Z_STRLEN_P(__p) += __l;\ @@ -827,8 +827,8 @@ PHPAPI void php_session_start(TSRMLS_D) { - pval **ppid; - pval **data; + zval **ppid; + zval **data; char *p; int send_cookie = 1; int module_number = PS(module_number); @@ -1039,7 +1039,7 @@ Return the current session name. If newname is given, the session name is replaced with newname */ PHP_FUNCTION(session_name) { - pval **p_name; + zval **p_name; int ac = ZEND_NUM_ARGS(); char *old; @@ -1061,7 +1061,7 @@ Return the current module name used for accessing session data. If newname is given, the module name is replaced with newname */ PHP_FUNCTION(session_module_name) { - pval **p_name; + zval **p_name; int ac = ZEND_NUM_ARGS(); char *old; @@ -1125,7 +1125,7 @@ Return the current save path passed to module_name. If newname is given, the save path is replaced with newname */ PHP_FUNCTION(session_save_path) { - pval **p_name; + zval **p_name; int ac = ZEND_NUM_ARGS(); char *old; @@ -1147,7 +1147,7 @@ Return the current session id. If newid is given, the session id is replaced with newid */ PHP_FUNCTION(session_id) { - pval **p_name; + zval **p_name; int ac = ZEND_NUM_ARGS(); char *old = empty_string; @@ -1171,7 +1171,7 @@ Return the current cache limiter. If new_cache_limited is given, the current cache_limiter is replaced with new_cache_limiter */ PHP_FUNCTION(session_cache_limiter) { - pval **p_cache_limiter; + zval **p_cache_limiter; int ac = ZEND_NUM_ARGS(); char *old; @@ -1271,7 +1271,7 @@ Removes varname from the list of variables which are freezed at the session end */ PHP_FUNCTION(session_unregister) { - pval **p_name; + zval **p_name; int ac = ZEND_NUM_ARGS(); if (ac != 1 || zend_get_parameters_ex(ac, &p_name) == FAILURE) @@ -1289,8 +1289,8 @@ Checks if a variable is registered in session */ PHP_FUNCTION(session_is_registered) { - pval **p_name; - pval *p_var; + zval **p_name; + zval *p_var; int ac = ZEND_NUM_ARGS(); if (ac != 1 || zend_get_parameters_ex(ac, &p_name) == FAILURE) @@ -1326,7 +1326,7 @@ Deserializes data and reinitializes the variables */ PHP_FUNCTION(session_decode) { - pval **str; + zval **str; if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &str) == FAILURE) WRONG_PARAM_COUNT;

« previous php.cvs (#9274) next »