Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002658 [Quercus] minor always 05-10-08 23:25 05-12-08 10:27
Reporter koreth View Status public  
Assigned To nam
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.2.0 Product Version 3.1.7
  Product Build
Summary 0002658: Can't use class variable as RHS of instanceof operator
Description <?php
class Foo {
  static $CLASSNAME = 'Foo';
}

$foo = new Foo();
if ($foo instanceof Foo::$CLASSNAME) {
  echo "yep\n";
}
---

Vanilla PHP prints "yep". Quercus throws an exception:

[show] test.php:7: expected ')' at SCOPE (Foo) in
test.php:6: $foo = new Foo();
test.php:7: if ($foo instanceof Foo::$CLASSNAME) {
test.php:8: echo "yep\n";

Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0003045)
nam
05-12-08 10:27

php/03p2
 

- Issue History
Date Modified Username Field Change
05-10-08 23:25 koreth New Issue
05-12-08 09:49 nam Status new => assigned
05-12-08 09:49 nam Assigned To  => nam
05-12-08 10:27 nam Status assigned => closed
05-12-08 10:27 nam Note Added: 0003045
05-12-08 10:27 nam Resolution open => fixed
05-12-08 10:27 nam Fixed in Version  => 3.2.0


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