projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
208f820
)
avoid COW violation
author
Michael Wallner
<mike@php.net>
Mon, 30 Jan 2017 11:41:03 +0000
(12:41 +0100)
committer
Michael Wallner
<mike@php.net>
Mon, 30 Jan 2017 11:41:03 +0000
(12:41 +0100)
src/php_http_negotiate.h
patch
|
blob
|
history
diff --git
a/src/php_http_negotiate.h
b/src/php_http_negotiate.h
index 44f173589ea3369c54c87466fad1e7b9ac150472..07e556431831dd5630db88bfc0443becbcf566da 100644
(file)
--- a/
src/php_http_negotiate.h
+++ b/
src/php_http_negotiate.h
@@
-74,9
+74,10
@@
static inline HashTable *php_http_negotiate_content_type(HashTable *supported, p
#define PHP_HTTP_DO_NEGOTIATE_DEFAULT(supported) \
{ \
zval *value; \
+ HashPosition pos; \
\
- zend_hash_internal_pointer_reset
((supported)
); \
- if ((value = zend_hash_get_current_data
((supported)
))) { \
+ zend_hash_internal_pointer_reset
_ex((supported), &pos
); \
+ if ((value = zend_hash_get_current_data
_ex((supported), &pos
))) { \
RETVAL_ZVAL(value, 1, 0); \
} else { \
RETVAL_NULL(); \