[PHP-CVS] cvs: php-src(PHP_4_4) /sapi/cgi cgi_main.c
tony2001Thu Dec 28 22:37:00 2006 UTC Modified files: (Branch: PHP_4_4) /php-src/sapi/cgi cgi_main.c Log: MFH http://cvs.php.net/viewvc.cgi/php-src/sapi/cgi/cgi_main.c?r1=1.190.2.68.2.5r2=1.190.2.68.2.6diff_format=u Index: php-src/sapi/cgi/cgi_main.c diff -u php-src/sapi/cgi/cgi_main.c:1.190.2.68.2.5 php-src/sapi/cgi/cgi_main.c:1.190.2.68.2.6 --- php-src/sapi/cgi/cgi_main.c:1.190.2.68.2.5 Wed Feb 22 15:11:53 2006 +++ php-src/sapi/cgi/cgi_main.c Thu Dec 28 22:36:59 2006 @@ -20,7 +20,7 @@ +--+ */ -/* $Id: cgi_main.c,v 1.190.2.68.2.5 2006/02/22 15:11:53 dmitry Exp $ */ +/* $Id: cgi_main.c,v 1.190.2.68.2.6 2006/12/28 22:36:59 tony2001 Exp $ */ #include php.h #include php_globals.h @@ -811,7 +811,7 @@ int l = strlen(env_document_root); int path_translated_len = 0; char *path_translated = NULL; - if (env_document_root[l-1]=='/') { + if (l env_document_root[l-1]=='/') { --l; } -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_4_4) /sapi/cgi cgi_main.c
dmitry Wed Feb 22 15:11:53 2006 UTC Modified files: (Branch: PHP_4_4) /php-src/sapi/cgi cgi_main.c Log: Fixed crash on error message during PHP startup in FastCGI http://cvs.php.net/viewcvs.cgi/php-src/sapi/cgi/cgi_main.c?r1=1.190.2.68.2.4r2=1.190.2.68.2.5diff_format=u Index: php-src/sapi/cgi/cgi_main.c diff -u php-src/sapi/cgi/cgi_main.c:1.190.2.68.2.4 php-src/sapi/cgi/cgi_main.c:1.190.2.68.2.5 --- php-src/sapi/cgi/cgi_main.c:1.190.2.68.2.4 Fri Feb 3 16:31:09 2006 +++ php-src/sapi/cgi/cgi_main.c Wed Feb 22 15:11:53 2006 @@ -20,7 +20,7 @@ +--+ */ -/* $Id: cgi_main.c,v 1.190.2.68.2.4 2006/02/03 16:31:09 dmitry Exp $ */ +/* $Id: cgi_main.c,v 1.190.2.68.2.5 2006/02/22 15:11:53 dmitry Exp $ */ #include php.h #include php_globals.h @@ -483,7 +483,9 @@ if (!FCGX_IsCGI() logging) { FCGX_Request *request = (FCGX_Request *)SG(server_context); - FCGX_FPrintF( request-err, %s\n, message ); + if (request) { + FCGX_FPrintF( request-err, %s\n, message ); + } /* ignore return code */ } else #endif /* PHP_FASTCGI */ -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_4_4) /sapi/cgi cgi_main.c
dmitry Fri Feb 3 16:31:09 2006 UTC Modified files: (Branch: PHP_4_4) /php-src/sapi/cgi cgi_main.c Log: iFixed several small FastCGI releated bugs http://cvs.php.net/viewcvs.cgi/php-src/sapi/cgi/cgi_main.c?r1=1.190.2.68.2.3r2=1.190.2.68.2.4diff_format=u Index: php-src/sapi/cgi/cgi_main.c diff -u php-src/sapi/cgi/cgi_main.c:1.190.2.68.2.3 php-src/sapi/cgi/cgi_main.c:1.190.2.68.2.4 --- php-src/sapi/cgi/cgi_main.c:1.190.2.68.2.3 Sun Jan 1 13:47:01 2006 +++ php-src/sapi/cgi/cgi_main.c Fri Feb 3 16:31:09 2006 @@ -20,7 +20,7 @@ +--+ */ -/* $Id: cgi_main.c,v 1.190.2.68.2.3 2006/01/01 13:47:01 sniper Exp $ */ +/* $Id: cgi_main.c,v 1.190.2.68.2.4 2006/02/03 16:31:09 dmitry Exp $ */ #include php.h #include php_globals.h @@ -281,7 +281,7 @@ #ifndef PHP_WIN32 !parent #endif - (!request || FCGX_FFlush(request-out) == -1)) { + request FCGX_FFlush(request-out) == -1) { php_handle_aborted_connection(); } return; @@ -1260,7 +1260,8 @@ fprintf( stderr, Wait for kids, pid %d\n, getpid() ); #endif - wait( status ); + while (wait( status ) 0) { + } running--; } } @@ -1688,6 +1689,7 @@ exit_status = 255; } zend_end_try(); + SG(server_context) = NULL; php_module_shutdown(TSRMLS_C); #ifdef ZTS -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php