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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: justin at superglobals dot com
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Apr 26 14:01:29 2024 UTC