1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 07:58:20 +02:00
Commit Graph

319 Commits

Author SHA1 Message Date
foobar c19178d966 MFB:- Fix a possible leak when multiple -c parameters are used 2007-04-17 20:01:22 +00:00
Antony Dovgal b2f169ebf8 fix leak appearing when more than one -f option specified 2007-04-17 18:51:24 +00:00
foobar 0439662815 MFB: Allow using syntax highlighting in fastcgi mode 2007-04-15 23:02:05 +00:00
Dmitry Stogov 072f7f1c60 Improved FastCGI SAPI to support external pipe and socket servers on win32 2007-03-28 15:39:35 +00:00
Dmitry Stogov 69ff1d0e4d Return HTTP 403 in case of "access denied". 2007-03-09 16:50:17 +00:00
Antony Dovgal 0f5b9e4e39 fix typo 2007-02-21 08:08:47 +00:00
Antony Dovgal 2ad6c07ca1 don't call php_module_startup() directly, use startup functions
patch by Andrei Nigmatulin
2007-02-20 19:19:14 +00:00
Antony Dovgal 95741bd34a MFB 2007-02-20 09:09:47 +00:00
Antony Dovgal 862523f69a MFB: Eliminate strcat() usage
Fixed handling of argv[] for GET
2007-02-19 20:01:17 +00:00
Dmitry Stogov bc873b7b1d Initialize "retval" on each request 2007-02-19 14:13:35 +00:00
Dmitry Stogov 32d7fd76a2 Fixed bug #40286 (PHP fastcgi with PHP_FCGI_CHILDREN don't kill children when parent is killed) 2007-02-16 11:30:38 +00:00
Dmitry Stogov d57b78aab1 Fixed bug #40414 (possivle endless fork() loop when running fastcgi) 2007-02-15 12:33:54 +00:00
Dmitry Stogov 68885b28dc Prevent flush() of closed handle on php_module_shutdown() 2007-01-29 19:38:21 +00:00
Sebastian Bergmann 3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Antony Dovgal 36e75c5669 make sure l != 0 2006-12-28 22:36:45 +00:00
Dmitry Stogov 9fa7b87ff0 Removed unnecessary getenv/putenv calls 2006-11-15 13:34:05 +00:00
Dmitry Stogov ad2b3e69f0 Fixed wrong ext/filter behavior. It might not to register FastCGI environment variables and make memory leaks. 2006-11-15 11:14:27 +00:00
Dmitry Stogov dc5124d2bb cgi.* and fastcgi.* directives are moved to INI subsystem. The new directive cgi.check_shebang_line can be used to ommiting checnk for "#! /usr/bin/php" line. 2006-11-14 10:32:11 +00:00
Ilia Alshanetsky cca8f2ded2 Fixed build 2006-10-25 14:04:48 +00:00
Ilia Alshanetsky 3642ebdcdd Added filter support for $_SERVER in cgi/apache2 sapis
Make sure PHP_SELF if filtered in Apache 1 sapi
2006-10-23 19:17:51 +00:00
Antony Dovgal b6e0aa9856 fix CGI build 2006-09-23 12:27:35 +00:00
Ilia Alshanetsky 12b0b6368a MFB: Restore support for unquoted -d options 2006-09-22 17:42:08 +00:00
Dmitry Stogov b94fb5e09c FastCGI environment variables must not be overriden by system environment variables 2006-08-31 13:12:18 +00:00
Antony Dovgal 5c06523d75 fix #37920 (compilation problems on z/OS) 2006-06-27 08:26:54 +00:00
Hannes Magnusson 9f96f0340b Argument info 2006-06-25 19:17:20 +00:00
Antony Dovgal d6669ef575 plug leak in CGI SAPI when running scripts with query string in console 2006-06-19 17:49:20 +00:00
Antony Dovgal cb68193690 add missing ifdef and avoid "unused variable" warning 2006-06-19 11:38:51 +00:00
Nuno Lopes f1d78f433d MFB 2006-06-17 11:14:21 +00:00
Dmitry Stogov e901a7a870 Removed warnings 2006-06-13 14:22:27 +00:00
Johannes Schlüter 9c5fdd1b7f - Removed useless -g command line option from CGI and CLI
- Fixed conflicting behaviour if -B and -a are set with CLI
- Fixed handling of auto_prepend and exceptions in readline-a-mode
2006-06-03 22:00:30 +00:00
Michael Wallner 4ce0141713 - new output control code
# scan README.NEW-OUTPUT-API to get a grasp
# tree has been tagged with BEFORE_NEW_OUTPUT_API
#
# TODO:
#  - improve existing output handlers
#  - move zlib.output_compression cruft from SAPI.c to zlib.c
#  - output_encoding handling was ambigious, resp. is undefined yet
#  - more tests
2006-06-02 19:51:43 +00:00
Dmitry Stogov 94004da0ed Fixed bug #37256 (php-fastcgi dosen't handle connection abort) 2006-05-24 09:41:55 +00:00
Dmitry Stogov 0f9c8e550e Fixed bug #37341 ($_SERVER in included file is shortened to two entries, if $_ENV gets used). 2006-05-24 07:52:58 +00:00
Dmitry Stogov c0c388832c - Removed source compatibility with libfcgi
- Optimized access to FastCGI environment using HashTable instead of linear sear
ch
- Allowed PHP_FCGI_MAX_REQUESTS=0 to disable PHP die
- Allowed PHP_FCGI_CHILDREN=0 to disable PHP spawn workers
2006-05-15 14:30:50 +00:00
Antony Dovgal 8ab0e121d4 plug leak 2006-05-03 19:40:49 +00:00
Dmitry Stogov 83657db8ff Fixed memory leaks 2006-04-18 06:58:54 +00:00
Dmitry Stogov f3c00034b6 CGI anf FastCGI assume $_SERVER and $_ENV have the same values,
so we don't need construct the same arrays twich and may just copy it
2006-04-07 13:45:51 +00:00
Dmitry Stogov 3ada78d408 Removed unnecessary copying 2006-04-07 12:39:28 +00:00
Dmitry Stogov 4b09d37f66 MTH: Allowed '-b' with UNIX sockets 2006-03-23 10:20:14 +00:00
Dmitry Stogov 34c493ea07 Unicode support for dl() patch. 2006-03-17 13:45:43 +00:00
Dmitry Stogov f584e957ac Optimized FastCGI SAPI check. Check for ini options only once. 2006-03-17 09:32:47 +00:00
Dmitry Stogov 86780519d4 Disabled dl(). Now it is enabled only when a SAPI layer registers it explicitly. Only CLI, CGI and EMBED do this. 2006-03-16 16:53:10 +00:00
Pierre Joye bb1ec86f9d - remove magic_quotes_gpc, magic_quotes_runtime, magic_quotes_sybase
(calling ini_set('magic_....') returns 0|false
- get_magic_quotes_gpc, get_magic_quotes_runtime are kept but always return false
- set_magic_quotes_runtime raises an E_CORE_ERROR
2006-03-08 00:43:32 +00:00
Alex Waugh b7d6d705f1 Fix for RISC OS 2006-03-07 22:37:18 +00:00
Dmitry Stogov 09ca61c125 Made server wide switch for unicode on/off (according to PDM). 2006-02-13 10:23:59 +00:00
Dmitry Stogov 47e607a93a Fixed bug #36158 (SIGTERM is not handled correctly when running as a FastCGI server) 2006-02-03 16:30:27 +00:00
foobar 251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
Zeev Suraski 91a735502c Reimplement FastCGI interface
Due to licensing restrictions that actually don't allow anybody to use
the libfcgi code without prior approval from Open Market, which is
impossible to obtain - we decided to reimplement this interface from
scratch.  The result is actually slightly faster, and more importantly,
clear of any copyright issues.

Implementation by Dmitry
2005-12-25 12:45:01 +00:00
Dmitry Stogov 34bc5d7d41 Bug #34429 (Output buffering cannot be turned off with FastCGI) 2005-12-09 16:58:02 +00:00
foobar 0586ac73f1 - fix possible compile error 2005-12-03 01:27:37 +00:00