Skip to content

Commit

Permalink
fix return values of inherited session handler to match user handlers…
Browse files Browse the repository at this point in the history
… - #60640
  • Loading branch information
arraypad committed Jan 4, 2012
1 parent 5142a4e commit 7b7c871
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ext/session/mod_user_class.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ PHP_METHOD(SessionHandler, open)
}

PS(mod_user_is_open) = 1;
RETVAL_LONG(PS(default_mod)->s_open(&PS(mod_data), save_path, session_name TSRMLS_CC));
RETVAL_BOOL(SUCCESS == PS(default_mod)->s_open(&PS(mod_data), save_path, session_name TSRMLS_CC));
}
/* }}} */

Expand All @@ -63,7 +63,7 @@ PHP_METHOD(SessionHandler, close)
zend_parse_parameters_none();

PS(mod_user_is_open) = 0;
RETVAL_LONG(PS(default_mod)->s_close(&PS(mod_data) TSRMLS_CC));
RETVAL_BOOL(SUCCESS == PS(default_mod)->s_close(&PS(mod_data) TSRMLS_CC));
}
/* }}} */

Expand Down Expand Up @@ -104,7 +104,7 @@ PHP_METHOD(SessionHandler, write)
return;
}

RETVAL_LONG(PS(default_mod)->s_write(&PS(mod_data), key, val, val_len TSRMLS_CC));
RETVAL_BOOL(SUCCESS == PS(default_mod)->s_write(&PS(mod_data), key, val, val_len TSRMLS_CC));
}
/* }}} */

Expand All @@ -122,7 +122,7 @@ PHP_METHOD(SessionHandler, destroy)
}

PS(mod_user_is_open) = 0;
RETVAL_LONG(PS(default_mod)->s_destroy(&PS(mod_data), key TSRMLS_CC));
RETVAL_BOOL(SUCCESS == PS(default_mod)->s_destroy(&PS(mod_data), key TSRMLS_CC));
}
/* }}} */

Expand All @@ -139,6 +139,6 @@ PHP_METHOD(SessionHandler, gc)
return;
}

RETVAL_LONG(PS(default_mod)->s_gc(&PS(mod_data), maxlifetime, &nrdels TSRMLS_CC));
RETVAL_BOOL(SUCCESS == PS(default_mod)->s_gc(&PS(mod_data), maxlifetime, &nrdels TSRMLS_CC));
}
/* }}} */

0 comments on commit 7b7c871

Please sign in to comment.