1
0
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:
Sascha Schumann
2001-08-03 09:35:33 +00:00
parent 60024a469d
commit 3459f05a07

View File

@@ -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);
}