fix #35690 (pack() tries to allocate huge memory block when packing float values to strings)

This commit is contained in:
Antony Dovgal 2005-12-15 22:14:25 +00:00
parent 72ae77a1d8
commit 90b95eeb23

View File

@ -184,6 +184,7 @@ PHP_FUNCTION(pack)
}
if (arg < 0) {
convert_to_string_ex(argv[currentarg]);
arg = Z_STRLEN_PP(argv[currentarg]);
}