Bug #54276 [Opn->Csd]: ini_get can't read pdo.dsn.*
| From: | cmb@php.net | Date: | Mon, 07 Sep 2015 17:41:29 +0000 |
| Subject: | Bug #54276 [Opn->Csd]: ini_get can't read pdo.dsn.* | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-12731@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=54276&edit=1
ID: 54276
Updated by: cmb@php.net
Reported by: jinmoku at hotmail dot com
Summary: ini_get can't read pdo.dsn.*
-Status: Open
+Status: Closed
Type: Bug
Package: Documentation problem
Operating System: Win 7
PHP Version: 5.3.5
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2015-09-07 17:40:51] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=337776
Log: ini_get(_all) can't read "array" options (fixes #54276)
------------------------------------------------------------------------
[2011-03-17 11:25:43] carsten_sttgt at gmx dot de
> I doubt ini_get should use such hacks.
With get_cfg_var() I can get such values:
| var_dump(get_cfg_var('pdo.dsn.test'));
| string(15) "sqlite::memory:"
| 5.3.0 get_cfg_var() was fixed to be able to return "array" ini options.
(At least the manual should describe this restriction for ini_get[_all] or phpinfo.)
------------------------------------------------------------------------
[2011-03-17 10:23:17] johannes@php.net
Interesting. But well in the sense of PHP they don't exist but PDO uses a hack to use them
anyways. I doubt ini_get should use such hacks.
------------------------------------------------------------------------
[2011-03-17 08:44:47] carsten_sttgt at gmx dot de
@johannes
> The is no such ini entries.
The manual [1] describes this as an INI option like any other:
| pdo.dsn.* string [php.ini only]
So it should be possible to use ini_get() to get the value.
------------------------------------------------------------------------
[2011-03-16 18:45:38] johannes@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
The is no such ini entries. ini_get() only works for settings defined by PHP.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=54276
--
Edit this bug report at https://bugs.php.net/bug.php?id=54276&edit=1