Skip to content

Commit 40ff001

Browse files
committed
Fix constant() func info
Since PHP 5.6 this can also be an array.
1 parent ae837db commit 40ff001

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/Optimizer/zend_func_info.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ static const func_info_t func_infos[] = {
268268
FC("extension_loaded", zend_b_s_info),
269269
F1("get_extension_funcs", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
270270

271-
/* ext/statdard */
272-
FN("constant", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_LONG | MAY_BE_DOUBLE | MAY_BE_STRING | MAY_BE_RESOURCE),
271+
/* ext/standard */
272+
FN("constant", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_LONG | MAY_BE_DOUBLE | MAY_BE_STRING | MAY_BE_RESOURCE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY),
273273
F1("bin2hex", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
274274
F1("hex2bin", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
275275
F0("sleep", MAY_BE_FALSE | MAY_BE_LONG),

0 commit comments

Comments
 (0)