Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003235 [Quercus] minor always 01-09-09 17:14 01-09-09 18:13
Reporter koreth View Status public  
Assigned To nam
Priority normal Resolution fixed  
Status closed   Product Version 4.0.0
Summary 0003235: ReflectionMethod::getDeclaringClass() NPE in compiled mode
Description <?php
class Foo {
  public function foo() { }
}

$x = new ReflectionMethod('Foo', 'foo');
print $x->getDeclaringClass();

This prints "Foo" in interpreted mode, but throws NPE in compiled mode:

com.caucho.quercus.QuercusException: com.caucho.quercus.lib.reflection.ReflectionMethod.getDeclaringClass:
null
    at com.caucho.quercus.env.JavaMethod.invoke(JavaMethod.java:116)
    at com.caucho.quercus.env.JavaInvoker.callMethod(JavaInvoker.java:618)
    at com.caucho.quercus.env.AbstractJavaMethod.callMethod(AbstractJavaMethod.java:186)
    at com.caucho.quercus.program.JavaClassDef.callMethod(JavaClassDef.java:605)
    at com.caucho.quercus.env.JavaValue.callMethod(JavaValue.java:336)
    at _quercus._html._test._reflectionmethod__php.execute(.../reflectionmethod.php:7)
Additional Information
Attached Files

- Relationships

- Notes
(0003715)
nam
01-09-09 18:13

php/524g
 

- Issue History
Date Modified Username Field Change
01-09-09 17:14 koreth New Issue
01-09-09 17:40 nam Status new => assigned
01-09-09 17:40 nam Assigned To  => nam
01-09-09 18:13 nam Status assigned => closed
01-09-09 18:13 nam Note Added: 0003715
01-09-09 18:13 nam Resolution open => fixed
01-09-09 18:13 nam Fixed in Version  => 4.0.0


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker