Anonymous | Login | Signup for a new account | 12-17-2024 08:29 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ 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 | ||||||
Status | closed | Product Version | 3.1.7 | ||||||
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"; |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |