vrana           Fri Jul 22 08:37:54 2005 EDT

  Modified files:              
    /phpdoc/en/reference/simplexml/functions    simplexml-load-file.xml 
  Log:
  URIs are unescaped (bug #33804)
  
http://cvs.php.net/diff.php/phpdoc/en/reference/simplexml/functions/simplexml-load-file.xml?r1=1.9&r2=1.10&ty=u
Index: phpdoc/en/reference/simplexml/functions/simplexml-load-file.xml
diff -u phpdoc/en/reference/simplexml/functions/simplexml-load-file.xml:1.9 
phpdoc/en/reference/simplexml/functions/simplexml-load-file.xml:1.10
--- phpdoc/en/reference/simplexml/functions/simplexml-load-file.xml:1.9 Mon Feb 
14 13:01:02 2005
+++ phpdoc/en/reference/simplexml/functions/simplexml-load-file.xml     Fri Jul 
22 08:37:54 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.9 $ -->
+<!-- $Revision: 1.10 $ -->
   <refentry id='function.simplexml-load-file'>
    <refnamediv>
     <refname>simplexml_load_file</refname>
@@ -32,6 +32,15 @@
      <parameter>options</parameter> parameter to specify <link
       linkend="libxml.constants">additional Libxml parameters</link>.
     </para>
+    <note>
+     <para>
+      Libxml 2 unescapes the URI, so if you want to pass e.g.
+      <literal>b&amp;c</literal> as the URI parameter <literal>a</literal>,
+      you have to call
+      <literal>simplexml_load_file(rawurlencode('http://example.com/?a=' .
+      urlencode('b&amp;c')))</literal>.
+     </para>
+    </note>
     <para>
      <example>
       <title>Interpret an XML document</title>

Reply via email to