summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-10-24 16:17:45 +0000
committerSascha Schumann <sas@php.net>1999-10-24 16:17:45 +0000
commit51ea5cc70ad90d7033227c29ae747484a416bfcb (patch)
tree647a1721c999983877cd79962e28df406c310273
parent7305cb156cf4fd4fcface2a9584c591d8b5c81a5 (diff)
downloadphp-git-51ea5cc70ad90d7033227c29ae747484a416bfcb.tar.gz
(PHP session_register, session_unregister) always return true
-rw-r--r--ext/session/session.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/session/session.c b/ext/session/session.c
index a68748d60c..eb81da0498 100644
--- a/ext/session/session.c
+++ b/ext/session/session.c
@@ -699,7 +699,7 @@ PHP_FUNCTION(session_id)
}
/* }}} */
-/* {{{ proto session_register(string varname)
+/* {{{ proto bool session_register(string varname)
adds varname to the list of variables which are freezed at the session end */
PHP_FUNCTION(session_register)
{
@@ -715,10 +715,12 @@ PHP_FUNCTION(session_register)
if(!PS(nr_open_sessions)) _php_session_start(PSLS_C);
PS_ADD_VAR((*p_name)->value.str.val);
+
+ RETURN_TRUE;
}
/* }}} */
-/* {{{ proto session_unregister(string varname)
+/* {{{ proto bool session_unregister(string varname)
removes varname from the list of variables which are freezed at the session end */
PHP_FUNCTION(session_unregister)
{
@@ -733,6 +735,8 @@ PHP_FUNCTION(session_unregister)
convert_to_string_ex(p_name);
PS_DEL_VAR((*p_name)->value.str.val);
+
+ RETURN_TRUE;
}
/* }}} */