| modification, are permitted provided that the conditions mentioned |
| in the accompanying LICENSE file are met. |
+--------------------------------------------------------------------+
- | Copyright (c) 2004-2006, Michael Wallner <mike@php.net> |
+ | Copyright (c) 2004-2007, Michael Wallner <mike@php.net> |
+--------------------------------------------------------------------+
*/
#define HTTP_WANT_CURL
#include "php_http.h"
+#ifdef HTTP_HAVE_CURL
#include "php_http_request_api.h"
/* {{{ void http_request_info(http_request *, HashTable *) */
}
#endif
/* END */
- add_assoc_string_ex(&array, "error", sizeof("error"), request->_error, 1);
+ add_assoc_string_ex(&array, "error", sizeof("error"), http_request_storage_get(request->ch)->errorbuffer, 1);
}
/* }}} */
+#endif /* HTTP_HAVE_CURL */
+
/*
* Local variables:
* tab-width: 4