X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=php_http_negotiate.c;h=7fb7c568396e9d8e62d7ebcf976a6437103f2456;hb=4062420a5e5d301db4a3d820be881e7675a242e1;hp=b8f50f1105721a1de6c60d79424b77d3833d8c33;hpb=e76f27074a23b1cf83fdd81f97a5c767399225a6;p=m6w6%2Fext-http diff --git a/php_http_negotiate.c b/php_http_negotiate.c index b8f50f1..7fb7c56 100644 --- a/php_http_negotiate.c +++ b/php_http_negotiate.c @@ -149,7 +149,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); } }