com php-src: Fix a typo in opcache func info for "get_parre nt_class": ext/opcache/Optimizer/zend_func_info.c

From: Date: Tue, 11 Jun 2019 06:59:12 +0000
Subject: com php-src: Fix a typo in opcache func info for "get_parre nt_class": ext/opcache/Optimizer/zend_func_info.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106639@lists.php.net to get a copy of this message
Commit: 98b487e244a81fa02d1ca98b06657e3d88dced02 Author: Tyson Andre <tysonandre775@hotmail.com> Sun, 9 Jun 2019 15:13:44 -0400 Committer: Joe Watkins <krakjoe@php.net> Tue, 11 Jun 2019 08:59:12 +0200 Parents: 1e265174ed8b361c2d8b9c050f9e3b1f7034acc9 Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=98b487e244a81fa02d1ca98b06657e3d88dced02 Log: Fix a typo in opcache func info for "get_parrent_class" This should only have one r. http://php.net/get_parent_class mentions that it returns string|false Also, I'm not 100% sure if this is right - should this include MAY_BE_NULL to handle the case of too many parameters? (then again, get_called_class() also returns null in the global scope) ``` php > var_export(get_parent_class(2,3)); Warning: get_parent_class() expects at most 1 parameter, 2 given in php shell code on line 1 NULL ``` 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 1355e1f..541cdf0 100644 --- a/ext/opcache/Optimizer/zend_func_info.c +++ b/ext/opcache/Optimizer/zend_func_info.c @@ -234,7 +234,7 @@ static const func_info_t func_infos[] = { FC("defined", zend_b_s_info), // TODO: inline FN("get_class", MAY_BE_FALSE | MAY_BE_STRING), FN("get_called_class", MAY_BE_FALSE | MAY_BE_STRING), - FN("get_parrent_class", MAY_BE_FALSE | MAY_BE_STRING), + FN("get_parent_class", MAY_BE_FALSE | MAY_BE_STRING | MAY_BE_NULL), F0("is_subclass_of", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE), // TODO: inline F0("is_a", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE), // TODO: inline F1("get_class_vars", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF),

« previous php.cvs (#106639) next »