diff options
Diffstat (limited to 'ext/standard/info.c')
-rw-r--r-- | ext/standard/info.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/ext/standard/info.c b/ext/standard/info.c index 1e58b31a0f..bb3c71d9b5 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -1,7 +1,5 @@ /* +----------------------------------------------------------------------+ - | PHP Version 7 | - +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | @@ -770,7 +768,7 @@ PHPAPI ZEND_COLD void php_print_info(int flag) } if (flag & PHP_INFO_GENERAL) { - char *zend_version = get_zend_version(); + const char *zend_version = get_zend_version(); char temp_api[10]; php_uname = php_get_uname('a'); @@ -1245,7 +1243,7 @@ void register_phpinfo_constants(INIT_FUNC_ARGS) } /* }}} */ -/* {{{ proto void phpinfo([int what]) +/* {{{ proto bool phpinfo([int what]) Output a page of useful information about PHP and the current request */ PHP_FUNCTION(phpinfo) { @@ -1266,7 +1264,7 @@ PHP_FUNCTION(phpinfo) /* }}} */ -/* {{{ proto string phpversion([string extension]) +/* {{{ proto string|false phpversion([string extension]) Return the current PHP version */ PHP_FUNCTION(phpversion) { @@ -1291,7 +1289,7 @@ PHP_FUNCTION(phpversion) } /* }}} */ -/* {{{ proto void phpcredits([int flag]) +/* {{{ proto bool phpcredits([int flag]) Prints the list of people who've contributed to the PHP project */ PHP_FUNCTION(phpcredits) { @@ -1307,7 +1305,7 @@ PHP_FUNCTION(phpcredits) } /* }}} */ -/* {{{ proto string php_sapi_name(void) +/* {{{ proto string|false php_sapi_name(void) Return the current SAPI module name */ PHP_FUNCTION(php_sapi_name) { @@ -1324,7 +1322,7 @@ PHP_FUNCTION(php_sapi_name) /* }}} */ -/* {{{ proto string php_uname(void) +/* {{{ proto string php_uname([ string $mode = "a"]) Return information about the system PHP was built on */ PHP_FUNCTION(php_uname) { @@ -1341,7 +1339,7 @@ PHP_FUNCTION(php_uname) /* }}} */ -/* {{{ proto string php_ini_scanned_files(void) +/* {{{ proto string|false php_ini_scanned_files(void) Return comma-separated string of .ini files parsed from the additional ini dir */ PHP_FUNCTION(php_ini_scanned_files) { @@ -1357,7 +1355,7 @@ PHP_FUNCTION(php_ini_scanned_files) } /* }}} */ -/* {{{ proto string php_ini_loaded_file(void) +/* {{{ proto string|false php_ini_loaded_file(void) Return the actual loaded ini filename */ PHP_FUNCTION(php_ini_loaded_file) { |