#49294 [NEW]: ReflectionExtension::info() returns null
From: andreww at uk dot ibm dot com
Operating system: Any
PHP version: 5.3.0
PHP Bug Type: Reflection related
Bug description: ReflectionExtension::info() returns null
Description:
------------
The documentation for the ReflectionExtension class shows info() as
returning a string, but it returns NULL and prints the information directly
to the screen.
I used the Windows installer package from Jun 29 2009 (basic install, no
changes), but was also able to reproduce problem with the 5.3.1-dev snap
from Aug 19 2009
Reproduce code:
---------------
<?php
$ext = new ReflectionExtension('iconv');
$info = $ext->info();
printf("Info:\n%s\n", $info ? $info : 'NULL');
?>
Expected result:
----------------
Info:
iconv support => enabled
iconv implementation => "libiconv"
iconv library version => 1.11
Directive => Local Value => Master Value
iconv.input_encoding => ISO-8859-1 => ISO-8859-1
iconv.output_encoding => ISO-8859-1 => ISO-8859-1
iconv.internal_encoding => ISO-8859-1 => ISO-8859-1
Actual result:
--------------
iconv
iconv support => enabled
iconv implementation => "libiconv"
iconv library version => 1.11
Directive => Local Value => Master Value
iconv.input_encoding => ISO-8859-1 => ISO-8859-1
iconv.output_encoding => ISO-8859-1 => ISO-8859-1
iconv.internal_encoding => ISO-8859-1 => ISO-8859-1
Info:
NULL
--
Edit bug report at http://bugs.php.net/?id=49294&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49294&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49294&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49294&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=49294&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49294&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=49294&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=49294&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=49294&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=49294&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=49294&r=support
Expected behavior: http://bugs.php.net/fix.php?id=49294&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=49294&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=49294&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=49294&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49294&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49294&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=49294&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=49294&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=49294&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=49294&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=49294&r=mysqlcfg
Thread (7 messages)
- andreww at uk dot ibm dot com