]> granicus.if.org Git - php/commitdiff
Add missing image_type_to_extension() argument
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 17 Jul 2020 13:13:00 +0000 (15:13 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 17 Jul 2020 13:24:41 +0000 (15:24 +0200)
ext/standard/basic_functions.stub.php
ext/standard/basic_functions_arginfo.h

index 9f5147d5f3f1e4ad7b9d791d47e4a5bdd5350fcd..9a27ae551284f810740023b27a74a1b9da58307d 100755 (executable)
@@ -955,7 +955,7 @@ function http_build_query(array|object $data, string $numeric_prefix = "", $arg_
 
 function image_type_to_mime_type(int $image_type): string {}
 
-function image_type_to_extension(int $image_type): string|false {}
+function image_type_to_extension(int $image_type, bool $include_dot = true): string|false {}
 
 function getimagesize(string $image_path, &$image_info = null): array|false {}
 
index 52cce1cabf1088ca3787e42dd3b6a228bc478edf..46d323081bed9bcdc03f99be5a2bb514e26507e3 100755 (executable)
@@ -1,5 +1,5 @@
 /* This is a generated file, edit the .stub.php file instead.
- * Stub hash: 49142ce7a3c79618e87a350b87994e01b1d69ff8 */
+ * Stub hash: 0a66e5b2c71762a74b9ff9ad11f80d265ef806e3 */
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_set_time_limit, 0, 1, _IS_BOOL, 0)
        ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0)
@@ -1521,6 +1521,7 @@ ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_image_type_to_extension, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
        ZEND_ARG_TYPE_INFO(0, image_type, IS_LONG, 0)
+       ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, include_dot, _IS_BOOL, 0, "true")
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_getimagesize, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)