#46413 [Opn->Asn]: Weird examples in Unix manual pages
| From: | bjori@php.net | Date: | Wed, 29 Oct 2008 08:59:17 +0000 |
| Subject: | #46413 [Opn->Asn]: Weird examples in Unix manual pages | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-1269@lists.php.net to get a copy of this message | ||
ID: 46413
Updated by: bjori@php.net
Reported By: hannes dot magnusson at gmail dot com
-Status: Open
+Status: Assigned
Bug Type: Doc Build problem
Operating System: Linux
PHP Version: Irrelevant
-Assigned To:
+Assigned To: loudi
Previous Comments:
------------------------------------------------------------------------
[2008-10-29 08:59:08] hannes dot magnusson at gmail dot com
Description:
------------
Examples with echo "foo\n"; look weird in the manual output.
I assume \n" has some special meaning in the format as the source seems
fine.
Reproduce code:
---------------
pman php_sapi_name
Expected result:
----------------
<?php
$sapi_type = php_sapi_name();
if (substr($sapi_type, 0, 3) == 'cgi') {
echo "You are using CGI PHP\n";
} else {
echo "You are not using CGI PHP\n";
}
?>
Actual result:
--------------
<?php
$sapi_type = php_sapi_name();
if (substr($sapi_type, 0, 3) == cgi) {
echo "You are using CGI PHP0;
} else {
echo "You are not using CGI PHP0;
}
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46413&edit=1