File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -786,10 +786,10 @@ static inline void php_var_serialize_long(smart_str *buf, zend_long val) /* {{{
786
786
}
787
787
/* }}} */
788
788
789
- static inline void php_var_serialize_string (smart_str * buf , char * str , size_t len ) /* {{{ */
789
+ static inline void php_var_serialize_string (smart_str * buf , const char * str , size_t len ) /* {{{ */
790
790
{
791
791
char b [32 ];
792
- char * s = zend_print_long_to_buf (b + sizeof (b ) - 1 , len );
792
+ char * s = zend_print_ulong_to_buf (b + sizeof (b ) - 1 , len );
793
793
size_t l = b + sizeof (b ) - 1 - s ;
794
794
char * res = smart_str_extend (buf , 2 + l + 2 + len + 2 );
795
795
res = zend_mempcpy (res , "s:" , 2 );
@@ -807,7 +807,7 @@ static inline bool php_var_serialize_class_name(smart_str *buf, zval *struc) /*
807
807
808
808
PHP_SET_CLASS_ATTRIBUTES (struc );
809
809
size_t class_name_len = ZSTR_LEN (class_name );
810
- char * s = zend_print_long_to_buf (b + sizeof (b ) - 1 , class_name_len );
810
+ char * s = zend_print_ulong_to_buf (b + sizeof (b ) - 1 , class_name_len );
811
811
size_t l = b + sizeof (b ) - 1 - s ;
812
812
char * res = smart_str_extend (buf , 2 + l + 2 + class_name_len + 2 );
813
813
res = zend_mempcpy (res , "O:" , 2 );
You can’t perform that action at this time.
0 commit comments