summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyson Andre <tysonandre775@hotmail.com>2019-09-08 15:14:02 -0400
committerNikita Popov <nikita.ppv@gmail.com>2019-09-09 17:13:19 +0200
commit45e529d673779939d62cc159304cf70dc179cff4 (patch)
tree890a33751efeb90f80f3398c1281011aaad1c685
parent974e77b3458271d0bf55182935b6178c4fe20656 (diff)
downloadphp-git-45e529d673779939d62cc159304cf70dc179cff4.tar.gz
Fix opcache zend_func_info for microtime/gettimeofday
microtime() doesn't return an array, and gettimeofday() doesn't return a string. See _php_gettimeofday in microtime.c (mode is non-zero for gettimeofday)
-rw-r--r--ext/opcache/Optimizer/zend_func_info.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/opcache/Optimizer/zend_func_info.c b/ext/opcache/Optimizer/zend_func_info.c
index c34c81f6f0..551e8e3bd1 100644
--- a/ext/opcache/Optimizer/zend_func_info.c
+++ b/ext/opcache/Optimizer/zend_func_info.c
@@ -500,8 +500,8 @@ static const func_info_t func_infos[] = {
F1("sys_getloadavg", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_DOUBLE),
#endif
#ifdef HAVE_GETTIMEOFDAY
- F1("microtime", MAY_BE_NULL | MAY_BE_DOUBLE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_LONG | MAY_BE_STRING),
- F1("gettimeofday", MAY_BE_NULL | MAY_BE_DOUBLE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG | MAY_BE_STRING),
+ F1("microtime", MAY_BE_NULL | MAY_BE_DOUBLE | MAY_BE_STRING),
+ F1("gettimeofday", MAY_BE_NULL | MAY_BE_DOUBLE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG),
#endif
#ifdef HAVE_GETRUSAGE
F1("getrusage", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG),