--- cvs-basic_functions.c Mon Jun 26 15:19:54 2000 +++ basic_functions.c Mon Jun 26 15:22:57 2000 @@ -122,6 +122,7 @@ PHP_FE(phpcredits, NULL) PHP_FE(php_logo_guid, NULL) PHP_FE(zend_logo_guid, NULL) + PHP_FE(sapi_module_name, NULL) PHP_FE(strnatcmp, NULL) PHP_FE(strnatcasecmp, NULL) --- cvs-info.h Mon Jun 26 15:19:29 2000 +++ info.h Mon Jun 26 15:20:55 2000 @@ -63,6 +63,7 @@ PHP_FUNCTION(phpcredits); PHP_FUNCTION(php_logo_guid); PHP_FUNCTION(zend_logo_guid); +PHP_FUNCTION(sapi_module_name); PHPAPI void php_print_info(int flag); PHPAPI void php_print_credits(int flag); PHPAPI void php_print_style(void); --- cvs-info.c Mon Jun 26 15:19:33 2000 +++ info.c Mon Jun 26 15:22:33 2000 @@ -638,6 +638,18 @@ RETURN_STRINGL(ZEND_LOGO_GUID, sizeof(ZEND_LOGO_GUID)-1, 1); } +/* {{{ proto string sapi_module_name(void) + Return the current SAPI module name */ +PHP_FUNCTION(sapi_module_name) +{ + if(sapi_module.name) + RETURN_STRING(sapi_module.name,1); + else + RETURN_FALSE; +} + +/* }}} */ + /* * Local variables: * tab-width: 4