Skip to content

Commit

Permalink
Add missing image_type_to_extension() argument
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Jul 17, 2020
1 parent 86a62eb commit 895a22c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ext/standard/basic_functions.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

Expand Down
3 changes: 2 additions & 1 deletion ext/standard/basic_functions_arginfo.h
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 895a22c

Please sign in to comment.