#46413 [Asn->Csd]: Weird examples in Unix manual pages

From: Date: Wed, 29 Oct 2008 11:20:53 +0000
Subject: #46413 [Asn->Csd]: Weird examples in Unix manual pages
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1272@lists.php.net to get a copy of this message
ID: 46413 Updated by: loudi@php.net Reported By: hannes dot magnusson at gmail dot com -Status: Assigned +Status: Closed Bug Type: Doc Build problem Operating System: Linux PHP Version: Irrelevant Assigned To: loudi New Comment: This bug has been fixed in CVS. Since the websites are not directly updated from the CVS server, the fix might need some time to spread across the globe to all mirror sites, including PHP.net itself. Thank you for the report, and for helping us make PHP.net better. 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

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