Skip to content

Commit d85827f

Browse files
committed
Reduce compilation noise during normal compilation:
php-5.5/ext/session/session.c:836: warning: unused variable ‘struc’ php-5.5/ext/session/session.c:836: warning: unused variable ‘num_key’ php-5.5/ext/session/session.c:836: warning: unused variable ‘key_length’ php-5.5/ext/session/session.c:836: warning: unused variable ‘key’ php-5.5/ext/session/session.c:835: warning: unused variable ‘key_type’ php-5.5/ext/session/session.c:834: warning: unused variable ‘_ht’ php-5.5/ext/session/session.c:857: warning: unused variable ‘has_value’ php-5.5/ext/session/session.c:856: warning: unused variable ‘namelen’ php-5.5/ext/session/session.c:853: warning: unused variable ‘name’ php-5.5/ext/session/session.c:852: warning: unused variable ‘p’ php-5.5/ext/session/mod_user.c:191: warning: unused variable ‘ret’
1 parent 6181948 commit d85827f

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

ext/session/mod_user.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ PS_CREATE_SID_FUNC(user)
188188
/* maintain backwards compatibility */
189189
if (PSF(create_sid) != NULL) {
190190
char *id = NULL;
191-
STDVARS;
191+
zval *retval = NULL;
192192

193193
retval = ps_call_handler(PSF(create_sid), 0, NULL TSRMLS_CC);
194194

ext/session/session.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -831,9 +831,6 @@ PS_SERIALIZER_ENCODE_FUNC(php_serialize) /* {{{ */
831831
{
832832
smart_str buf = {0};
833833
php_serialize_data_t var_hash;
834-
HashTable *_ht = Z_ARRVAL_P(PS(http_session_vars));
835-
int key_type;
836-
PS_ENCODE_VARS;
837834

838835
PHP_VAR_SERIALIZE_INIT(var_hash);
839836
php_var_serialize(&buf, &PS(http_session_vars), &var_hash TSRMLS_CC);
@@ -849,12 +846,8 @@ PS_SERIALIZER_ENCODE_FUNC(php_serialize) /* {{{ */
849846

850847
PS_SERIALIZER_DECODE_FUNC(php_serialize) /* {{{ */
851848
{
852-
const char *p;
853-
char *name;
854849
const char *endptr = val + vallen;
855850
zval *session_vars;
856-
int namelen;
857-
int has_value;
858851
php_unserialize_data_t var_hash;
859852

860853
PHP_VAR_UNSERIALIZE_INIT(var_hash);

0 commit comments

Comments
 (0)