Jérôme Loyet
b38d57249e
- add "listen queue len" stat (thx to Andrei Nigmatulin)
2010-11-11 02:34:47 +00:00
Jérôme Loyet
469746fa03
- syntax and minor optimizations
2010-11-11 01:01:56 +00:00
Jérôme Loyet
a2c55a138d
- don't call shutdown functions after child ends softly, let the master process call them
2010-11-10 23:54:14 +00:00
Jérôme Loyet
f0621d39cd
- correct time comparison for determining the last idle child
2010-11-07 21:47:14 +00:00
Jérôme Loyet
b41d13ba98
- change signal from SIGTERM to SIGQUIT for killing a child process by the dynamic process manager
2010-11-07 19:45:51 +00:00
Ilia Alshanetsky
f89effd2a8
Updated _SERVER['REQUEST_TIME'] to include microsecond precision.
2010-11-06 17:14:21 +00:00
Dmitry Stogov
bd8f3908c4
Reverted wrong patch
2010-09-20 10:45:22 +00:00
Kalle Sommer Nielsen
210fe80bd5
Fix incompatible types, we need to use a char here for recv()
2010-09-19 19:18:30 +00:00
Pierre Joye
14e77486e0
- unused, double declared
2010-09-15 22:25:44 +00:00
Jérôme Loyet
8b9ed0d369
- remove a memory leak (missing efree())
2010-09-14 15:33:43 +00:00
Pierre Joye
b6d8462ab2
- fix #48831 php -i has different output to php --ini
2010-09-14 10:36:21 +00:00
Jérôme Loyet
a7e18ea855
- remove FPM specific version which is irrelevant since FPM integration into core.
2010-09-07 22:03:43 +00:00
Jérôme Loyet
75891691ed
- Fixed bug #52498 (libevent was not only linked to php-fpm)
2010-09-07 21:12:28 +00:00
Dmitry Stogov
c290767ed7
Fixed bug #46723 (FastCGI persistent connection is incredibly slow due to TCP ack delay).
2010-09-06 11:11:40 +00:00
Felipe Pena
7396657fc1
- Fixed compiler warning (missing return statement)
2010-09-01 23:21:03 +00:00
Dmitry Stogov
6bc16cce8f
Reduced overhead of FastCGI using near-perfect hash function and predcalculated hash values.
2010-09-01 15:34:48 +00:00
Dmitry Stogov
001d83dc47
invalid length
2010-09-01 14:42:43 +00:00
Jérôme Loyet
70d7d86505
- Fixed bug #52725 (gcc builtin atomic functions were sometimes used when they were not available).
2010-09-01 08:17:18 +00:00
Jérôme Loyet
4d62c8c501
- add 'max children reached' to the FPM status page. It shows how many times
...
a pool has reached the max_children parameter.
2010-08-31 14:49:16 +00:00
Jérôme Loyet
b212312a93
- Add libevent version to the startup debug log in FPM.
2010-08-31 09:41:04 +00:00
Jérôme Loyet
bf28d740e3
- Changed listen.backlog in the FPM configuration file to default to 128
...
instead of -1 (except on FreeBSD and OpenBSD). This is the same value
as the one used in the cgi sapi. This patch completes revision 302725.
2010-08-31 09:33:53 +00:00
Jérôme Loyet
d5a12aef12
- only one process (for all pools) could be killed by the 'dynamic' process manager. Now it's one process per pool which can be killed by the 'dynamic' process manager.
...
- rename nonsense variable (i)
2010-08-30 15:21:31 +00:00
Dmitry Stogov
d4c2c6c6ba
Don't check FCGI_WEB_SERVER_ADDRS for UNIX sockets
2010-08-27 08:50:32 +00:00
Dmitry Stogov
a95dd97752
Added apache compatible functions (apache_child_terminate, getallheaders, apache_request_headers, apache_response_headers) to FastCGI SAPI
2010-08-27 08:34:44 +00:00
Dmitry Stogov
d663b9cc77
Don't try to read the rest of malformed FCGI requests, close immediately. It saves one recv() call for proper FCGI request.
2010-08-25 13:48:16 +00:00
Dmitry Stogov
7fc86e5cb4
ws
2010-08-25 11:44:15 +00:00
Jérôme Loyet
266e369184
- Changed listen.backlog in the FPM configuration file to default to 128
...
instead of -1. This is the same value as the one used in the cgi sapi.
2010-08-23 23:22:36 +00:00
Jérôme Loyet
f5e38e30b6
- Fixed bug #52674 (FPM Status page returns inconsistent Content-Type headers).
2010-08-23 20:40:44 +00:00
Jérôme Loyet
6b8f3c0c59
- Fix #52407 (use __sync_bool_compare_and_swap in fpm_atomic.h if gcc >= 4.1 is used - credit to geissert)
2010-08-21 06:46:18 +00:00
Jérôme Loyet
06228b2cab
- typo (thx to sixd)
2010-08-20 17:00:57 +00:00
Jérôme Loyet
99a4506787
Fix #52609 (INI scanner did not use ZEND_INI_SCANNER_NORMAL)
2010-08-20 08:33:57 +00:00
Kalle Sommer Nielsen
250fcf9317
Nuke compiler warning, wrong fix that shouldn't have been in the previously commit
2010-08-18 18:00:33 +00:00
Kalle Sommer Nielsen
34b631f679
Pass the TSRMS pointers to sapi_module_struct.log_message, this saves some TSRMLS_FETCH() calls in a few of our SAPI's
2010-08-18 13:34:40 +00:00
Kalle Sommer Nielsen
65d031d3da
Use the TSRMLS_DC/TSRMLS_CC macros instead of TSRMLS_FETCH()
2010-08-18 12:59:52 +00:00
Dmitry Stogov
d6e772a1d0
Fixed ZTS build
2010-08-18 11:59:30 +00:00
Dmitry Stogov
bfbfd15a2a
improved performance of FastCGI request parsing
2010-08-18 08:22:41 +00:00
Kalle Sommer Nielsen
aae13b29a9
Fixed bug #50804 (Document configure.js --enable-crt-debug)
2010-08-11 22:38:15 +00:00
Jérôme Loyet
eb2266197f
BUG: all value comparaisons were not case insensitive in the conf file parser
2010-08-02 21:46:52 +00:00
Jérôme Loyet
71eee6b1d4
typo
2010-08-02 09:28:54 +00:00
Jérôme Loyet
5181210a7a
correct php-fpm.conf: slowlog has no default value
2010-08-02 09:02:48 +00:00
Jérôme Loyet
51dd4c2feb
- Fixed bug #52476 (move php-fpm man page from section 1 to section 8)
2010-07-29 22:07:00 +00:00
Raphael Geissert
197ab331eb
Fix required facilities for php-fpm's init script
...
$all should only be used in rare, and very specific, cases.
2010-07-29 19:13:42 +00:00
Dmitry Stogov
f20f516129
typo
2010-07-20 11:28:53 +00:00
Dmitry Stogov
b4216e0a82
Use zend_stream API to open main PHP script in CGI/FastCGI. This allows to override the open function by opcode caches and eliminate the actual open syscall.
2010-07-07 16:54:55 +00:00
Antony Dovgal
388a9ccaf0
fix typos and use correct directive names in error messages
2010-07-06 11:37:19 +00:00
Dmitry Stogov
d22dff0903
reduced request processing overhead
2010-07-05 15:40:54 +00:00
Felipe Pena
f2419953d9
- MF5.3: Reverted fix for bug #48930 (due binary compatibility breakage)
...
# To commit a new common fix
2010-06-30 02:30:14 +00:00
Felipe Pena
22e2302e78
- Improved initialization
2010-06-27 22:13:41 +00:00
Felipe Pena
3396a6d185
- Fixed bug #48930 (__COMPILER_HALT_OFFSET__ incorrect in PHP >= 5.3)
2010-06-27 21:46:16 +00:00
Felipe Pena
80926568f1
- Fixed bug #52183 (Reflectionfunction reports invalid number of arguments for function aliases)
2010-06-26 16:03:39 +00:00
Sriram Natarajan
4278f56f60
- Fixed bug #52162 (custom request header variables with numbers are removed)
2010-06-23 19:06:33 +00:00
Jérôme Loyet
84d268f63b
- Fixed bug #52086 (No new line at the end of a included file crahes the PHP FPM daemon)
2010-06-19 16:31:19 +00:00
Antony Dovgal
b95170580c
improve ptrace() test
...
change error to warning - there can be no trace method available at all
2010-06-16 08:58:42 +00:00
Jérôme Loyet
12e8eef760
Fix #52067 , chroot and chdir path were not checked at startup. If configured with unexistant directories, FPM entered in an error loop.
2010-06-13 10:30:35 +00:00
Antony Dovgal
61344366ae
support both 'warn' and 'warning' as error levels
2010-06-08 18:59:11 +00:00
Antony Dovgal
04d673472f
fix micro-memleaks (happened once per process)
2010-06-08 12:02:55 +00:00
Michael Wallner
0ed3973331
fix fpm build
2010-06-01 13:51:05 +00:00
Michael Wallner
11d24c1593
* implement new output API, fixing some bugs and implementing some feature
...
requests--let's see what I can dig out of the bugtracker for NEWS--
and while crossing the road:
* implemented new zlib API
* fixed up ext/tidy (what was "s&" in zend_parse_parameters() supposed to do?)
Thanks to Jani and Felipe for pioneering.
2010-05-31 10:29:43 +00:00
Jérôme Loyet
27c2c35953
fix commit 299383
2010-05-29 22:00:43 +00:00
Jérôme Loyet
bc4c3fdd83
typo (thx to Brian P. Mercer)
2010-05-29 10:39:35 +00:00
Jérôme Loyet
8cf687608e
bug: include paths were not evaluated to to full path
2010-05-27 22:31:28 +00:00
Jérôme Loyet
167f758aca
typo
2010-05-27 20:59:21 +00:00
Johannes Schlüter
61db5cf98a
- Improved CLI Interactive readline shell (Johannes)
...
. Added cli.pager ini setting to set a pager for output.
. Added cli.prompt ini settingto configure the shell prompt.
. Added shortcut #inisetting=value to change ini settings at run-time.
. Don't terminate shell on fatal errors.
A pager can be a an shell command which will receive the command output on its
STDIN channel
php > #cli.pager=less
php > phpinfo();
(output will appear in the pager)
php > #cli.pager=grep -i readline
php > phpcredits();
Readline => Thies C. Arntzen
php > #cli.pager=
(output appears again direct on the terminal)
A prompt can contain a few escape sequences like
php > #cli.prompt=\e[032m\v \e[031m\b \e[34m\> \e[0m
5.3.99-dev php > //Colorful prompt with version number
A prompt can also contaian PHP code in backticks
php > #cli.prompt=`echo gethostname();` \b \>
guybrush php >
2010-05-20 20:55:33 +00:00
Jérôme Loyet
c350a3f761
change the startup libevent info log from notice to debug
2010-05-19 20:12:56 +00:00
Jérôme Loyet
257a8dac20
fix undefined value for log_level when not set in the conf file
2010-05-19 20:11:56 +00:00
Jérôme Loyet
962e95df52
- set hard and soft limit (instead of only the soft limit) when setting rlimit_core or rlimit_files
...
- remove the debug log about getrlimit on the main process wich is meaningless when rlmit_* settings are set
2010-05-19 18:37:25 +00:00
Jérôme Loyet
d3e1b1dbc3
- #51821 , fix --with-libevent-dir (patch by tony2001)
2010-05-19 11:29:31 +00:00
Antony Dovgal
b9bec41ce1
fix external build
2010-05-14 15:22:38 +00:00
Jérôme Loyet
3e51f4a966
Fix #51799 , when glob returns nothing, it was handle as an error instead of a warning.
2010-05-12 18:29:09 +00:00
Raphael Geissert
bce8aae080
Document CGI options in the manpage (bug #51718 )
...
Patch by Daniel Egeberg
2010-05-11 15:07:31 +00:00
Jérôme Loyet
ef9ea5f967
Fix #51736 , wrong checks on dynamic parameters
2010-05-08 08:52:32 +00:00
Rob Richards
60f62fc563
fix non-windows builds
2010-05-04 12:12:28 +00:00
Pierre Joye
56e327ba27
- revert fix for #51723 in 5.2, vc6 does not support strtoi64, use builtin functioon in 5.3 (trunk is vc9+ only)
2010-05-03 19:51:59 +00:00
Pierre Joye
d90f8560aa
- #51273 , Content-length header is limited to 32bit integer with apache2/windows
2010-05-03 17:47:58 +00:00
Pierre Joye
9720dea2c7
- WS
2010-05-03 14:30:14 +00:00
Antony Dovgal
47aa194a10
merge the fix for #51688
2010-04-30 08:20:57 +00:00
Pierre Joye
8a197878c8
- Fix #51688 , ini per dir crashes when invalid document root are given
2010-04-30 08:15:09 +00:00
Rob Richards
0a34d10783
revert change #298288 : Remove old dsp/dsw/makefile files
2010-04-28 14:41:51 +00:00
Kalle Sommer Nielsen
dd8e59da8f
Removed safe_mode
...
* Removed ini options, safe_mode*
* Removed --enable-safe-mode --with-exec-dir configure options on Unix
* Updated extensions, SAPI's and core
* php_get_current_user() is now declared in main.c, thrus no need to include safe_mode.h anymore
2010-04-26 23:53:30 +00:00
Jérôme Loyet
34ba9e39fa
Add PHP_VALUE and PHP_ADMIN_VALUE interpretation from fastcgi headers.
...
It works as php_value and php_admin_value from the main conf file or apache sapi.
See bug (request) #51595
2010-04-23 16:05:52 +00:00
Jérôme Loyet
acf5fba0fb
Remove unused functions / variables / #if 0 blocks
2010-04-23 15:09:28 +00:00
Jérôme Loyet
757d7ace9a
typo
2010-04-23 13:56:14 +00:00
Jérôme Loyet
0b2a196431
typo and errors in php-fpm.conf
2010-04-23 08:06:49 +00:00
Jérôme Loyet
7ac145d9f3
correct wrong comparison (thx to felipe)
2010-04-22 07:14:06 +00:00
Kalle Sommer Nielsen
518a17e7bf
Remove old dsp/dsw/makefile files, these arent used by the build system anymore and are barely updated nor available for all extensions
2010-04-21 23:36:49 +00:00
Felipe Pena
696f6c7c93
- Fix ZTS build
2010-04-21 23:22:20 +00:00
Jérôme Loyet
3defa292f2
switch the configuration syntax from xml to ini
...
It's been describe in the RFC: http://wiki.php.net/rfc/fpm/ini_syntax
2010-04-21 22:56:33 +00:00
Kalle Sommer Nielsen
febee11285
Removed register_globals
2010-04-21 01:27:22 +00:00
Jérôme Loyet
bae9248602
typo
2010-04-20 23:31:13 +00:00
Jérôme Loyet
5556956899
Add a check request_method. If fcgi protocol is not followed, a segfault can occur.
2010-04-20 23:28:20 +00:00
Jérôme Loyet
ca8756478a
Change php_defines in configuration file to php_value,php_admin_value,php_flag,php_admin_flag (as in the apache sapi).
...
php_admin* sets values as ZEND_INI_SYSTEM mode while php_* sets values as ZEND_INI_USER
2010-04-20 21:13:40 +00:00
Jérôme Loyet
213436c3fb
true/false was not a valid value for boolean directives
2010-04-19 20:45:03 +00:00
Jérôme Loyet
5a211da7af
correct path in the man page
2010-04-19 18:02:36 +00:00
Antony Dovgal
b299e90b79
use new type + const static
2010-04-13 12:16:26 +00:00
Antony Dovgal
d77d6153ec
re-add updated FPM
2010-04-13 12:13:46 +00:00
Antony Dovgal
3ebdadf8f6
prepare to re-add newer FPM version
2010-04-13 12:13:24 +00:00
Kalle Sommer Nielsen
7ef4cdf471
Remove a couple TSRMLS_FETCH() calls around ext/main/sapi
2010-04-13 11:02:15 +00:00
Antony Dovgal
06b9943842
add FPM sapi to trunk
2010-04-12 11:22:24 +00:00
Johannes Schlüter
26af575926
Add ReflectionZendExtension class and --rz option to CLI
2010-03-30 22:35:23 +00:00
Jani Taskinen
af49e58f51
- Reverted r296062 and r296065
2010-03-12 10:28:59 +00:00
Jani Taskinen
06f072cb5e
MFH: Improved / fixed output buffering (Michael Wallner)
2010-03-11 10:24:29 +00:00
Felipe Pena
68f805a6d0
- Fixed bug #51237 (milter SAPI crash on startup)
...
patch by: igmar at palsenberg dot com
2010-03-08 23:29:46 +00:00
Felipe Pena
9186e478fa
- Fix php-milter sample usage (-r option doesn't exists here)
2010-03-08 22:58:31 +00:00
Kalle Sommer Nielsen
bf7de28e46
Fixed bug #50795 (man pages have bad whatis entries)
...
- Patch by Debian
2010-02-17 05:32:52 +00:00
Rasmus Lerdorf
1947334023
Fix bug #50940
2010-02-05 18:59:05 +00:00
Ilia Alshanetsky
8543914732
Update copyright year in the man file
2010-01-04 12:38:07 +00:00
Sebastian Bergmann
9ba1e81665
sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
2010-01-03 09:23:27 +00:00
Antony Dovgal
6a9d78f102
fix minor leak in CGI sapi (happened once per child)
2009-12-23 09:40:28 +00:00
Felipe Pena
4411621217
- Fixed bug #50209 (Compiling with libedit cannot find readline.h)
...
(patch by tcallawa at redhat dot com)
2009-12-13 17:06:47 +00:00
Jani Taskinen
c4819e9ff3
MFH: static before const
2009-12-08 17:30:22 +00:00
Jani Taskinen
4944354eec
- Sync files
2009-12-02 08:22:05 +00:00
Dmitry Stogov
b26c9d400d
Fixed bug #50168 (FastCGI fails with wrong error on HEAD request to non-existant file)
2009-11-30 14:43:22 +00:00
Jani Taskinen
bf7ed5eff5
- Fixed bug #49677 (ini parser crashes with apache2 and using ${something} ini variables)
2009-11-25 12:35:42 +00:00
Jani Taskinen
afc44b981e
ws
2009-11-25 12:26:10 +00:00
Uwe Schindler
bdef3ee350
Fix bug #50140 : With default compilation option, php symbols are unresolved for nsapi
2009-11-17 21:17:49 +00:00
Uwe Schindler
d80507b7d9
As I am working on it, further improvement for bug #50087
2009-11-12 17:13:05 +00:00
Uwe Schindler
47189cac7b
Fix bug #50087 : NSAPI performance improvements
2009-11-12 15:19:35 +00:00
Antony Dovgal
f298e6ce6e
fix crash on empty doc_root
2009-10-20 12:57:44 +00:00
Stanislav Malyshev
a226082475
improve fix for #49767 and #47627 - make PHP report
...
"no script" on 404 again
2009-10-16 23:34:31 +00:00
Pierre Joye
e4adfe4f61
- #48779 , fix another use case where / usage may differ
2009-10-15 13:09:25 +00:00
Pierre Joye
e5d4b019b9
- #48779 , improve fix, drop usage of _tolower and use zend_strtolower
2009-10-12 14:40:27 +00:00
Felipe Pena
994307d429
- Fixed build and comment-style
2009-10-09 20:01:16 +00:00
Garrett Serack
8e5a00e546
- changed ini file directives [PATH=](on Win32) and [HOST=](on all) to be case insensitive (garretts)
2009-10-09 19:43:00 +00:00
Ilia Alshanetsky
9e76501f1e
Fixed test
2009-09-13 13:14:11 +00:00
Jani Taskinen
ccd6e501d1
- Simplified a bit and fixed possible memory corruption and definate leak.
2009-09-10 16:19:42 +00:00
Felipe Pena
5c9579c27f
- Drop unused var
2009-09-05 18:22:16 +00:00
Jani Taskinen
f723d368b3
- Fixed bug #49182 (PHP CGI always outputs the shebang line)
2009-09-05 17:07:14 +00:00
Pierre Joye
4417646d72
- be sure to get all crt dbg errors in stderr
2009-09-02 20:02:17 +00:00
Pierre Joye
48d031aa6e
- fix build
2009-08-26 19:17:32 +00:00
Ilia Alshanetsky
19f11e401d
Fixed variable clobbering
2009-08-26 15:29:06 +00:00
Uwe Schindler
847f637497
MFH: Fix bug #46020 : With Sun Java System Web Server 7.0 on HPUX, #define HPUX
2009-08-03 10:13:49 +00:00
Garrett Serack
f56d6b67b5
- Updated fix for bug #48911 (embed sapi misses SAPI_API)
...
#- Windows didn't need SAPI_API
2009-07-30 20:20:56 +00:00
Jani Taskinen
907763a20a
- Fixed bug #48911 (embed sapi misses SAPI_API)
2009-07-28 21:07:43 +00:00
Jani Taskinen
555b177c83
- Fix this again :)
2009-07-25 21:07:02 +00:00
Jani Taskinen
dad7c68b27
- Fix test
2009-07-25 00:35:25 +00:00
Jani Taskinen
6dc86facd0
- Fixed bug #48802 (printf() returns incorrect outputted length)
2009-07-23 14:54:04 +00:00
Johannes Schlüter
d4671b904d
Improve wording and drop outdated link
2009-06-29 09:37:06 +00:00
Pierre Joye
a7db554314
- #48624 .user.ini never gets parsed
2009-06-22 14:10:40 +00:00
Johannes Schlüter
47be72139d
MFH: It's 2009
2009-06-21 16:44:50 +00:00
Pierre Joye
6086c0866c
- kill unused var
2009-06-17 19:28:52 +00:00
Pierre Joye
f2457fbd56
- #47318 , UMR when trying to activate user config
2009-06-17 19:22:24 +00:00
David Soria Parra
368569c05b
MFH: Fix bug #47042 (cgi sapi is incorrectly removing the SCRIPT_FILENAME for non apache).
...
The fix was provided by Sriram Natarajan.
2009-06-09 13:31:39 +00:00
Matt Wilmas
d55300298e
MFH: Added zend_eval_stringl and made create_function(), etc. binary-safe
2009-06-05 18:50:32 +00:00
Jani Taskinen
a332541aaa
MFH:- Fixed bug #48419 (non-portable STDIN fileno in cgi_main.c)
2009-06-04 11:51:43 +00:00
Jani Taskinen
29c0b397ec
MFH: CS + WS changes
2009-06-04 11:47:27 +00:00
Arnaud Le Blanc
6540730732
MFH: Fix skipif
2009-05-20 10:08:32 +00:00
Kalle Sommer Nielsen
01fc4ed1d6
MFH: Fix compiler warnings
2009-05-19 16:03:36 +00:00
Arnaud Le Blanc
a772d7c3ef
MFH
2009-04-24 19:48:41 +00:00
Hannes Magnusson
e2576c3504
MFH: Inglés gramática
2009-04-09 10:20:02 +00:00
Hannes Magnusson
6cda8a274a
MFH: Fixed bug#47427 (-s outputs, not displays)
2009-04-09 10:07:56 +00:00
Felipe Pena
844ae2f336
- MFH: Fix ZTS build
2009-04-08 00:15:48 +00:00
Arnaud Le Blanc
95b308949c
MFH: Fixed bug #47893 (CLI aborts on non blocking stdout)
2009-04-07 16:11:19 +00:00
Kalle Sommer Nielsen
ec3649530f
MFH: Fixed compiler warning
2009-03-30 14:24:16 +00:00
Uwe Schindler
0935ae193c
MFH: Fix a sigsegv on server shutdown, add missing sapi_shutdown().
2009-03-23 23:13:14 +00:00
Pierre Joye
afc5630357
- disable it when ZTS is disabled
2009-03-20 18:49:37 +00:00
Pierre Joye
39988315e0
- fix build
2009-03-16 10:13:18 +00:00
Pierre Joye
3612ddde16
- revert last commit (tree was not updated)
2009-03-16 10:08:51 +00:00
Pierre Joye
3091ece096
- fix vc6 build
2009-03-16 09:59:16 +00:00
Ilia Alshanetsky
5e09a71769
Adjust previous fix to avoid compiler warnings
2009-03-07 22:36:35 +00:00
Ilia Alshanetsky
9d3030d5f3
Improved parameter handling
2009-03-07 21:56:43 +00:00
George Wang
22badf88b0
make STDOUT function as STDERR, in case any module call print()
2009-02-27 23:33:01 +00:00
Pierre Joye
1eaca26ad8
- MFH: fix build (use the same arginfo than the aliased func)
2009-02-02 08:47:23 +00:00
Felipe Pena
e5f709d290
MFH:
...
- WS, CS
- Added missing param. checking
- Fixed type for 'l'
2009-01-30 14:38:12 +00:00
Ilia Alshanetsky
58a6bddf68
Improved parameter parsing
2009-01-27 21:59:30 +00:00
Scott MacVicar
390ccd899d
MFH Fix apache2handler under Apache 2.3.0-alpha
2009-01-19 19:32:40 +00:00
David Soria Parra
65e3d00366
MFH: Fix #47149 . Remove check for script_filename = path_translated, as this the actual value that we get from apache.
2009-01-19 18:17:32 +00:00
Uwe Schindler
b70260d392
revert last commit, sizeof does not work in preprocessor :(
2009-01-11 13:47:01 +00:00
Uwe Schindler
4db4009c71
MFH: add sanity check for time_t size of win32
2009-01-11 13:39:39 +00:00
Dmitry Stogov
828566dafb
Disable dl() in CGI and FastCGI modes
2009-01-11 08:35:36 +00:00
David Soria Parra
544150aef8
MFH: Fixed bug #47042 (PHP cgi sapi is removing SCRIPT_FILENAME for non apache).
2009-01-09 22:13:55 +00:00
Ilia Alshanetsky
71ea95354b
MFH: Corrected fix for bug #46844 to only trigger on the 1st line of CLI
...
opened files.
2009-01-09 17:21:12 +00:00
Uwe Schindler
3d4c47e2e5
MFH: the #ifdef was never working. If Sun extends its NSAPI to support subrequests, much of this code must be rewritten. Because of that it is better to have a clean start. This commit does not change behaviour.
2009-01-06 13:46:20 +00:00
Ilia Alshanetsky
f0240a0382
MFB: Improved parameter handling
2009-01-05 16:24:26 +00:00
Pierre Joye
c6f6997504
- fix build
2009-01-04 20:18:57 +00:00
Marcus Boerger
2aba368462
- MFH Catch exceptions in cli -a
2009-01-02 13:14:49 +00:00
Hannes Magnusson
1ceaa1de72
Nuke unused variables
2008-12-31 14:45:14 +00:00
Marcus Boerger
f77719d800
MFH
...
- Changed dl() to be disabled by default. Enabled only when explicitly
registered by the SAPI layer. Enabled only with CLI, CGI and EMBED. (Dmitry)
[DOC]
2008-12-31 14:27:09 +00:00
Marcus Boerger
8bdeb10a08
- MFH Fix test
2008-12-31 12:33:12 +00:00
Sebastian Bergmann
08659c2dcd
MFH: Bump copyright year, 3 of 3.
2008-12-31 11:15:49 +00:00
Stanislav Malyshev
40cd1d49b3
MFH fix #46005
2008-12-17 11:34:50 +00:00
Pierre Joye
cd57fe323d
- WS
2008-12-11 10:22:12 +00:00
Pierre Joye
38b1e4c702
- ws
2008-12-11 00:13:48 +00:00
Matt Wilmas
a31c7ebdff
MFH: Fixed bug #46782 (fastcgi.c parse error)
2008-12-07 10:55:16 +00:00
Uwe Schindler
f24ac1603c
remove unneeded includes (not needed since NSAPI 3.0, wich is very old). This is needed for cleanup of the windows build.
2008-12-01 10:11:09 +00:00
Uwe Schindler
482d167a77
MFH: support stat cache of webserver (like apache does)
2008-11-29 23:44:08 +00:00
Uwe Schindler
0bcf89e266
MFH: Some nsapi.h specific ifdefs unified & corrected
2008-11-29 19:57:49 +00:00
Uwe Schindler
7db781fc1b
MFH: remove one stat call and replace by cached one
2008-11-29 19:37:06 +00:00
Uwe Schindler
321b1b6884
MFH:
...
- Implement the changes needed for http://news.php.net/php.cvs/54228
- Additionally implement flushing in NSAPI and fix some small things
2008-11-29 14:45:51 +00:00
Stanislav Malyshev
09e37bc5ed
MFB: init server context before config variables are processed
2008-11-29 00:45:31 +00:00
Dmitry Stogov
c5c9e45af9
Fixed bug #46366 (bad cwd with / as pathinfo)
2008-11-28 11:57:02 +00:00
Arnaud Le Blanc
cc2c720912
MFH: Fixed endless loop in cli when ignore_user_abort is on
2008-11-25 03:52:00 +00:00
Stanislav Malyshev
281676da26
MFB: fix php_value application order for Apache
2008-11-24 22:23:11 +00:00
Alexey Zakhlestin
202426a1fb
new parameter-parsing api
2008-11-18 19:07:47 +00:00
Felipe Pena
fc2fb50d09
- MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro
2008-11-17 11:28:01 +00:00
Arnaud Le Blanc
aaaf67e19e
Updated header_handler in apache2filter and apache_hooks
2008-11-13 13:41:08 +00:00
Arnaud Le Blanc
8c4151ad72
Added header_remove() (chsc at peytz dotdk, Arnaud)
...
[DOC] proto void header_remove([string header_name])
Removes an HTTP header previously set using header()
The header_name parameter is optionnal, all headers are
removed if it is not set
[SAPIs] The header_handler callback in sapi_module_struct has
been changed, it now take a new argument.
When it is set to SAPI_HEADER_DELETE, sapi_header->header is
the name of an header, header_handler has to delete it.
When it is set to SAPI_HEADER_DELETE_ALL, header_handler has
to delete all headers.
When sapi_header_op_enum is SAPI_HEADER_ADD or _REPLACE,
sapi_header->header is in the form "Name: value", header_handler
has to add or replace the given header.
In all cases, header_handler must not free sapi_header or
sapi_header->header. SAPI_HEADER_ADD must be returned if the
header has been added or replaced, or 0 in other cases.
2008-11-13 10:14:04 +00:00
Rasmus Lerdorf
f121e72ac7
Fix for bug #46525
2008-11-08 22:56:17 +00:00
Alexey Zakhlestin
f9d86cf9d3
new parameter-parsing API
2008-11-07 13:28:23 +00:00
Arnaud Le Blanc
9b0d76d585
Open STDIN and php://stdin streams with the relevant
...
wrapper when the file descriptor is a socket (inetd, etc)
Fixes bug #43731
2008-11-04 21:05:31 +00:00
Felipe Pena
7a37fa2d6b
- Revert ZEND_BEGIN_ARG_INFO change
2008-11-02 21:19:39 +00:00
Felipe Pena
8fa119a6f6
- MFH: Fixed bug #46382 (Mismatching allocation and deallocation in stresstest.cpp) (dvice_null at yahoo dot com)
2008-10-24 23:16:46 +00:00
Felipe Pena
cc9a286005
- MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro
2008-10-24 16:03:15 +00:00
Arnaud Le Blanc
e3c556c85e
MFH: Fixed FCGI_GET_VALUES requests ( fixes #45522 )
2008-10-21 03:19:28 +00:00
Ilia Alshanetsky
e45af91313
Fixed bug #46319 (PHP sets default Content-Type header for HTTP 304 response
...
code, in cgi sapi)
2008-10-17 01:31:12 +00:00
Rob Richards
a16bcaeb4b
MFH: use getenv
2008-09-30 15:11:05 +00:00
George Wang
ffe4bd566f
*** empty log message ***
2008-09-21 02:38:32 +00:00
George Wang
0f4f00e3ae
disable core dump by default
2008-09-21 02:34:08 +00:00
Dmitry Stogov
51eb7f5de9
Fixed bug #45860 (header() function fails to correctly replace all Status lines)
2008-09-02 13:22:16 +00:00
Dmitry Stogov
762d6706d3
Fixed bug #42318 (problem with nm on AIX, not finding object files)
2008-09-01 13:15:31 +00:00
Marcus Boerger
3dadcee60b
- MFH Fix test
2008-08-30 11:32:29 +00:00
George Wang
f091e745c9
ignore signal SIGXFSZ
2008-08-26 22:05:17 +00:00
Alexey Zakhlestin
e7eba5af6a
switch to the new parameter-parse API
2008-08-26 17:34:16 +00:00
Rasmus Lerdorf
421751d240
Remove stray folding tag here
2008-08-26 15:37:01 +00:00
Dmitry Stogov
ced680941a
Fixed bug #45786 (FastCGI process exited unexpectedly)
2008-08-26 09:56:08 +00:00
Dmitry Stogov
5304e5631f
Fix for bug #45786 (FastCGI process exited unexpectedly)
2008-08-18 10:49:35 +00:00
Dmitry Stogov
4362b07e62
Fixed double call to MSHUTDOWN in case of php-cgi -m
2008-08-15 07:30:50 +00:00
Jani Taskinen
13dff74889
fix tests
2008-08-14 20:51:35 +00:00
Antony Dovgal
593e7c7da4
MFH: nuke unused var
2008-08-14 09:46:26 +00:00
Jani Taskinen
e5e6f553a2
MFH
2008-08-13 00:53:28 +00:00
Dmitry Stogov
05376077b3
Fixed bug #45779 (regression with shebang lines processing)
2008-08-12 16:43:53 +00:00
Nuno Lopes
9732c409a4
fix this, so that I can build php without litespeed..
2008-08-07 19:32:15 +00:00
George Wang
7c7bb11bcd
use PHP_ARG_WITH instead of AC_ARG_WITH
2008-08-07 16:41:31 +00:00
George Wang
52604d2832
added litespeed SAPI
2008-08-05 22:37:32 +00:00
Dmitry Stogov
7355c3c54c
Removed shebang line check from CGI sapi (it is checked by scanner)
2008-08-04 07:20:15 +00:00
Jani Taskinen
b17dc14f18
MFH: nuketh C++ comments
2008-08-03 12:15:55 +00:00
Jani Taskinen
a31dc18b39
MFH:- Fixed bug #45568 (ISAPI does not property clear auth_digest in header).
2008-07-31 00:48:48 +00:00
Antony Dovgal
5265201075
fix warnings
2008-07-25 15:05:48 +00:00
Arnaud Le Blanc
aa31988e43
MFH: Allow filters to work on INPUT_SERVER in CLI (bug #44779 )
2008-07-24 09:12:45 +00:00
Antony Dovgal
28a22396d4
MFH: invert the logics - FLAG_FCLOSE -> FLAG_NO_FCLOSE
2008-07-23 11:25:14 +00:00
Felipe Pena
fdfbfb96a1
- MFH: Fixed bug #44246 (closedir() accepts a file resource opened by fopen())
2008-07-22 14:09:24 +00:00
Dmitry Stogov
baab204436
Fixed chdir() into requested file directory inconsistencies
2008-07-21 08:43:36 +00:00
Felipe Pena
b22f47ee30
- Added arginfo
2008-07-20 14:28:41 +00:00
Scott MacVicar
35c58958a2
Fix compile error due to the removal of fteller on streams.
2008-07-18 13:08:08 +00:00
Felipe Pena
67185d6098
- Added arginfo
2008-07-16 11:59:15 +00:00
Dmitry Stogov
05f3ed67d4
Fixed bug #45151 (Crash with URI/file..php (filename contains 2 dots))
2008-07-15 13:39:17 +00:00
Dmitry Stogov
c27eba9bcf
Fixed bug #45423 (fastcgi parent process doesn't invoke php_module_shutdown before shutdown) (basant dot kukreja at sun dot com)
2008-07-15 13:11:19 +00:00
Antony Dovgal
8793440eee
fix test
2008-07-13 09:42:25 +00:00
Nuno Lopes
180a7bef35
add test for the shebang thing
2008-07-06 16:59:39 +00:00
Nuno Lopes
504fe5eedb
fix test for good consoles (tm)
2008-07-06 16:38:18 +00:00
Antony Dovgal
d76ecaae08
long -> int + minor sources reorganization
2008-07-01 07:58:42 +00:00
Alexey Zakhlestin
d33c8680ab
fixed types (no more compiler warnings)
2008-06-28 10:01:17 +00:00
Alexey Zakhlestin
0045cb305b
updated to the new parameter-parsing api
2008-06-28 09:52:03 +00:00
Dmitry Stogov
8054f84a3c
Fixed possible buffer overflow
2008-06-23 11:37:50 +00:00
Uwe Schindler
48bfd44789
MFH: Response to: [PHP-DEV] cleaning up the functions - any volunteers? :)
2008-06-22 18:09:41 +00:00
Antony Dovgal
6b68a94242
fix test
2008-06-06 07:45:51 +00:00
Scott MacVicar
938186a67f
Fixed bug #45144 (ap_child_terminate() isn't available on threaded builds)
2008-06-01 16:08:52 +00:00
Elizabeth Marie Smith
7d4dfa8ee4
Windows configure fixes, a few additional lib names allowed, apache2 only on for zts builds since apache on win is always threaded, isapi no longer stops configure in non-zts mode, look for _debug for debug libraries when debug is enabled
2008-05-14 03:13:17 +00:00
Elizabeth Marie Smith
ba02e9ae64
These are really old config.w32 files - now they use PHP_PHP_BUILD correctly instead of hard coding the path to the libraries
2008-04-15 16:55:53 +00:00
Dmitry Stogov
ba8e3174ce
Optimized request startup sequence for php.ini without per dir and per host configurations
2008-04-15 11:31:58 +00:00
Dmitry Stogov
9412a49006
Fixed bug #44673 (With CGI argv/argc starts from arguments, not from script)
2008-04-09 09:16:51 +00:00