@@ -992,7 +992,7 @@ PS_SERIALIZER_ENCODE_FUNC(php_binary)
992
992
PS_ENCODE_LOOP (
993
993
if (ZSTR_LEN (key ) > PS_BIN_MAX ) continue ;
994
994
smart_str_appendc (& buf , (unsigned char )ZSTR_LEN (key ));
995
- smart_str_appendl (& buf , ZSTR_VAL ( key ), ZSTR_LEN ( key ) );
995
+ smart_str_append (& buf , key );
996
996
php_var_serialize (& buf , struc , & var_hash );
997
997
);
998
998
@@ -1054,7 +1054,7 @@ PS_SERIALIZER_ENCODE_FUNC(php)
1054
1054
PHP_VAR_SERIALIZE_INIT (var_hash );
1055
1055
1056
1056
PS_ENCODE_LOOP (
1057
- smart_str_appendl (& buf , ZSTR_VAL ( key ), ZSTR_LEN ( key ) );
1057
+ smart_str_append (& buf , key );
1058
1058
if (memchr (ZSTR_VAL (key ), PS_DELIMITER , ZSTR_LEN (key ))) {
1059
1059
PHP_VAR_SERIALIZE_DESTROY (var_hash );
1060
1060
smart_str_free (& buf );
@@ -1397,7 +1397,7 @@ static zend_result php_session_send_cookie(void)
1397
1397
smart_str_appendl (& ncookie , "Set-Cookie: " , sizeof ("Set-Cookie: " )- 1 );
1398
1398
smart_str_appendl (& ncookie , PS (session_name ), strlen (PS (session_name )));
1399
1399
smart_str_appendc (& ncookie , '=' );
1400
- smart_str_appendl (& ncookie , ZSTR_VAL ( e_id ), ZSTR_LEN ( e_id ) );
1400
+ smart_str_append (& ncookie , e_id );
1401
1401
1402
1402
zend_string_release_ex (e_id , 0 );
1403
1403
@@ -1411,7 +1411,7 @@ static zend_result php_session_send_cookie(void)
1411
1411
if (t > 0 ) {
1412
1412
date_fmt = php_format_date ("D, d M Y H:i:s \\G\\M\\T" , sizeof ("D, d M Y H:i:s \\G\\M\\T" )- 1 , t , 0 );
1413
1413
smart_str_appends (& ncookie , COOKIE_EXPIRES );
1414
- smart_str_appendl (& ncookie , ZSTR_VAL ( date_fmt ), ZSTR_LEN ( date_fmt ) );
1414
+ smart_str_append (& ncookie , date_fmt );
1415
1415
zend_string_release_ex (date_fmt , 0 );
1416
1416
1417
1417
smart_str_appends (& ncookie , COOKIE_MAX_AGE );
@@ -1523,7 +1523,7 @@ PHPAPI zend_result php_session_reset_id(void)
1523
1523
1524
1524
smart_str_appends (& var , PS (session_name ));
1525
1525
smart_str_appendc (& var , '=' );
1526
- smart_str_appends (& var , ZSTR_VAL ( PS (id ) ));
1526
+ smart_str_append (& var , PS (id ));
1527
1527
smart_str_0 (& var );
1528
1528
if (sid ) {
1529
1529
zval_ptr_dtor (sid );
0 commit comments