|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-10-29 11:20 UTC] loudi@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 06:00:02 2025 UTC |
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; } ?>