com php-src: Fix bug #75677: Drop fastcall attribute on variadic function: NEWS Zend/zend_hash.c Zend/zend_hash.h

From: Date: Fri, 15 Dec 2017 20:56:08 +0000
Subject: com php-src: Fix bug #75677: Drop fastcall attribute on variadic function: NEWS Zend/zend_hash.c Zend/zend_hash.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-100602@lists.php.net to get a copy of this message
Commit: 72ec23d8233ac9a2071f991752cff55febb167d5 Author: Li-Wen Hsu <lwhsu@lwhsu.org> Thu, 14 Dec 2017 03:19:43 +0800 Committer: Nikita Popov <nikita.ppv@gmail.com> Fri, 15 Dec 2017 21:56:08 +0100 Parents: 6b1a1771b480d146ae61fa33dff359068146e091 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=72ec23d8233ac9a2071f991752cff55febb167d5 Log: Fix bug #75677: Drop fastcall attribute on variadic function Fastcall generally doesn't make sense on variadic functions. For clang in particular this eliminates a "fastcall calling convention ignored on variadic function" warning. Bugs: https://bugs.php.net/75677 Changed paths: M NEWS M Zend/zend_hash.c M Zend/zend_hash.h Diff: diff --git a/NEWS b/NEWS index 258446f..2441f28 100644 --- a/NEWS +++ b/NEWS @@ -23,6 +23,8 @@ PHP NEWS properties). (pmmaga) . Fixed bug #63911 (identical trait methods raise errors during composition). (pmmaga) + . Fixed bug #75677 (Clang ignores fastcall calling convention on variadic + function). (Li-Wen Hsu) - BCMath: . Fixed bug #66364 (BCMath bcmul ignores scale parameter). (cmb) diff --git a/Zend/zend_hash.c b/Zend/zend_hash.c index ec2141e..29be2ca 100644 --- a/Zend/zend_hash.c +++ b/Zend/zend_hash.c @@ -1615,7 +1615,7 @@ ZEND_API void ZEND_FASTCALL zend_hash_apply_with_argument(HashTable *ht, apply_f } -ZEND_API void ZEND_FASTCALL zend_hash_apply_with_arguments(HashTable *ht, apply_func_args_t apply_func, int num_args, ...) +ZEND_API void zend_hash_apply_with_arguments(HashTable *ht, apply_func_args_t apply_func, int num_args, ...) { uint32_t idx; Bucket *p; diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h index 852ec1c..6a37e8a 100644 --- a/Zend/zend_hash.h +++ b/Zend/zend_hash.h @@ -154,7 +154,7 @@ ZEND_API void ZEND_FASTCALL zend_hash_graceful_destroy(HashTable *ht); ZEND_API void ZEND_FASTCALL zend_hash_graceful_reverse_destroy(HashTable *ht); ZEND_API void ZEND_FASTCALL zend_hash_apply(HashTable *ht, apply_func_t apply_func); ZEND_API void ZEND_FASTCALL zend_hash_apply_with_argument(HashTable *ht, apply_func_arg_t apply_func, void *); -ZEND_API void ZEND_FASTCALL zend_hash_apply_with_arguments(HashTable *ht, apply_func_args_t apply_func, int, ...); +ZEND_API void zend_hash_apply_with_arguments(HashTable *ht, apply_func_args_t apply_func, int, ...); /* This function should be used with special care (in other words, * it should usually not be used). When used with the ZEND_HASH_APPLY_STOP

« previous php.cvs (#100602) next »