mirror of
https://github.com/php/php-src.git
synced 2026-04-19 14:01:01 +02:00
NUL-terminate string
This commit is contained in:
@@ -606,6 +606,7 @@ PHP_FUNCTION(serialize)
|
||||
PHP_VAR_SERIALIZE_INIT(var_hash);
|
||||
php_var_serialize(&buf, struc, &var_hash);
|
||||
PHP_VAR_SERIALIZE_DESTROY(var_hash);
|
||||
smart_str_0(&buf);
|
||||
RETVAL_STRINGL(buf.c, buf.len, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user