[rkward-cvs] SF.net SVN: rkward: [1474] trunk/rkward/rkward/scriptbackends

tfry at users.sourceforge.net tfry at users.sourceforge.net
Mon Feb 26 14:03:19 UTC 2007


Revision: 1474
          http://svn.sourceforge.net/rkward/?rev=1474&view=rev
Author:   tfry
Date:     2007-02-26 06:03:18 -0800 (Mon, 26 Feb 2007)

Log Message:
-----------
Make sure to use a specified php.ini file, to work around system configuration issues

Modified Paths:
--------------
    trunk/rkward/rkward/scriptbackends/Makefile.am
    trunk/rkward/rkward/scriptbackends/phpbackend.cpp

Added Paths:
-----------
    trunk/rkward/rkward/scriptbackends/php.ini

Modified: trunk/rkward/rkward/scriptbackends/Makefile.am
===================================================================
--- trunk/rkward/rkward/scriptbackends/Makefile.am	2007-02-26 12:58:13 UTC (rev 1473)
+++ trunk/rkward/rkward/scriptbackends/Makefile.am	2007-02-26 14:03:18 UTC (rev 1474)
@@ -4,5 +4,5 @@
 noinst_HEADERS =  phpbackend.h scriptbackend.h
 libscriptbackends_a_SOURCES =  phpbackend.cpp scriptbackend.cpp
 phpfilesdir = $(kde_datadir)/rkward/phpfiles
-phpfiles_DATA =  common.php
+phpfiles_DATA = common.php php.ini
 

Added: trunk/rkward/rkward/scriptbackends/php.ini
===================================================================
--- trunk/rkward/rkward/scriptbackends/php.ini	                        (rev 0)
+++ trunk/rkward/rkward/scriptbackends/php.ini	2007-02-26 14:03:18 UTC (rev 1474)
@@ -0,0 +1,11 @@
+; This php.ini is meant for use with RKWard, only. It is unlikely to make too much sense in any other context
+; Some additional options are set in common.php
+
+; scripts should never terminate automatically
+max_execution_time = 0
+
+; show errors
+display_errors = 1
+
+; plugins may be installed anywhere
+open_basedir = NULL

Modified: trunk/rkward/rkward/scriptbackends/phpbackend.cpp
===================================================================
--- trunk/rkward/rkward/scriptbackends/phpbackend.cpp	2007-02-26 12:58:13 UTC (rev 1473)
+++ trunk/rkward/rkward/scriptbackends/phpbackend.cpp	2007-02-26 14:03:18 UTC (rev 1474)
@@ -53,7 +53,7 @@
 
 	php_process = new KProcess ();
 	*php_process << RKSettingsModulePHP::phpBin();
-//	*php_process << "-a";		// run interactively. Does this have an effect?
+	*php_process << "-c" << RKSettingsModulePHP::filesPath() + "/php.ini";	// set correct options
 	*php_process << (RKSettingsModulePHP::filesPath() + "/common.php");
 	
 	// we have to be connect at all times! Otherwise the connection will be gone for good.


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list