#50193 [Opn]: Backslashes from newline tokens in example scripts are stripped

From: Date: Mon, 30 Nov 2009 15:34:36 +0000
Subject: #50193 [Opn]: Backslashes from newline tokens in example scripts are stripped
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3368@lists.php.net to get a copy of this message
ID: 50193 Updated by: philip@php.net Reported By: sixd@php.net Status: Open Bug Type: Online Doc Editor problem Operating System: n/a PHP Version: Irrelevant New Comment: It updates via cron three times daily, so, is up to date. At some point we can wipe it clean and go through the install process from scratch, if you feel this might help. It should be okay since it's only really been used for testing thus far. Previous Comments: ------------------------------------------------------------------------ [2009-11-30 11:28:42] yannick@php.net I just try with oci_fetch_all witch contains some "\n" in example & in diff panel. I have modify this file and the result (.new file) contains always "\n". No problem with the diff too... Philip, could you try to update the online version with the SVN one to see if this bug haven't been solve with it ? ------------------------------------------------------------------------ [2009-11-30 07:35:00] philip@php.net Any file with \n in the examples, which might be: echo "FOO\n"; I think this bug report was via the oci_execute() docs. It created a file named oci-execute.xml.new with stripped "\n" as "n" so that the above turns to: echo "FOOn"; The diff within the editor itself also shows the stripped versions. ------------------------------------------------------------------------ [2009-11-30 00:19:14] yannick@php.net Hi, Could you please give me witch file your example is from ? ------------------------------------------------------------------------ [2009-11-16 19:26:26] sixd@php.net Description: ------------ With the Online Editor, a diff is showing that any backslash used for "\n" in example strings is stripped. Philip reports that a ".new" on disk has the backslashes missing. However, the file in the tab shows the backslashes. Actual result: -------------- 68 68 oci_execute($statement); 69 69 70 echo "<table border='1'>\n"; 70 echo "<table border='1'>n"; 71 71 while ($row = oci_fetch_array($statement, OCI_ASSOC+OCI_RETURN_NULLS)) { 72 echo "<tr>\n"; 72 echo "<tr>n"; 73 73 foreach ($row as $item) { 74 echo " <td>".($item!==null?htmlentities($item, ENT_QUOTES):" ")."</td>\n"; 74 echo " <td>".($item!==null?htmlentities($item, ENT_QUOTES):"")."</td>n"; 75 75 } 76 echo "</tr>\n"; 76 echo "</tr>n"; 77 77 } 78 echo "</table>\n"; 78 echo "</table>n"; 79 79 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50193&edit=1

« previous php.doc.bugs (#3368) next »