]> granicus.if.org Git - php/commitdiff
(getimagesize) fix FORCE_REF.
authorThies C. Arntzen <thies@php.net>
Sun, 23 Jul 2000 16:49:42 +0000 (16:49 +0000)
committerThies C. Arntzen <thies@php.net>
Sun, 23 Jul 2000 16:49:42 +0000 (16:49 +0000)
ext/standard/basic_functions.c

index 29dbf82e263d9435867f721f39a06766e7e1ac85..809afb57867445b9ecf21c74b2c5d8f08eb31a36 100644 (file)
@@ -60,6 +60,7 @@ php_basic_globals basic_globals;
 #endif
 
 static unsigned char second_and_third_args_force_ref[] = { 3, BYREF_NONE, BYREF_FORCE, BYREF_FORCE };
+static unsigned char second_args_force_ref[] = { 2, BYREF_NONE, BYREF_FORCE };
 static unsigned char third_argument_force_ref[] = { 3, BYREF_NONE, BYREF_NONE, BYREF_FORCE };
 static unsigned char third_and_fourth_args_force_ref[] = { 4, BYREF_NONE, BYREF_NONE, BYREF_FORCE, BYREF_FORCE };
 
@@ -104,7 +105,7 @@ function_entry basic_functions[] = {
        PHP_FE(gettype,                                                                 NULL)
        PHP_FE(settype,                                                                 first_arg_force_ref)
        
-       PHP_FE(getimagesize,                                                    NULL)
+       PHP_FE(getimagesize,                                                    second_args_force_ref)
        
        PHP_FE(wordwrap,                                                                NULL)
        PHP_FE(htmlspecialchars,                                                NULL)