mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
Pass on nul'ified data
This commit is contained in:
parent
f6ed403fde
commit
4a1943c542
1 changed files with 4 additions and 0 deletions
|
@ -297,6 +297,8 @@ PS_SERIALIZER_ENCODE_FUNC(php_binary)
|
|||
smart_str_appendl(&buf, key, key_length);
|
||||
);
|
||||
|
||||
smart_str_0(&buf);
|
||||
|
||||
if (newlen) *newlen = buf.len;
|
||||
*newstr = buf.c;
|
||||
PHP_VAR_SERIALIZE_DESTROY(var_hash);
|
||||
|
@ -364,6 +366,8 @@ PS_SERIALIZER_ENCODE_FUNC(php)
|
|||
smart_str_appendc(&buf, PS_DELIMITER);
|
||||
);
|
||||
|
||||
smart_str_0(&buf);
|
||||
|
||||
if (newlen) *newlen = buf.len;
|
||||
*newstr = buf.c;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue