summaryrefslogtreecommitdiff
path: root/sapi/cgi/cgi_main.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-08-05 01:43:02 +0000
committerZeev Suraski <zeev@php.net>2001-08-05 01:43:02 +0000
commit1159c84ab7849099d4a717cd05c2d920102040ed (patch)
treeed4e48bb27e2ce5de5972fc3a29c1d24c818467a /sapi/cgi/cgi_main.c
parentfcc035108f7b8d2e169c5a592227b3df84d0573e (diff)
downloadphp-git-1159c84ab7849099d4a717cd05c2d920102040ed.tar.gz
- TSRMLS_FETCH work
- whitespace fixes
Diffstat (limited to 'sapi/cgi/cgi_main.c')
-rw-r--r--sapi/cgi/cgi_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c
index c8c366b844..b0d6134c7d 100644
--- a/sapi/cgi/cgi_main.c
+++ b/sapi/cgi/cgi_main.c
@@ -390,7 +390,7 @@ int main(int argc, char *argv[])
#ifdef HAVE_SIGNAL_H
#if defined(SIGPIPE) && defined(SIG_IGN)
- signal(SIGPIPE,SIG_IGN); /* ignore SIGPIPE in standalone mode so
+ signal(SIGPIPE, SIG_IGN); /* ignore SIGPIPE in standalone mode so
that sockets created via fsockopen()
don't kill PHP if the remote site
closes it. in apache|apxs mode apache
@@ -401,7 +401,7 @@ int main(int argc, char *argv[])
#ifdef ZTS
- tsrm_startup(1,1,0, NULL);
+ tsrm_startup(1, 1, 0, NULL);
#endif
sapi_startup(&cgi_sapi_module);
@@ -718,7 +718,7 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
return FAILURE;
}
file_handle.filename = argv0;
- file_handle.opened_path = expand_filepath(argv0, NULL);
+ file_handle.opened_path = expand_filepath(argv0, NULL TSRMLS_CC);
} else if (retval == SUCCESS) {
/* #!php support */
c = fgetc(file_handle.handle.fp);