- a stream wrapper that defeats the idea of streams is not really useful, so remove...
[m6w6/ext-http] / php_http_std_defs.h
index 558a8ec8d5b53a6fe0e2c02e28d29597ad08fb76..4b5f44d7b149143a7b8125ee654067afd9f465da 100644 (file)
@@ -96,7 +96,7 @@ typedef int STATUS;
 #define HTTP_DEFAULT_CACHECONTROL "private, must-revalidate, max-age=0"
 
 /* max URL length */
-#define HTTP_URL_MAXLEN 2048
+#define HTTP_URL_MAXLEN 4096
 #define HTTP_URI_MAXLEN HTTP_URL_MAXLEN
 
 /* def URL arg separator */
@@ -141,6 +141,12 @@ typedef int STATUS;
                        zend_hash_get_current_key_ex(hash, &strkey, NULL, &numkey, 0, &pos) != HASH_KEY_NON_EXISTANT; \
                        zend_hash_move_forward_ex(hash, &pos)) \
 
+#define FOREACH_KEYLEN(pos, array, strkey, keylen, numkey) FOREACH_HASH_KEYLEN(pos, Z_ARRVAL_P(array), strkey, keylen, numkey)
+#define FOREACH_HASH_KEYLEN(pos, hash, strkey, keylen, numkey) \
+       for (   zend_hash_internal_pointer_reset_ex(hash, &pos); \
+                       zend_hash_get_current_key_ex(hash, &strkey, &keylen, &numkey, 0, &pos) != HASH_KEY_NON_EXISTANT; \
+                       zend_hash_move_forward_ex(hash, &pos)) \
+
 #define FOREACH_KEYVAL(pos, array, strkey, numkey, val) FOREACH_HASH_KEYVAL(pos, Z_ARRVAL_P(array), strkey, numkey, val)
 #define FOREACH_HASH_KEYVAL(pos, hash, strkey, numkey, val) \
        for (   zend_hash_internal_pointer_reset_ex(hash, &pos); \
@@ -204,7 +210,6 @@ typedef int STATUS;
                name## _ce = zend_register_internal_class_ex(&ce, parent, NULL TSRMLS_CC); \
                name## _ce->ce_flags |= flags;  \
                memcpy(& name## _handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); \
-               zend_hash_init(& name## _ce->constants_table, 0, NULL, ZVAL_INTERNAL_PTR_DTOR, 1); \
                name## _declare_default_properties(); \
        }