Req #36562 [Sus->Nab]: Reflection information throughout PHP
| From: | laruence@php.net | Date: | Fri, 10 Aug 2012 14:48:37 +0000 |
| Subject: | Req #36562 [Sus->Nab]: Reflection information throughout PHP | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-172535@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=36562&edit=1
ID: 36562
Updated by: laruence@php.net
Reported by: justin at superglobals dot com
Summary: Reflection information throughout PHP
-Status: Suspended
+Status: Not a bug
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
PHP Version: 5.*
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2006-02-28 20:03:18] 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.
------------------------------------------------------------------------
[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 https://bugs.php.net/bug.php?id=36562&edit=1