com php-src: Drop unused param in zend_parse_arg_class_ name_or_obj(): Zend/zend_API.h

From: Date: Fri, 17 Jul 2020 15:00:27 +0000
Subject: com php-src: Drop unused param in zend_parse_arg_class_ name_or_obj(): Zend/zend_API.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-112214@lists.php.net to get a copy of this message
Commit: fa60f57be44a98b1b06218588fe0cc0ee5939bb2 Author: George Peter Banyard <girgias@php.net> Thu, 16 Jul 2020 21:00:28 +0200 Parents: 4890bf19aa319b8f793d8ebc73d094c3bdeb3d67 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=fa60f57be44a98b1b06218588fe0cc0ee5939bb2 Log: Drop unused param in zend_parse_arg_class_name_or_obj() Changed paths: M Zend/zend_API.h Diff: diff --git a/Zend/zend_API.h b/Zend/zend_API.h index 7876b48e55..67a3fa9d16 100644 --- a/Zend/zend_API.h +++ b/Zend/zend_API.h @@ -1395,7 +1395,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_argument_value_error(uint32_t arg_num #define Z_PARAM_CLASS_NAME_OR_OBJ_EX(dest, allow_null) \ Z_PARAM_PROLOGUE(0, 0); \ - if (UNEXPECTED(!zend_parse_arg_class_name_or_obj(_arg, &dest, _i, allow_null))) { \ + if (UNEXPECTED(!zend_parse_arg_class_name_or_obj(_arg, &dest, allow_null))) { \ _expected_type = allow_null ? Z_EXPECTED_CLASS_NAME_OR_OBJECT_OR_NULL : Z_EXPECTED_CLASS_NAME_OR_OBJECT; \ _error_code = ZPP_ERROR_WRONG_ARG; \ break; \ @@ -1985,7 +1985,7 @@ static zend_always_inline int zend_parse_arg_str_or_long(zval *arg, zend_string } static zend_always_inline int zend_parse_arg_class_name_or_obj( - zval *arg, zend_class_entry **destination, int num, int allow_null + zval *arg, zend_class_entry **destination, int allow_null ) { if (EXPECTED(Z_TYPE_P(arg) == IS_STRING)) { *destination = zend_lookup_class(Z_STR_P(arg));

« previous php.cvs (#112214) next »