|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patcheslibxslt_54440.patch (last revision 2011-04-03 22:32 UTC by [email protected])Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-04-01 11:45 UTC] [email protected]
[2011-04-04 00:32 UTC] [email protected]
[2011-04-04 00:36 UTC] [email protected]
[2011-04-09 20:32 UTC] [email protected]
-Summary: stream_context_set_default() should publish
the default context to everybody
+Summary: libxml extension ignores default context
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: cataphract
[2011-04-09 20:32 UTC] [email protected]
[2012-03-29 13:48 UTC] [email protected]
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Jan 01 05:00:01 2026 UTC |
Description: ------------ stream_context_set_default() doesn't publish the context to all PHP extension. Example is ext/libxml that doesn't recognize the context. Test script: --------------- stream_context_set_default(array('http'=>array('proxy'=>'my_proxy_url'))); $x = simplexml_load_file('http://some_resource'); Expected result: ---------------- The resource gets loaded through the HTTP proxy Actual result: -------------- The resource is not loaded through the HTTP proxy. For this to work, we have to use : $ctx = stream_context_create(array('http'=>array('proxy'=>'my_proxy_url'))); libxml_set_streams_context($ctx); // userland manual bind $x = simplexml_load_file('http://some_resource');