]> granicus.if.org Git - php/commitdiff
Lowercase NULL to null in stubs
authorMáté Kocsis <kocsismate@woohoolabs.com>
Sat, 11 Apr 2020 12:13:11 +0000 (14:13 +0200)
committerMáté Kocsis <kocsismate@woohoolabs.com>
Sat, 11 Apr 2020 12:13:11 +0000 (14:13 +0200)
ext/filter/filter.stub.php
ext/filter/filter_arginfo.h
ext/gd/gd.stub.php
ext/gd/gd_arginfo.h

index 5014e60dd95e024024cdb456c0d707ba00c28641..517a3a055c17ae2fc9fb3a31c23bf1e30d48fe5e 100644 (file)
@@ -8,26 +8,26 @@ function filter_has_var(int $type, string $variable_name): bool {}
  * @param mixed $options
  * @return mixed
  */
-function filter_input(int $type, string $variable_name, int $filter = FILTER_DEFAULT, $options = NULL) {}
+function filter_input(int $type, string $variable_name, int $filter = FILTER_DEFAULT, $options = null) {}
 
 /**
  * @param mixed $variable
  * @param mixed $options
  * @return mixed
  */
-function filter_var($variable, int $filter = FILTER_DEFAULT, $options = NULL) {}
+function filter_var($variable, int $filter = FILTER_DEFAULT, $options = null) {}
 
 /**
  * @param mixed $options
  * @return mixed
  */
-function filter_input_array(int $type, $options = NULL, bool $add_empty = true) {}
+function filter_input_array(int $type, $options = null, bool $add_empty = true) {}
 
 /**
  * @param mixed $options
  * @return mixed
  */
-function filter_var_array(array $data, $options = NULL, bool $add_empty = true) {}
+function filter_var_array(array $data, $options = null, bool $add_empty = true) {}
 
 function filter_list(): array {}
 
index 10a8a5af9d07c8c9a7afc2c0cca015b8d68c0238..8d3f1c0394465863644f872aed4c0f2fe9bf12dc 100644 (file)
@@ -9,24 +9,24 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_filter_input, 0, 0, 2)
        ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0)
        ZEND_ARG_TYPE_INFO(0, variable_name, IS_STRING, 0)
        ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filter, IS_LONG, 0, "FILTER_DEFAULT")
-       ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, options, "NULL")
+       ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, options, "null")
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_filter_var, 0, 0, 1)
        ZEND_ARG_INFO(0, variable)
        ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filter, IS_LONG, 0, "FILTER_DEFAULT")
-       ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, options, "NULL")
+       ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, options, "null")
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_filter_input_array, 0, 0, 1)
        ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0)
-       ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, options, "NULL")
+       ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, options, "null")
        ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, add_empty, _IS_BOOL, 0, "true")
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_filter_var_array, 0, 0, 1)
        ZEND_ARG_TYPE_INFO(0, data, IS_ARRAY, 0)
-       ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, options, "NULL")
+       ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, options, "null")
        ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, add_empty, _IS_BOOL, 0, "true")
 ZEND_END_ARG_INFO()
 
index 79dca96fa8a8030398793e5e0f069c943565c788..3202a8b54190a3b5691ea3228895d3e098500810 100644 (file)
@@ -98,28 +98,28 @@ function imagecreatefromtga(string $filename): GdImage|false {}
 
 function imagexbm(GdImage $im, ?string $filename, int $foreground = UNKNOWN): bool {}
 
-function imagegif(GdImage $im, $to = NULL): bool {}
+function imagegif(GdImage $im, $to = null): bool {}
 
 #ifdef HAVE_GD_PNG
-function imagepng(GdImage $im, $to = NULL, int $quality = UNKNOWN, int $filters = UNKNOWN): bool {}
+function imagepng(GdImage $im, $to = null, int $quality = UNKNOWN, int $filters = UNKNOWN): bool {}
 #endif
 
 #ifdef HAVE_GD_WEBP
