add php_ini_loaded_file
Since we don't support ini files, returning FALSE seems within the bounds of this function.
Esse commit está contido em:
@@ -664,6 +664,19 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "php_ini_loaded_file",
|
||||
"desc": "Retrieve a path to the loaded php.ini file.",
|
||||
"flags": [
|
||||
"HasDocComment"
|
||||
],
|
||||
"return": {
|
||||
"type": "Variant",
|
||||
"desc": "Check if a php.ini file is loaded, and retrieve its path."
|
||||
},
|
||||
"args": [
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "php_ini_scanned_files",
|
||||
"desc": "php_ini_scanned_files() returns a comma-separated list of configuration files parsed after php.ini. These files are found in a directory defined by the --with-config-file-scan-dir option which is set during compilation.\n\nThe returned configuration files also include the path as declared in the --with-config-file-scan-dir option.",
|
||||
@@ -966,4 +979,4 @@
|
||||
],
|
||||
"classes": [
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -704,6 +704,10 @@ int64_t f_memory_get_usage(bool real_usage /* = false */) {
|
||||
return (int64_t)Process::GetProcessRSS(Process::GetProcessId()) * 1024 * 1024;
|
||||
}
|
||||
|
||||
Variant f_php_ini_loaded_file() {
|
||||
return false;
|
||||
}
|
||||
|
||||
String f_php_ini_scanned_files() {
|
||||
throw NotSupportedException(__func__, "not using ini");
|
||||
}
|
||||
|
||||
@@ -62,6 +62,7 @@ String f_ini_set(CStrRef varname, CStrRef newvalue);
|
||||
int64_t f_memory_get_allocation();
|
||||
int64_t f_memory_get_peak_usage(bool real_usage = false);
|
||||
int64_t f_memory_get_usage(bool real_usage = false);
|
||||
Variant f_php_ini_loaded_file();
|
||||
String f_php_ini_scanned_files();
|
||||
String f_php_logo_guid();
|
||||
String f_php_sapi_name();
|
||||
|
||||
@@ -11487,6 +11487,11 @@ const char *g_class_map[] = {
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
(const char *)0x10006040, "php_ini_loaded_file", "", (const char*)0, (const char*)0,
|
||||
"/**\n * ( excerpt from http://php.net/manual/en/function.php-ini-loaded-file.php\n * )\n *\n * Retrieve a path to the loaded php.ini file.\n *\n * @return mixed Check if a php.ini file is loaded, and retrieve its\n * path.\n */",
|
||||
(const char *)0xffffffff /* KindOfUnknown: $t: Variant */, NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
(const char *)0x10006040, "php_ini_scanned_files", "", (const char*)0, (const char*)0,
|
||||
"/**\n * ( excerpt from\n * http://php.net/manual/en/function.php-ini-scanned-files.php )\n *\n * php_ini_scanned_files() returns a comma-separated list of configuration\n * files parsed after php.ini. These files are found in a directory defined\n * by the --with-config-file-scan-dir option which is set during\n * compilation.\n *\n * The returned configuration files also include the path as declared in\n * the --with-config-file-scan-dir option.\n *\n * @return string Returns a comma-separated string of .ini files on\n * success. Each comma is followed by a newline. If the\n * directive --with-config-file-scan-dir wasn't set,\n * FALSE is returned. If it was set and the directory\n * was empty, an empty string is returned. If a file is\n * unrecognizable, the file will still make it into the\n * returned string but a PHP error will also result.\n * This PHP error will be seen both at compile time and\n * while using php_ini_scanned_files().\n */",
|
||||
(const char *)0x14 /* KindOfString */, NULL,
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
var_dump(php_ini_loaded_file());
|
||||
@@ -0,0 +1 @@
|
||||
bool(false)
|
||||
Referência em uma Nova Issue
Bloquear um usuário