[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-bugs
Subject:    [DOC-BUGS] #46413 [Opn->Asn]: Weird examples in Unix manual pages
From:       bjori () php ! net
Date:       2008-10-29 8:59:17
Message-ID: 200810290859.m9T8xHm3087734 () y1 ! php ! net
[Download RAW message or body]

 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


-- 
PHP Documentation Bugs Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic