]> granicus.if.org Git - php/commitdiff
- Fix crashbug in php_chunk_split()
authorDerick Rethans <derick@php.net>
Thu, 27 Sep 2001 06:55:23 +0000 (06:55 +0000)
committerDerick Rethans <derick@php.net>
Thu, 27 Sep 2001 06:55:23 +0000 (06:55 +0000)
ext/standard/string.c

index faca6fd0f90e420bd18e3c52f4f131ff4a7bc5ff..fe0ae0a039de1db9cabd7c9c3c5f024d49551d36 100644 (file)
@@ -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);
        }