nlopess         Wed Jan 24 11:08:02 2007 UTC

  Modified files:              
    /phpdoc/en/reference/strings/functions      html-entity-decode.xml 
  Log:
  fix #40155: fix example
  
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/strings/functions/html-entity-decode.xml?r1=1.11&r2=1.12&diff_format=u
Index: phpdoc/en/reference/strings/functions/html-entity-decode.xml
diff -u phpdoc/en/reference/strings/functions/html-entity-decode.xml:1.11 
phpdoc/en/reference/strings/functions/html-entity-decode.xml:1.12
--- phpdoc/en/reference/strings/functions/html-entity-decode.xml:1.11   Tue Sep 
 6 08:27:42 2005
+++ phpdoc/en/reference/strings/functions/html-entity-decode.xml        Wed Jan 
24 11:08:02 2007
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.11 $ -->
+<!-- $Revision: 1.12 $ -->
 <!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
   <refentry id="function.html-entity-decode">
    <refnamediv>
@@ -85,7 +85,7 @@
 {
     // replace numeric entities
     $string = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', 
$string);
-    $string = preg_replace('~&#([0-9]+);~e', 'chr(\\1)', $string);
+    $string = preg_replace('~&#([0-9]+);~e', 'chr("\\1")', $string);
     // replace literal entities
     $trans_tbl = get_html_translation_table(HTML_ENTITIES);
     $trans_tbl = array_flip($trans_tbl);

Reply via email to