Author: geoff
Date: Thu Jan 27 13:00:31 2005
New Revision: 128426

URL: http://svn.apache.org/viewcvs?view=rev&rev=128426
Log:
set include directory

Modified:
   httpd/test/trunk/perl-framework/Apache-Test/lib/Apache/TestHarnessPHP.pm

Modified: 
httpd/test/trunk/perl-framework/Apache-Test/lib/Apache/TestHarnessPHP.pm
Url: 
http://svn.apache.org/viewcvs/httpd/test/trunk/perl-framework/Apache-Test/lib/Apache/TestHarnessPHP.pm?view=diff&rev=128426&p1=httpd/test/trunk/perl-framework/Apache-Test/lib/Apache/TestHarnessPHP.pm&r1=128425&p2=httpd/test/trunk/perl-framework/Apache-Test/lib/Apache/TestHarnessPHP.pm&r2=128426
==============================================================================
--- httpd/test/trunk/perl-framework/Apache-Test/lib/Apache/TestHarnessPHP.pm    
(original)
+++ httpd/test/trunk/perl-framework/Apache-Test/lib/Apache/TestHarnessPHP.pm    
Thu Jan 27 13:00:31 2005
@@ -108,8 +108,15 @@
 }
 
 sub _switches {
-    my $ini = catfile(Apache::Test::vars('server_root'), qw(conf php.ini));
-    return "--php-ini $ini";
+
+    my $conf = catfile(Apache::Test::vars('serverroot'), 'conf');
+
+    my $ini = catfile($conf, 'php.ini');
+
+    my $switches = join ' ', "--php-ini $ini",
+                             "--define include_path=$conf";
+
+    return $switches;
 }
 
 1;

Reply via email to