Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003207 [Quercus] major always 12-29-08 19:30 12-29-08 19:30
Reporter santino View Status public  
Assigned To
Priority normal Resolution open Platform
Status new   OS
Projection none   OS Version
ETA none Fixed in Version Product Version 3.2.1
  Product Build
Summary 0003207: javax.scripting using Quercus Engine and PHP includes
Description I'm trying to execute a PHP file which includes another PHP file using the javax.scripting API with the Quercus engine. I'm calling the javax.scripting APIs from a webapp/war file and all the php files are under the context root.

For example:

******************CODE in a Servlet******************************

ScriptEngine engine = manager.getEngineByName("php");

InputStream in = getServletConfig().getServletContext().getResourceAsStream("/DebugMain.php");

BufferedReader reader = new BufferedReader(new InputStreamReader(in));

engine.eval(reader);

****************DebugMain.php**********************
<?php

require "Class.php"

Debug::logMessage("test", $msg);
Debug::printLog();

?>

The require causes a QuercusException with a message that Class.php is not a valid path.

The web container is Tomcat 6.0 and I'm using Quercus 3.1.2.

Steps To Reproduce
Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
12-29-08 19:30 santino New Issue


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