com php-src: Fix typo in opcache function flag info (mage->image): ext/opcache/Optimizer/zend_func_info.c

From: Date: Tue, 11 Jun 2019 07:08:23 +0000
Subject: com php-src: Fix typo in opcache function flag info (mage->image): ext/opcache/Optimizer/zend_func_info.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106644@lists.php.net to get a copy of this message
Commit: 5c8b702e77e971f1d2f87c3e3fa694216eec284b Author: Tyson Andre <tysonandre775@hotmail.com> Sun, 9 Jun 2019 16:20:20 -0400 Committer: Joe Watkins <krakjoe@php.net> Tue, 11 Jun 2019 09:08:23 +0200 Parents: b921564a35ec27b516bf2b36463a4143e450b230 Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5c8b702e77e971f1d2f87c3e3fa694216eec284b Log: Fix typo in opcache function flag info (mage->image) ext/gd/gd.c seems to return null for wrong parameter count, false for error, and long otherwise. See https://php.net/imagecolorallocate In php 8.0, the MAY_BE_NULL can probably be removed. 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 ee1445f..02b0b7b 100644 --- a/ext/opcache/Optimizer/zend_func_info.c +++ b/ext/opcache/Optimizer/zend_func_info.c @@ -1544,7 +1544,7 @@ static const func_info_t func_infos[] = { F0("imagegd", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE), F0("imagegd2", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE), F0("imagedestroy", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE), - F0("magecolorallocate", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG), + F0("imagecolorallocate", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG), F0("imagepalettecopy", MAY_BE_NULL | MAY_BE_FALSE), F0("imagecolorat", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG), F0("imagecolorclosest", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),

« previous php.cvs (#106644) next »