Bug #49294 [Asn->Csd]: ReflectionExtension::info() returns null
Edit report at https://bugs.php.net/bug.php?id=49294&edit=1
ID: 49294
Updated by: bjori@php.net
Reported by: andreww at uk dot ibm dot com
Summary: ReflectionExtension::info() returns null
-Status: Assigned
+Status: Closed
Type: Bug
Package: Reflection related
Operating System: *
PHP Version: 5.*, 6 (2009-08-20)
Assigned To: johannes
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
fixed in the docs.
Previous Comments:
------------------------------------------------------------------------
[2011-08-30 12:54:26] bjori@php.net
Automatic comment from SVN on behalf of bjori
Revision: http://svn.php.net/viewvc/?view=revision&revision=315777
Log: Fixed bug#49294 (ReflectionExtension::info doesn't return the info)
------------------------------------------------------------------------
[2010-05-28 04:43:25] kalle@php.net
Just FYI, my patch only contains the local value, not the master value. But in the end we can always
alter the info() method to return a multi dim. array like:
php.ini:
apc.cache_by_default = 0;
Test script:
ini_set('apc.cache_by_default', '1');
$extension = new ReflectionExtension('apc');
$info = $extension->info();
printf('[local=%s] [master=%s]',
$info['ini']['apc.cache_by_default']['local'],
$info['ini']['apc.cache_by_default']['master']);
Would print:
[local=1] [master=0]
------------------------------------------------------------------------
[2010-05-28 04:34:13] kalle@php.net
I added a simple patch that alters ReflectionExtension::info() to have a new optional parameter to
return the information as an array. If it even makes sense, since the information here can already
be retrieved by the getName(), getVersion() and getINIEntries() methods.
Johannes can you please review this and approve or reject it
------------------------------------------------------------------------
[2010-05-28 04:31:09] kalle@php.net
The following patch has been added/updated:
Patch Name: bug-49294
Revision: 1275013869
URL: http://bugs.php.net/patch-display.php?bug=49294&patch=bug-49294&revision=1275013869
------------------------------------------------------------------------
[2009-08-20 10:37:05] jani@php.net
Assigned to Johannes who added this method. Seems quite weird that there's one single method
that just outputs stuff instead of returning it. Not very consistent.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=49294
--
Edit this bug report at https://bugs.php.net/bug.php?id=49294&edit=1
Thread (7 messages)