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

From: Date: Mon, 16 Nov 2009 19:26:27 +0000
Subject: #50193 [NEW]: Backslashes from newline tokens in example scripts are stripped
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-144682@lists.php.net to get a copy of this message
From: sixd@php.net Operating system: n/a PHP version: Irrelevant PHP Bug Type: Online Doc Editor problem Bug description: Backslashes from newline tokens in example scripts are stripped 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 bug report at http://bugs.php.net/?id=50193&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50193&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50193&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50193&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50193&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50193&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50193&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50193&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50193&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50193&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50193&r=support Expected behavior: http://bugs.php.net/fix.php?id=50193&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50193&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50193&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50193&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50193&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50193&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50193&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50193&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50193&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50193&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50193&r=mysqlcfg

« previous php.bugs (#144682) next »