ID:               49294
 Updated by:       j...@php.net
 Reported By:      andreww at uk dot ibm dot com
 Status:           Open
 Bug Type:         Reflection related
-Operating System: Any
+Operating System: *
 PHP Version:      5.3.0
 New Comment:

There is no such OS as "Any".


Previous Comments:
------------------------------------------------------------------------

[2009-08-19 13:45:36] andreww at uk dot ibm dot com

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 this bug report at http://bugs.php.net/?id=49294&edit=1

Reply via email to