php-internal-docs 8.4.8
Unofficial docs for php/php-src
|
#include "zend.h"
#include "zend_sort.h"
#include "zend_API.h"
#include "zend_ini.h"
#include "zend_alloc.h"
#include "zend_operators.h"
#include "zend_strtod.h"
#include "zend_modules.h"
#include "zend_smart_str.h"
#include <ctype.h>
Go to the source code of this file.
Macros | |
#define | NO_VALUE_PLAINTEXT "no value" |
#define | NO_VALUE_HTML "<i>no value</i>" |
Enumerations | |
enum | zend_ini_parse_quantity_signed_result_t { ZEND_INI_PARSE_QUANTITY_SIGNED , ZEND_INI_PARSE_QUANTITY_UNSIGNED } |
Variables | |
zend_string * | tmp_value |
else | |
Definition at line 33 of file zend_ini.c.
#define NO_VALUE_PLAINTEXT "no value" |
Definition at line 32 of file zend_ini.c.
Enumerator | |
---|---|
ZEND_INI_PARSE_QUANTITY_SIGNED | |
ZEND_INI_PARSE_QUANTITY_UNSIGNED |
Definition at line 585 of file zend_ini.c.
else if | ( | ini_entry-> | value | ) |
Definition at line 904 of file zend_ini.c.
if | ( | tmp_value | ) |
Definition at line 910 of file zend_ini.c.
if | ( | type | = = ZEND_INI_DISPLAY_ORIG && ini_entry->modified | ) |
Definition at line 902 of file zend_ini.c.
if | ( | value | ) |
Definition at line 916 of file zend_ini.c.
ZEND_API zend_result zend_alter_ini_entry | ( | zend_string * | name, |
zend_string * | new_value, | ||
int | modify_type, | ||
int | stage ) |
Definition at line 325 of file zend_ini.c.
ZEND_API zend_result zend_alter_ini_entry_chars | ( | zend_string * | name, |
const char * | value, | ||
size_t | value_length, | ||
int | modify_type, | ||
int | stage ) |
Definition at line 332 of file zend_ini.c.
ZEND_API zend_result zend_alter_ini_entry_chars_ex | ( | zend_string * | name, |
const char * | value, | ||
size_t | value_length, | ||
int | modify_type, | ||
int | stage, | ||
int | force_change ) |
Definition at line 344 of file zend_ini.c.
ZEND_API zend_result zend_alter_ini_entry_ex | ( | zend_string * | name, |
zend_string * | new_value, | ||
int | modify_type, | ||
int | stage, | ||
bool | force_change ) |
Definition at line 356 of file zend_ini.c.
Definition at line 130 of file zend_ini.c.
ZEND_API double zend_ini_double | ( | const char * | name, |
size_t | name_length, | ||
int | orig ) |
Definition at line 464 of file zend_ini.c.
Definition at line 116 of file zend_ini.c.
ZEND_API zend_string * zend_ini_get_value | ( | zend_string * | name | ) |
Definition at line 560 of file zend_ini.c.
Definition at line 123 of file zend_ini.c.
Definition at line 447 of file zend_ini.c.
ZEND_API bool zend_ini_parse_bool | ( | zend_string * | str | ) |
Definition at line 573 of file zend_ini.c.
ZEND_API zend_long zend_ini_parse_quantity | ( | zend_string * | value, |
zend_string ** | errstr ) |
Parses an ini quantity
The value parameter must be a string in the form
sign? digits ws* multiplier?
with
sign: [+-] digit: [0-9] digits: digit+ ws: [ \t\n\r\v\f] multiplier: [KMG]
Leading and trailing whitespaces are ignored.
If the string is empty or consists only of only whitespaces, 0 is returned.
Digits is parsed as decimal unless the first digit is '0', in which case digits is parsed as octal.
The multiplier is case-insensitive. K, M, and G multiply the quantity by 2**10, 2**20, and 2**30, respectively.
For backwards compatibility, ill-formatted values are handled as follows:
In any of these cases an error string is stored in *errstr (caller must release it), otherwise *errstr is set to NULL.
Definition at line 857 of file zend_ini.c.
ZEND_API zend_long zend_ini_parse_quantity_warn | ( | zend_string * | value, |
zend_string * | setting ) |
Definition at line 869 of file zend_ini.c.
ZEND_API zend_ulong zend_ini_parse_uquantity | ( | zend_string * | value, |
zend_string ** | errstr ) |
Unsigned variant of zend_ini_parse_quantity
Definition at line 863 of file zend_ini.c.
ZEND_API zend_ulong zend_ini_parse_uquantity_warn | ( | zend_string * | value, |
zend_string * | setting ) |
Definition at line 883 of file zend_ini.c.
ZEND_API zend_result zend_ini_register_displayer | ( | const char * | name, |
uint32_t | name_length, | ||
void(* | displayer )(zend_ini_entry *ini_entry, int type) ) |
Definition at line 429 of file zend_ini.c.
Definition at line 110 of file zend_ini.c.
Definition at line 195 of file zend_ini.c.
Definition at line 99 of file zend_ini.c.
ZEND_API zend_string * zend_ini_str | ( | const char * | name, |
size_t | name_length, | ||
bool | orig ) |
Definition at line 545 of file zend_ini.c.
ZEND_API zend_string * zend_ini_str_ex | ( | const char * | name, |
size_t | name_length, | ||
bool | orig, | ||
bool * | exists ) |
Definition at line 521 of file zend_ini.c.
ZEND_API char * zend_ini_string | ( | const char * | name, |
size_t | name_length, | ||
int | orig ) |
Definition at line 505 of file zend_ini.c.
ZEND_API char * zend_ini_string_ex | ( | const char * | name, |
size_t | name_length, | ||
int | orig, | ||
bool * | exists ) |
Definition at line 481 of file zend_ini.c.
ZEND_API zend_result zend_register_ini_entries | ( | const zend_ini_entry_def * | ini_entry, |
int | module_number ) |
Definition at line 268 of file zend_ini.c.
ZEND_API zend_result zend_register_ini_entries_ex | ( | const zend_ini_entry_def * | ini_entry, |
int | module_number, | ||
int | module_type ) |
Definition at line 204 of file zend_ini.c.
ZEND_API zend_result zend_restore_ini_entry | ( | zend_string * | name, |
int | stage ) |
Definition at line 408 of file zend_ini.c.
Definition at line 297 of file zend_ini.c.
Definition at line 283 of file zend_ini.c.
else |
Definition at line 906 of file zend_ini.c.
zend_string* tmp_value |
Definition at line 900 of file zend_ini.c.