com php-src: Fix opcache optimizer info for time_nanosleep (again): ext/opcache/Optimizer/zend_func_info.c

From: Date: Tue, 03 Sep 2019 07:31:01 +0000
Subject: com php-src: Fix opcache optimizer info for time_nanosleep (again): ext/opcache/Optimizer/zend_func_info.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-108198@lists.php.net to get a copy of this message
Commit: 149588280b189c3021fb0f37edd4a26522d03cd1 Author: Tyson Andre <tysonandre775@hotmail.com> Mon, 2 Sep 2019 21:45:57 -0400 Committer: Nikita Popov <nikita.ppv@gmail.com> Tue, 3 Sep 2019 09:31:01 +0200 Parents: 2b061654bf098ad762fb348a243302326448990c Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=149588280b189c3021fb0f37edd4a26522d03cd1 Log: Fix opcache optimizer info for time_nanosleep (again) Fixes my earlier PR #4617 If I remember correctly, The F0 macro is used for return values that are guaranteed to not be reference counted. The F1 macro is used for return values that may have up to 1 reference (i.e. MAY_BE_RC1). I didn't notice that time_nanosleep needed to be F1 since it could return an array, and that array is reference counted. Bugs: https://bugs.php.net/4617 Changed paths: M ext/opcache/Optimizer/zend_func_info.c Diff: diff --git a/ext/opcache/Optimizer/zend_func_info.c b/ext/opcache/Optimizer/zend_func_info.c index be990ec..bf6e332 100644 --- a/ext/opcache/Optimizer/zend_func_info.c +++ b/ext/opcache/Optimizer/zend_func_info.c @@ -146,7 +146,7 @@ static const func_info_t func_infos[] = { F0("sleep", MAY_BE_FALSE | MAY_BE_LONG), F0("usleep", MAY_BE_NULL | MAY_BE_FALSE), #if HAVE_NANOSLEEP - F0("time_nanosleep", MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG), + F1("time_nanosleep", MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG), F0("time_sleep_until", MAY_BE_FALSE | MAY_BE_TRUE), #endif #if HAVE_STRPTIME

« previous php.cvs (#108198) next »