Mantis - Quercus
Viewing Issue Advanced Details
3207 major always 12-29-08 19:30 12-29-08 19:30
santino  
 
normal  
new 3.2.1  
open  
none    
none  
0003207: javax.scripting using Quercus Engine and PHP includes
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.


There are no notes attached to this issue.