Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004863 [Quercus] block always 11-21-11 00:48 01-11-14 22:49
Reporter ds82 View Status public  
Assigned To nam
Priority normal Resolution no change required Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version Product Version 4.0.14
  Product Build
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
Attached Files

- Relationships

- Notes
(0006386)
nam
01-11-14 22:49

php/525b

This was already fixed (I believe in 4.0.38).
 

- Issue History
Date Modified Username Field Change
11-21-11 00:48 ds82 New Issue
01-11-14 22:49 nam Status new => assigned
01-11-14 22:49 nam Assigned To  => nam
01-11-14 22:49 nam Status assigned => closed
01-11-14 22:49 nam Note Added: 0006386
01-11-14 22:49 nam Resolution open => no change required


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