|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-03-16 16:55 UTC] jinmoku at hotmail dot com
Description:
------------
ini_get can't read pdo.dsn.* in the php.ini
Test script:
---------------
//ini : pdo.dsn.test = sqlite::memory:
$dbh = new PDO('test');
var_dump(ini_get('pdo.dsn.test'));
Expected result:
----------------
string(15) "sqlite::memory:"
Actual result:
--------------
bool(false)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 10:00:01 2025 UTC |
> 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.)