X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_http_negotiate.c;h=cab0dd18dcd8c0a94c53727aebe4ec32a3e588e2;hb=aadfcd10e6c1c7b41fffde46411fce1679fc3b23;hp=43b4236916c543cece93a13bd0babfa15e128fce;hpb=d3485e3b28336153dca690e872ffe1ddc60fedd2;p=m6w6%2Fext-http diff --git a/php_http_negotiate.c b/php_http_negotiate.c index 43b4236..cab0dd1 100644 --- a/php_http_negotiate.c +++ b/php_http_negotiate.c @@ -6,14 +6,14 @@ | 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 + #ifndef PHP_HTTP_DBG_NEG # define PHP_HTTP_DBG_NEG 0 #endif @@ -147,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); } }