Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
2658 | minor | always | 05-10-08 23:25 | 05-12-08 10:27 | |
|
|||||
Reporter: | koreth | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.1.7 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.2.0 | ||
|
|||||
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: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|