php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #46488 get pathname of sapi
Submitted: 2008-11-05 01:56 UTC Modified: 2015-06-21 13:05 UTC
From: louis at steelbytes dot com Assigned: danack (profile)
Status: Closed Package: *General Issues
PHP Version: 5.2.6 OS: windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: louis at steelbytes dot com
New email:
PHP Version: OS:

 

 [2008-11-05 01:56 UTC] louis at steelbytes dot com
Description:
------------
I'd like to get the full path name of the current sapi (cgi/cli/isapi/etc).


Reproduce code:
---------------
n/a

Expected result:
----------------
n/a

Actual result:
--------------
n/a

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-06-21 13:05 UTC] danack@php.net
-Status: Open +Status: Closed -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: danack
 [2015-06-21 13:05 UTC] danack@php.net
The name of the SAPI can be retrieved with the function php_sapi_name():

http://php.net/manual/en/function.php-sapi-name.php
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Nov 20 12:00:01 2025 UTC