#include "php_http_api.h"
-#include <ext/standard/php_string.h>
-
static int php_http_negotiate_sort(const void *a, const void *b TSRMLS_DC)
{
zval result, *first, *second;
q = Z_DVAL_P(tmp);
zval_ptr_dtor(&tmp);
+
+ if (!q) {
+ STR_FREE(key.str);
+ continue;
+ }
} else {
q = 1.0 - ++i / 100.0;
}