build and file maintenance
[m6w6/ext-http] / php_http_negotiate.c
index 43b4236916c543cece93a13bd0babfa15e128fce..cab0dd18dcd8c0a94c53727aebe4ec32a3e588e2 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: php_http_headers_api.h 300300 2010-06-09 07:29:35Z mike $ */
-
 #include "php_http.h"
 
+#include <ext/standard/php_string.h>
+
 #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);
                                        }
                                }