#include "php_http_send_api.h"
#ifdef ZEND_ENGINE_2
+# include "zend_exceptions.h"
# include "php_http_exception_object.h"
#endif
#ifdef ZEND_ENGINE_2
char *message;
vspprintf(&message, 0, format, args);
- zend_throw_exception(http_exception_get_default(), message, code TSRMLS_CC);
+ zend_throw_exception(http_exception_get_for_code(code), message, code TSRMLS_CC);
#else
type = E_WARNING;
#endif
while (((e_ptr - encoded) - encoded_len) > 0) {
char *n_ptr;
size_t chunk_len = 0;
-
+
chunk_len = strtol(e_ptr, &n_ptr, 16);
-
+
if (n_ptr == e_ptr) {
/* don't fail on apperently not encoded data */
if (e_ptr == encoded) {