- release 1.6.0RC1
[m6w6/ext-http] / http_request_info.c
index 69770ae3cc5801af6828237eb91d2d5bd0eafb47..1d12f36d397f0e26ee05f2c0dbd44f310c251844 100644 (file)
@@ -6,7 +6,7 @@
     | 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>            |
     +--------------------------------------------------------------------+
 */
 
@@ -125,7 +125,7 @@ PHP_HTTP_API void _http_request_info(http_request *request, HashTable *info)
        }
 #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);
 }
 /* }}} */