From: Derick Rethans Date: Thu, 27 Sep 2001 06:55:23 +0000 (+0000) Subject: - Fix crashbug in php_chunk_split() X-Git-Tag: php4~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be52d66f4ba044a2c61f42e4ad04cc98f5571ec9;p=php - Fix crashbug in php_chunk_split() --- diff --git a/ext/standard/string.c b/ext/standard/string.c index faca6fd0f9..fe0ae0a039 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1588,7 +1588,7 @@ PHP_FUNCTION(chunk_split) convert_to_string_ex(p_str); if (argc > 1) { - convert_to_string_ex(p_chunklen); + convert_to_long_ex(p_chunklen); chunklen = Z_LVAL_PP(p_chunklen); }