ini_get
symfony/var-dumper
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Gets the value of a configuration option
ini_get
(
string $option
):
string
|
false
public function
__construct
(
$output
=
null
,
string $charset
=
null
,
int $flags
=
0
)
{
$this
->
flags
=
$flags
;
$this
->
setCharset
(
$charset
?:
ini_get
(
'php.output_encoding'
) ?:
ini_get
(
'default_charset'
) ?:
'UTF-8'
);
$this
->
decimalPoint
=
localeconv
();
$this
->
decimalPoint
=
$this
->
decimalPoint
[
'decimal_point'
];
$this
->
setOutput
(
$output
?: static::
$defaultOutput
);
Dumper/AbstractDumper.php
]);
}
$this
->
displayOptions
[
'fileLinkFormat'
] =
ini_get
(
'xdebug.file_link_format'
) ?:
get_cfg_var
(
'xdebug.file_link_format'
) ?:
'file://%f#L%l'
;
}
Dumper/CliDumper.php
{
AbstractDumper
::
__construct
(
$output
,
$charset
,
$flags
);
$this
->
dumpId
=
'sf-dump-'
.
mt_rand
();
$this
->
displayOptions
[
'fileLinkFormat'
] =
ini_get
(
'xdebug.file_link_format'
) ?:
get_cfg_var
(
'xdebug.file_link_format'
);
$this
->
styles
= static::
$themes
[
'dark'
] ??
self
::
$themes
[
'dark'
];
}
Dumper/HtmlDumper.php
public function
testHtmlDump
()
{
if (
ini_get
(
'xdebug.file_link_format'
) ||
get_cfg_var
(
'xdebug.file_link_format'
)) {
$this
->
markTestSkipped
(
'A custom file_link_format is defined.'
);
}
Tests/Caster/ExceptionCasterTest.php
public function
testJsonCast
()
{
if (
2
==
ini_get
(
'xdebug.overload_var_dump'
)) {
$this
->
markTestSkipped
(
'xdebug is active'
);
}
Tests/Cloner/VarClonerTest.php
{
public function
testGet
()
{
if (
ini_get
(
'xdebug.file_link_format'
) ||
get_cfg_var
(
'xdebug.file_link_format'
)) {
$this
->
markTestSkipped
(
'A custom file_link_format is defined.'
);
}
Tests/Dumper/HtmlDumperTest.php