#50193 [Opn]: Backslashes from newline tokens in example scripts are stripped
| From: | philip@php.net | Date: | Mon, 30 Nov 2009 07:35:00 +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-3356@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:
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.
Previous Comments:
------------------------------------------------------------------------
[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