|
Mantis - Quercus
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 4863 | block | always | 11-21-11 00:48 | 01-11-14 22:49 | |
|
|
|||||
| Reporter: | ds82 | Platform: | |||
| Assigned To: | nam | OS: | |||
| Priority: | normal | OS Version: | |||
| Status: | closed | Product Version: | 4.0.14 | ||
| Product Build: | Resolution: | no change required | |||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | |||
|
|
|||||
| Summary: | 0004863: ReflectionParameter::getClass() returns null | ||||
| Description: |
Simple Test: <?php class A { public function __construct() {} } class B { private $a; public function __construct(A $a) { $this->a = $a; } } // lets test $reflection = new ReflectionClass('B'); $constructor = $reflection->getConstructor(); $parameter = $constructor->getParameters(); if(!is_a($parameter[0]->getClass(), 'ReflectionClass')) throw new Exception('ReflectionParameter::getClass did not return ReflectionClass'); ?> This code runs fine with native PHP 5.3. With Quercus the Exception is thrown, because getClass() returns null. |
||||
| Steps To Reproduce: | |||||
| Additional Information: | |||||
| Relationships | |||||
| Attached Files: | |||||
| Notes | |||||
|
|
|||||
|
|
||||