Refactor session (incompleted)

This commit is contained in:
Xinchen Hui 2014-03-26 23:23:54 +08:00
parent e82f112468
commit c9bca5039b
4 changed files with 325 additions and 336 deletions

View file

@ -85,8 +85,8 @@ PHP_METHOD(SessionHandler, read)
return;
}
RETVAL_STRINGL(val, val_len, 1);
str_efree(val);
RETVAL_STRINGL(val, val_len);
efree(val);
return;
}
/* }}} */
@ -154,6 +154,8 @@ PHP_METHOD(SessionHandler, create_sid)
id = PS(default_mod)->s_create_sid(&PS(mod_data), NULL TSRMLS_CC);
RETURN_STRING(id, 0);
//????
RETVAL_STRING(id);
efree(id);
}
/* }}} */