Anonymous | Login | Signup for a new account | 12-17-2024 10:54 PST |
Main | My View | View Issues | Change Log | Docs |
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 | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |