php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #36562 Reflection information throughout PHP
Submitted: 2006-02-28 19:52 UTC Modified: 2012-08-10 14:48 UTC
From: justin at superglobals dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.* OS:
Private report: No CVE-ID: None
 [2006-02-28 19:52 UTC] 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
(
)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-28 20:03 UTC] helly@php.net
This is suspended until somebody is willing to do the work.
And of course the work has to be done throughout php.
 [2012-08-10 14:48 UTC] laruence@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 [2012-08-10 14:48 UTC] laruence@php.net
-Status: Suspended +Status: Not a bug -Package: Feature/Change Request +Package: *General Issues
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC