Files
Mikhail Alferov c8a8981a9d ini-get[-all].xml: add the literal tag to the pdo.dsn.* family of options and amend the code example (#3580)
* ini-get.xml: add the literal tag to the pdo.dsn.* family of options

* ini-get-all.xml: add the literal tag

* ini-get.xml: modify the code example and the output

* Update ini-get.xml: fix the size in bytes

* ini-get.xml: fix converting k, m, g into bytes

We could use merely this insted the `return_bytes` fn:

```
<?php

/*
Our php.ini contains the following settings:

display_errors = On
register_globals = Off
post_max_size = 8M
*/

echo 'display_errors = ' . ini_get('display_errors') . "\n";
echo 'register_globals = ' . (int) ini_get('register_globals') . "\n";
echo 'post_max_size = ' . ini_get('post_max_size') . "\n";
echo 'post_max_size + 1 = ' . (rtrim(ini_get('post_max_size'), 'KMG') + 1) . "\n";
echo 'post_max_size in bytes = ' . ini_parse_quantity(ini_get('post_max_size'));
```
2024-07-26 02:36:33 +01:00
..
2022-11-14 15:01:29 +01:00
2010-03-28 22:10:10 +00:00
2021-06-10 12:38:11 +03:00
2021-06-10 12:38:11 +03:00
2021-06-10 12:38:11 +03:00
2021-06-10 12:38:11 +03:00
2021-06-10 12:38:11 +03:00
2010-03-28 22:10:10 +00:00
2021-06-04 11:11:39 +02:00
2021-06-10 12:38:11 +03:00