ID:               49216
 User updated by:  virgilp at gmail dot com
 Reported By:      virgilp at gmail dot com
-Status:           No Feedback
+Status:           Open
 Bug Type:         Reflection related
 Operating System: Windows XP SP3
 PHP Version:      5.2.10
 New Comment:

I **DID** provide the feedback requested:
I tried  http://windows.php.net/downloads/snaps/php-5.2-nts-win32-VC6-
x86-latest.zip - and I get the same behaviour.


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

[2009-08-19 01:00:01] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2009-08-12 07:04:06] virgilp at gmail dot com

I tried 
http://windows.php.net/downloads/snaps/php-5.2-nts-win32-VC6-x86-
latest.zip - I get the same behaviour

------------------------------------------------------------------------

[2009-08-11 09:41:51] [email protected]

Please try using this snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/



------------------------------------------------------------------------

[2009-08-11 07:18:28] virgilp at gmail dot com

Description:
------------
There are several things that go wrong with reflection on MySqli. 
1. First and foremost - extracting mysqli::bind_param signature yields

strange results:  public function bind_param($);
And the parameter in question (printed as "$") is in fact:
ReflectionParameter::__set_state(array(
   'name' => NULL,
))  /// Null name!!
I believe this is actually related to bug #45578 - but that one has 
been closed as being related to something completely different.

2. another odd thing is that reflection returns "final protected class

mysqli_warning " (and a class can't be "protected").

3. Several properties seem to be completely missing from reflection - 
e.g. the "host_info" property of mysqli.

4. Parameters are not shown in member methods - e.g. mysqli::prepare 
is shown to have 0 parameters (when in fact, it receives a string 
parameter).

Reproduce code:
---------------
$ext = new ReflectionExtension('mysqli');
$class_arr = $ext->getClassNames();
foreach($class_arr as $cls_name){
    DumpClass($cls_name);
}
 // I could give the implementation of DumpClass if needed, but it's
straight out of the "reflection" examples, it prints the modifiers,
class name, "extends", "implements" & properties/methods


Expected result:
----------------
MySqli class seen through reflection the same way as it is documented
on 
www.php.net

Actual result:
--------------
Wrong output from reflection (as listed in "description")


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49216&edit=1

Reply via email to