#46413 [NEW]: Weird examples in Unix manual pages
| From: | hannes dot magnusson at gmail dot com | Date: | Wed, 29 Oct 2008 08:59:08 +0000 |
| Subject: | #46413 [NEW]: Weird examples in Unix manual pages | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-1268@lists.php.net to get a copy of this message | ||
From: hannes dot magnusson at gmail dot com
Operating system: Linux
PHP version: Irrelevant
PHP Bug Type: Doc Build problem
Bug description: Weird examples in Unix manual pages
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 bug report at http://bugs.php.net/?id=46413&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46413&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46413&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46413&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46413&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46413&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=46413&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=46413&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=46413&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=46413&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=46413&r=support
Expected behavior: http://bugs.php.net/fix.php?id=46413&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=46413&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=46413&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46413&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46413&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46413&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=46413&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=46413&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=46413&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=46413&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=46413&r=mysqlcfg