]> granicus.if.org Git - php/commitdiff
Make opcache zend_func_info consistent with Reflection for ctype
authorTyson Andre <tysonandre775@hotmail.com>
Sat, 15 Jun 2019 21:20:34 +0000 (17:20 -0400)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sun, 16 Jun 2019 09:28:18 +0000 (11:28 +0200)
This follows up with php 8.0 adding a real return type
(non-null bool) in 1409a3b1535e221d8449416d77ed45175f3335d2

ext/opcache/Optimizer/zend_func_info.c

index 94dbf74dd0e611c8e86bd7ee01c16f48992fea74..684831b320e51d0940ad9c18ef3b3bc337a93b2b 100644 (file)
@@ -1318,17 +1318,17 @@ static const func_info_t func_infos[] = {
 #endif
 
        /* ext/ctype */
-       F0("ctype_alnum",                                                       MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
-       F0("ctype_alpha",                                                       MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
-       F0("ctype_cntrl",                                                       MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
-       F0("ctype_digit",                                                       MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
-       F0("ctype_lower",                                                       MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
-       F0("ctype_graph",                                                       MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
-       F0("ctype_print",                                                       MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
-       F0("ctype_punct",                                                       MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
-       F0("ctype_space",                                                       MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
-       F0("ctype_upper",                                                       MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
-       F0("ctype_xdigit",                                                      MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
+       F0("ctype_alnum",                                                       MAY_BE_FALSE | MAY_BE_TRUE),
+       F0("ctype_alpha",                                                       MAY_BE_FALSE | MAY_BE_TRUE),
+       F0("ctype_cntrl",                                                       MAY_BE_FALSE | MAY_BE_TRUE),
+       F0("ctype_digit",                                                       MAY_BE_FALSE | MAY_BE_TRUE),
+       F0("ctype_lower",                                                       MAY_BE_FALSE | MAY_BE_TRUE),
+       F0("ctype_graph",                                                       MAY_BE_FALSE | MAY_BE_TRUE),
+       F0("ctype_print",                                                       MAY_BE_FALSE | MAY_BE_TRUE),
+       F0("ctype_punct",                                                       MAY_BE_FALSE | MAY_BE_TRUE),
+       F0("ctype_space",                                                       MAY_BE_FALSE | MAY_BE_TRUE),
+       F0("ctype_upper",                                                       MAY_BE_FALSE | MAY_BE_TRUE),
+       F0("ctype_xdigit",                                                      MAY_BE_FALSE | MAY_BE_TRUE),
 
        /* ext/fileinfo */
        F1("finfo_open",                                                        MAY_BE_FALSE | MAY_BE_RESOURCE),