php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #36213 Undocumented constant
Submitted: 2006-01-30 18:17 UTC Modified: 2006-02-08 16:44 UTC
From: gustavo@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2006-01-30 18:17 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-03 00:49 UTC] philip@php.net
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.

 [2006-02-08 16:44 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 00:01:34 2025 UTC