From: Thies C. Arntzen Date: Sun, 23 Jul 2000 16:49:42 +0000 (+0000) Subject: (getimagesize) fix FORCE_REF. X-Git-Tag: PRE_FILE_COMPILE_API_CHANGE~180 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9752d1a089e21bc2dd2f2018169f21d59ab3aeef;p=php (getimagesize) fix FORCE_REF. --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 29dbf82e26..809afb5786 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -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)