Mantis Bugtracker

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003164 [Quercus] minor always 12-12-08 13:40 01-09-09 09:37
Reporter koreth View Status public  
Assigned To nam
Priority urgent Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.0 Product Version 4.0.0
  Product Build
Summary 0003164: resin_restore_state does not restore imported Java classes
Description If my "if (!resin_restore_state())" block has an "import" keyword to import a Java class, the class is undefined on subsequent page loads when I'm using the restored state.

Workaround: do the import statements before the resin_restore_state() call.
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
12-14-08 15:18

import has bigger issues. It's not currently implemented correctly. It should be lexical, but it modifying the Env directly.
12-14-08 15:21

Okay, if you're talking changes to "import", it would be kind of neat if there were a function-based equivalent, e.g.,


Then you could do

if (function_exists('resin_import')) {
} else {
  include_once 'myclass-php-implementation.php';

to support running the same code both in and out of Quercus. Right now I have to put "import" statements in separate PHP files that get conditionally included, because the "import" keyword is a syntax error in Zend PHP.
01-09-09 09:37


Issue fixed. Also added quercus_import() for convenience.

- Issue History
Date Modified Username Field Change
12-12-08 13:40 koreth New Issue
12-14-08 15:18 ferg Note Added: 0003627
12-14-08 15:21 koreth Note Added: 0003628
12-24-08 16:00 nam Status new => assigned
12-24-08 16:00 nam Assigned To  => nam
01-04-09 14:42 ferg Priority normal => urgent
01-09-09 09:37 nam Status assigned => closed
01-09-09 09:37 nam Note Added: 0003711
01-09-09 09:37 nam Resolution open => fixed
01-09-09 09:37 nam Fixed in Version  => 4.0.0

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