php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46413 Weird examples in Unix manual pages
Submitted: 2008-10-29 08:59 UTC Modified: 2008-10-29 11:20 UTC
From: hannes dot magnusson at gmail dot com Assigned: loudi (profile)
Status: Closed Package: Doc Build problem
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
46 - 28 = ?
Subscribe to this entry?

 
 [2008-10-29 08:59 UTC] 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;
}
?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-29 11:20 UTC] loudi@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 02:01:30 2024 UTC