|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-02-28 20:03 UTC] helly@php.net
[2012-08-10 14:48 UTC] laruence@php.net
[2012-08-10 14:48 UTC] laruence@php.net
-Status: Suspended
+Status: Not a bug
-Package: Feature/Change Request
+Package: *General Issues
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Jan 03 07:00:01 2026 UTC |
Description: ------------ When you request the ReflectionParameters for the PDO constructor, it returns an empty array instead of an array of ReflectionParamters representing the dsn, username, password and driver options. It would seem that PDO is not providing Reflection info for it's constructor (possibly more). Reproduce code: --------------- $method = new ReflectionMethod ('PDO', '__construct'); print_r ($method->getParameters ()); Expected result: ---------------- Array ( [0] => ReflectionParameter Object ( [name] => dsn ) [1] => ReflectionParameter Object ( [name] => username ) [2] => ReflectionParameter Object ( [name] => password ) [3] => ReflectionParameter Object ( [name] => driver_options ) ) Actual result: -------------- Array ( )