We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac56ca0 commit ae2b214Copy full SHA for ae2b214
ext/opcache/Optimizer/zend_func_info.c
@@ -938,6 +938,11 @@ uint32_t zend_get_func_info(
938
if (internal_ret & ~ret) {
939
fprintf(stderr, "Inaccurate func info for %s()\n", ZSTR_VAL(lcname));
940
}
941
+ /* Check whether the func info is completely redundant with arginfo.
942
+ * Ignore UNKNOWN_INFO for now. */
943
+ if (internal_ret == ret && (internal_ret & MAY_BE_ANY) != MAY_BE_ANY) {
944
+ fprintf(stderr, "Useless func info for %s()\n", ZSTR_VAL(lcname));
945
+ }
946
/* If the return type is not mixed, check that the types match exactly if we exclude
947
* RC and array information. */
948
uint32_t ret_any = ret & MAY_BE_ANY, internal_ret_any = internal_ret & MAY_BE_ANY;
0 commit comments