get_cfg_var
symfony/var-dumper
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Gets the value of a PHP configuration option
get_cfg_var
(
string $option
):
string
|array|
false
]);
}
$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
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