#36213 [Opn->Ver]: Undocumented constant
| From: | philip@php.net | Date: | Thu, 02 Feb 2006 23:49:08 +0000 |
| Subject: | #36213 [Opn->Ver]: Undocumented constant | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969371799@lists.php.net to get a copy of this message | ||
ID: 36213
Updated by: philip@php.net
Reported By: gustavo@php.net
-Status: Open
+Status: Verified
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
The php_sapi_name() documention should also mention this constant, and
the upcoming PHP_SAPI docs should mention the function as the function
has been available much longer.
Previous Comments:
------------------------------------------------------------------------
[2006-01-30 18:17:18] gustavo@php.net
Description:
------------
PHP_SAPI is a constant defined by PHP, but it is not documented in
http://php.net/reserved.constants
Reproduce code:
---------------
Try this:
<?php
echo PHP_SAPI;
?>
You will get a string, but won't find PHP_SAPI in
<http://php.net/reserved.constants>.
By the way, it's mentioned in <http://php.net/features.commandline>.
Expected result:
----------------
For example:
PHP_SAPI
Available since PHP 5.0.0.
Actual result:
--------------
Undocumented constant.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36213&edit=1