summaryrefslogtreecommitdiff
path: root/main/main.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-04-10 17:39:11 +0000
committerAndi Gutmans <andi@php.net>2000-04-10 17:39:11 +0000
commit897b413c2d62fe115f4526a8755f54283740e14d (patch)
tree3a3bbace45180031deb859bb054ded7f6e07f90c /main/main.c
parentc981be0bca1e37754de77c500b962ec277860013 (diff)
downloadphp-git-897b413c2d62fe115f4526a8755f54283740e14d.tar.gz
- Try and resolve the problem with current working directories not being
set to the script directory
Diffstat (limited to 'main/main.c')
-rw-r--r--main/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/main/main.c b/main/main.c
index 06d208ec61..0c50d60d54 100644
--- a/main/main.c
+++ b/main/main.c
@@ -619,7 +619,11 @@ int php_request_startup(CLS_D ELS_DC PLS_DC SLS_DC)
PG(connection_status) = PHP_CONNECTION_NORMAL;
zend_activate(CLS_C ELS_CC);
- sapi_activate(SLS_C);
+ sapi_activate(SLS_C);
+
+#ifdef VIRTUAL_DIR
+ virtual_cwd_activate(SG(request_info).path_translated);
+#endif
php_set_timeout(PG(max_execution_time));