]> granicus.if.org Git - php/commitdiff
Fixed bug #19487
authorIlia Alshanetsky <iliaa@php.net>
Fri, 20 Sep 2002 01:25:55 +0000 (01:25 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 20 Sep 2002 01:25:55 +0000 (01:25 +0000)
ext/gd/gd.c

index 3d51b68f1731e939dfbfe9d4153b13fb02b158df..af925d736ad3d9bedfc0e8bc5a05e11a846f0841 100644 (file)
@@ -1167,7 +1167,7 @@ static void _php_image_create_from(INTERNAL_FUNCTION_PARAMETERS, int image_type,
        
        convert_to_string_ex(file);
 
-       if (argc == 4 && image_type == PHP_GDIMG_TYPE_GD2PART) {
+       if (argc == 5 && image_type == PHP_GDIMG_TYPE_GD2PART) {
                multi_convert_to_long_ex(4, srcx, srcy, width, height);
        }