diff options
author | Kalle Sommer Nielsen <kalle@php.net> | 2010-04-21 23:16:56 +0000 |
---|---|---|
committer | Kalle Sommer Nielsen <kalle@php.net> | 2010-04-21 23:16:56 +0000 |
commit | b8ada243feb3f240c5d68081b01df3e98d5dd8cf (patch) | |
tree | 95e2e2c37e3ba998d28f557f7f701a8df97d70ad | |
parent | c8a7cb6a45804eec37f26a720f83743238d1c1ce (diff) | |
download | php-git-b8ada243feb3f240c5d68081b01df3e98d5dd8cf.tar.gz |
Drop php_register_var(), Thanks Felipe
-rw-r--r-- | ext/session/session.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index 36f86afaa0..aa81790951 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -1713,35 +1713,6 @@ static PHP_FUNCTION(session_cache_expire) } /* }}} */ -/* {{{ static void php_register_var(zval** entry TSRMLS_DC) */ -static void php_register_var(zval** entry TSRMLS_DC) -{ - zval **value; - - if (Z_TYPE_PP(entry) == IS_ARRAY) { - if (Z_ARRVAL_PP(entry)->nApplyCount > 1) { - return; - } - - zend_hash_internal_pointer_reset(Z_ARRVAL_PP(entry)); - Z_ARRVAL_PP(entry)->nApplyCount++; - - while (zend_hash_get_current_data(Z_ARRVAL_PP(entry), (void**)&value) == SUCCESS) { - php_register_var(value TSRMLS_CC); - zend_hash_move_forward(Z_ARRVAL_PP(entry)); - } - - Z_ARRVAL_PP(entry)->nApplyCount--; - } else { - convert_to_string_ex(entry); - - if (strcmp(Z_STRVAL_PP(entry), "_SESSION") != 0) { - PS_ADD_VARL(Z_STRVAL_PP(entry), Z_STRLEN_PP(entry)); - } - } -} -/* }}} */ - /* {{{ proto string session_encode(void) Serializes the current setup and returns the serialized representation */ static PHP_FUNCTION(session_encode) |