X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_http_negotiate.c;h=cab0dd18dcd8c0a94c53727aebe4ec32a3e588e2;hb=aadfcd10e6c1c7b41fffde46411fce1679fc3b23;hp=b8f50f1105721a1de6c60d79424b77d3833d8c33;hpb=c5c580f24e24e8032a0554a2e39e38c496144bc2;p=m6w6%2Fext-http diff --git a/php_http_negotiate.c b/php_http_negotiate.c index b8f50f1..cab0dd1 100644 --- a/php_http_negotiate.c +++ b/php_http_negotiate.c @@ -6,12 +6,10 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2010, Michael Wallner | + | Copyright (c) 2004-2011, Michael Wallner | +--------------------------------------------------------------------+ */ -/* $Id: php_http_headers_api.h 300300 2010-06-09 07:29:35Z mike $ */ - #include "php_http.h" #include @@ -149,7 +147,7 @@ PHP_HTTP_API HashTable *php_http_negotiate(const char *value, HashTable *support if ((selected = neg(identifier, &quality, supported TSRMLS_CC))) { /* don't overwrite previously set with higher quality */ - if (!zend_hash_exists(Z_ARRVAL(array), selected, strlen(selected) + 1)) { + if (!zend_symtable_exists(Z_ARRVAL(array), selected, strlen(selected) + 1)) { add_assoc_double(&array, selected, quality); } }