-function imagewebp(GdImage $im, $to = NULL, int $quality = UNKNOWN): bool {}
+function imagewebp(GdImage $im, $to = null, int $quality = UNKNOWN): bool {}
 #endif
 
 #ifdef HAVE_GD_JPG
-function imagejpeg(GdImage $im, $to = NULL, int $quality = UNKNOWN): bool {}
+function imagejpeg(GdImage $im, $to = null, int $quality = UNKNOWN): bool {}
 #endif
 
-function imagewbmp(GdImage $im, $to = NULL, int $foreground = UNKNOWN): bool {}
+function imagewbmp(GdImage $im, $to = null, int $foreground = UNKNOWN): bool {}
 
 function imagegd(GdImage $im, $to = UNKNOWN): bool {}
 
 function imagegd2(GdImage $im, $to = UNKNOWN, int $chunk_size = UNKNOWN, int $type = UNKNOWN): bool {}
 
 #ifdef HAVE_GD_BMP
-function imagebmp(GdImage $im, $to = NULL, int $compressed = 1): bool {}
+function imagebmp(GdImage $im, $to = null, int $compressed = 1): bool {}
 #endif
 
 function imagedestroy(GdImage $im): bool {}
index f2673c935c4110257b45e21ad83dd280e8990e13..eb60f889ef88334c80d876007bb8614efd901888 100644 (file)
@@ -204,13 +204,13 @@ ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagegif, 0, 1, _IS_BOOL, 0)
        ZEND_ARG_OBJ_INFO(0, im, GdImage, 0)
-       ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, to, "NULL")
+       ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, to, "null")
 ZEND_END_ARG_INFO()
 
 #if defined(HAVE_GD_PNG)
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagepng, 0, 1, _IS_BOOL, 0)
        ZEND_ARG_OBJ_INFO(0, im, GdImage, 0)
-       ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, to, "NULL")
+       ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, to, "null")
        ZEND_ARG_TYPE_INFO(0, quality, IS_LONG, 0)
        ZEND_ARG_TYPE_INFO(0, filters, IS_LONG, 0)
 ZEND_END_ARG_INFO()
@@ -219,7 +219,7 @@ ZEND_END_ARG_INFO()
 #if defined(HAVE_GD_WEBP)
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagewebp, 0, 1, _IS_BOOL, 0)
        ZEND_ARG_OBJ_INFO(0, im, GdImage, 0)
-       ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, to, "NULL")
+       ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, to, "null")
        ZEND_ARG_TYPE_INFO(0, quality, IS_LONG, 0)
 ZEND_END_ARG_INFO()
 #endif
@@ -227,14 +227,14 @@ ZEND_END_ARG_INFO()
 #if defined(HAVE_GD_JPG)
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagejpeg, 0, 1, _IS_BOOL, 0)
        ZEND_ARG_OBJ_INFO(0, im, GdImage, 0)
-       ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, to, "NULL")
+       ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, to, "null")
        ZEND_ARG_TYPE_INFO(0, quality, IS_LONG, 0)
 ZEND_END_ARG_INFO()
 #endif
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagewbmp, 0, 1, _IS_BOOL, 0)
        ZEND_ARG_OBJ_INFO(0, im, GdImage, 0)
-       ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, to, "NULL")
+       ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, to, "null")
        ZEND_ARG_TYPE_INFO(0, foreground, IS_LONG, 0)
 ZEND_END_ARG_INFO()
 
@@ -253,7 +253,7 @@ ZEND_END_ARG_INFO()
 #if defined(HAVE_GD_BMP)
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagebmp, 0, 1, _IS_BOOL, 0)
        ZEND_ARG_OBJ_INFO(0, im, GdImage, 0)
-       ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, to, "NULL")
+       ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, to, "null")
        ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, compressed, IS_LONG, 0, "1")
 ZEND_END_ARG_INFO()
 #endif