Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3207 | major | always | 12-29-08 19:30 | 12-29-08 19:30 | |
|
|||||
Reporter: | santino | Platform: | |||
Assigned To: | OS: | ||||
Priority: | normal | OS Version: | |||
Status: | new | Product Version: | 3.2.1 | ||
Product Build: | Resolution: | open | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | |||
|
|||||
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: | |||||
Relationships | |||||
Attached Files: |
There are no notes attached to this issue. |