]> granicus.if.org Git - php/commitdiff
(PHP session_register, session_unregister) always return true
authorSascha Schumann <sas@php.net>
Sun, 24 Oct 1999 16:17:45 +0000 (16:17 +0000)
committerSascha Schumann <sas@php.net>
Sun, 24 Oct 1999 16:17:45 +0000 (16:17 +0000)
ext/session/session.c

index a68748d60c89734523c91718e5575053c54131aa..eb81da0498c875eb505af8ebd107b00128976df5 100644 (file)
@@ -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;
 }
 /* }}} */