vrana Wed Mar 2 03:42:35 2005 EDT
Modified files:
/phpdoc/en/appendices wrappers.xml
Log:
Headers are in wrapper_data (spotted by Ondrej Zizka)
http://cvs.php.net/diff.php/phpdoc/en/appendices/wrappers.xml?r1=1.48&r2=1.49&ty=u
Index: phpdoc/en/appendices/wrappers.xml
diff -u phpdoc/en/appendices/wrappers.xml:1.48
phpdoc/en/appendices/wrappers.xml:1.49
--- phpdoc/en/appendices/wrappers.xml:1.48 Sun Dec 26 17:36:52 2004
+++ phpdoc/en/appendices/wrappers.xml Wed Mar 2 03:42:34 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.48 $ -->
+<!-- $Revision: 1.49 $ -->
<appendix id="wrappers">
<title>List of Supported Protocols/Wrappers</title>
<para>
@@ -134,7 +134,8 @@
/* Prior to PHP 4.3.0 use $http_response_header
instead of stream_get_meta_data() */
-foreach(stream_get_meta_data($fp) as $response) {
+$meta_data = stream_get_meta_data($fp);
+foreach($meta_data['wrapper_data'] as $response) {
/* Were we redirected? */
if (substr(strtolower($response), 0, 10) == 'location: ') {