summaryrefslogtreecommitdiff
path: root/zend/sapi.cpp
blob: 79393f70e4cc7bc6c36bdf752539d5f405e9a292 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
 *  Sapi.cpp
 *
 *  This file holds the implementation for the Php::sapi_name() function
 *
 *  @author Toon Schoenmakers <toon.schoenmakers@copernica.com>
 */

/**
 *  Dependencies
 */
#include "includes.h"

/**
 *  Open PHP namespace
 */
namespace Php {

/**
 *  Retrieve the sapi name we're running on
 *  @return  const char*
 */
const char *sapi_name()
{
    return sapi_module.name;
}

/**
 *  End of namespace
 */
}