}
/* }}} */
+#if PHP_MAJOR_VERSION == 4 && PHP_MINOR_VERSION == 3 && PHP_RELEASE_VERSION < 10
+# define php_url_parse_ex(u, l) php_url_parse(u)
+#endif
+
/* {{{ proto string http_build_url([mixed url[, mixed parts[, int flags = HTTP_URL_REPLACE[, array &new_url]]]])
*
* Build an URL.
NO_ARGS;
array_init(return_value);
- http_get_request_headers(return_value);
+ http_get_request_headers(Z_ARRVAL_P(return_value));
}
/* }}} */
}
/* }}} */
-#include "zend_exceptions.h"
PHP_FUNCTION(http_test)
{
- int i;
-
- for (i = 0; i < 3; ++i) {
- http_try {
- fprintf(stderr, "Throwing Ex %d\n", i);
- http_error_ex(HE_THROW, HTTP_E_RUNTIME, "Ex %d", i);
- http_try {
- fprintf(stderr, "Throwing SubEx %d\n", i);
- http_error_ex(HE_THROW, HTTP_E_RUNTIME, "SubEx %d", i);
- } http_catch(ZEND_EXCEPTION_GET_DEFAULT());
- } http_catch(ZEND_EXCEPTION_GET_DEFAULT());
- }
- http_final(ZEND_EXCEPTION_GET_DEFAULT());
}
/*