|
Mantis - Quercus
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 3235 | minor | always | 01-09-09 17:14 | 01-09-09 18:13 | |
|
|
|||||
| Reporter: | koreth | Platform: | |||
| Assigned To: | nam | OS: | |||
| Priority: | normal | OS Version: | |||
| Status: | closed | Product Version: | 4.0.0 | ||
| Product Build: | Resolution: | fixed | |||
| Projection: | none | ||||
| ETA: | none | Fixed in 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) |
||||
| Steps To Reproduce: | |||||
| Additional Information: | |||||
| Relationships | |||||
| Attached Files: | |||||
| Notes | |||||
|
|
|||||
|
|
||||