Caucho Forums  

This forum is permanently closed because of spam. For free community support, please visit Google Groups:


Go Back   Caucho Forums > Quercus

Reply
 
Thread Tools Display Modes
  #1  
Old 05-29-2013, 09:50 AM
max.noe max.noe is offline
Junior Member
 
Join Date: May 2013
Posts: 6
Default include_path

Hello,

I am unable to set the include path in a persistent way. Setting the include path with either set_include_path() or ini_set() works fine, but just for that request.

I've added these lines to index.php:
HTML Code:
<p>Include path: <?= get_include_path() ?></p>
<p><?php phpinfo(); ?></p>
phpinfo() reports 'null' as the php.ini location, and the include path is not invariably output as follows:
Code:
Include path: .
Any attempts to set an alternate php.ini, or even php.ini settings directly from the web.xml file have failed. I have tried the following:

Code:
<init-param>
	<param-name>ini-file</param-name>
	<param-value>WEB-INF/php.ini</param-value>
</init-param>
Code:
<init>
	<ini-file>WEB-INF/php.ini</ini-file>
</init>
Code:
<init>
	<php-ini>
		<include_path>.:WEB-INF/classes</include_path>
	</php-ini>
</init>
In any of the previous cases, phpinfo() and 'echo get_include_path()' are unaltered.

I have used both the latest Resin, and also alternatively Quercus 4.0.35 and 4.0.36 on Tomcat 6, on a CentOS 6.3 box.


Is there anything else I should try?
Reply With Quote
  #2  
Old 05-31-2013, 04:35 PM
max.noe max.noe is offline
Junior Member
 
Join Date: May 2013
Posts: 6
Default

Due to the lack of response, I've also reported this issue on Stack Overflow.
Reply With Quote
  #3  
Old 06-03-2013, 01:15 PM
nam nam is offline
Administrator
 
Join Date: Aug 2009
Posts: 337
Default

Hi max.noe,

Quercus was overriding the php.ini include_path with the default settings. I've fixed the order and it is fixed in SVN and should be in 4.0.37.

See: http://bugs.caucho.com/view.php?id=5448

Thanks.
Reply With Quote
  #4  
Old 06-03-2013, 02:53 PM
max.noe max.noe is offline
Junior Member
 
Join Date: May 2013
Posts: 6
Default

Thanks, Nam. Any idea when that release will be out?
Reply With Quote
  #5  
Old 06-03-2013, 03:11 PM
nam nam is offline
Administrator
 
Join Date: Aug 2009
Posts: 337
Default

Sorry I don't know the exact date. Historically, we do a release every 6 or so weeks. Our last release was 5 weeks ago, so 4.0.37 should be in the immediate pipeline.
Reply With Quote
  #6  
Old 06-03-2013, 05:21 PM
max.noe max.noe is offline
Junior Member
 
Join Date: May 2013
Posts: 6
Default

I've checked out Quercus from the repository and built a new .war, but I still can't set the php.ini location. The path is still appearing as 'null'.

I've set the php.ini location like this:
Code:
<servlet>
	<servlet-name>QuercusServlet</servlet-name>
	<servlet-class>com.caucho.quercus.servlet.QuercusServlet</servlet-class>
	<init-param>
		<param-name>ini-file</param-name>
		<param-value>WEB-INF/php.ini</param-value>
	</init-param>
</servlet>
Reply With Quote
  #7  
Old 06-04-2013, 12:50 PM
nam nam is offline
Administrator
 
Join Date: Aug 2009
Posts: 337
Default

Can you paste your php.ini file? And what do you get for:

var_dump(get_include_path());
Reply With Quote
  #8  
Old 06-04-2013, 12:58 PM
max.noe max.noe is offline
Junior Member
 
Join Date: May 2013
Posts: 6
Default

The get_include_path() output is:
Code:
string(1) "."
The contents of my php.ini file:
Code:
include_path = .:WEB-INF/classes
display_errors = On
error_reporting = E_ALL | E_STRICT 
html_errors = On
log_errors = On
It may be worth noting that the contents of php.ini do not seem to make a difference.
Reply With Quote
  #9  
Old 06-04-2013, 01:29 PM
nam nam is offline
Administrator
 
Join Date: Aug 2009
Posts: 337
Default

So phpinfo() doesn't show that Quercus is picking up your ini file? And ini_get() doesn't show the correct ini values? That's odd. The default web.xml has it commented out. Is it possible that your <init-param> is still commented out?
Reply With Quote
  #10  
Old 06-04-2013, 01:36 PM
nam nam is offline
Administrator
 
Join Date: Aug 2009
Posts: 337
Default

Hi max.noe,

I sent you a link to a Quercus war snapshot via private message.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:15 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.