ID:          36562
 Updated by:  [EMAIL PROTECTED]
-Summary:     Reflection on PDO::__construct
 Reported By: justin at superglobals dot com
-Status:      Open
+Status:      Suspended
 Bug Type:    Feature/Change Request
-PHP Version: 5.1.2
+PHP Version: 5.*
 New Comment:

This is suspended until somebody is willing to do the work.
And of course the work has to be done throughout php.


Previous Comments:
------------------------------------------------------------------------

[2006-02-28 19:52:28] justin at superglobals dot com

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
(
)


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=36562&edit=1

Reply via email to