Commit Graph

354 Commits

Author SHA1 Message Date
Dmitry Stogov
f3c82b0055 Optimized request startup sequence for php.ini without per dir and per host conf
igurations
2008-04-15 11:32:13 +00:00
Dmitry Stogov
afbc0c20ab Fixed bug #44673 (With CGI argv/argc starts from arguments, not from script) 2008-04-09 09:17:01 +00:00
Scott MacVicar
56352d1a2f MFB 5.3: Rest of the changes for re2c merge 2008-03-26 14:46:17 +00:00
Rasmus Lerdorf
b911467d1d MFB
Here are the signal changes from the 5.3 branch that optimizes signal
handler registration and switches from longjmp to siglongjmp in order
to make signal mask handling consistent across different UNIX operating
systems.
2008-03-19 16:37:49 +00:00
Dmitry Stogov
ea9305c543 Implemented concept of "delayed early binding" that allows opcode caches to perform class declaration (early and/or run-time binding) in exactly the same order as vanila php.
The following pseudo-code explains how it should be used in opcode cache.

function cache_compile_file($filename) {
        if (!is_cached($filename)) {
                ...
                orig_compiler_options = CG(compiler_optins);
                CG(compiler_options) |= ZEND_COMPILE_IGNORE_INTERNAL_CLASSES |
                                        ZEND_COMPILE_DELAYED_BINDING;
                $op_array = orig_compile_file($filename);
                CG(compiler_options) = orig_copiler_options;
                ...
        } else {
                $op_array = restore_from_cache($filename);
        }
        zend_do_delayed_early_binding($op_array);
}
2008-03-18 08:36:49 +00:00
Ilia Alshanetsky
9737e9ee3b MFB: Fixed security issue detailed in CVE-2008-0599 2008-02-28 00:52:11 +00:00
Dmitry Stogov
965054d2f0 optimization 2008-02-15 14:51:52 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Dmitry Stogov
e54f02059e The -f option is fixed to work in the same way as in CLI sapi 2007-12-03 09:38:25 +00:00
Jani Taskinen
ae2b2b1465 - Added support for [HOST=www.example.com] sections
# Works the same way as PATH, just the SERVER_NAME is matched with these
2007-11-09 16:02:50 +00:00
Dmitry Stogov
73e8a773fa use slprintf() 2007-11-01 11:49:27 +00:00
Dmitry Stogov
dba5f202f0 Fixed bug #42848 (Status: header incorrect under FastCGI) 2007-11-01 11:13:06 +00:00
Dmitry Stogov
ffbbe893c9 Added check for HAVE_GETTIMEOFDAY 2007-10-26 04:46:28 +00:00
Jani Taskinen
3c85eea2cf ws 2007-10-25 10:01:25 +00:00
Dmitry Stogov
896cdeee7a Added CGI SAPI -T option, to measure execution time of script repeated several times. 2007-10-25 05:39:24 +00:00
Jani Taskinen
44cbb46246 - Added common getopt implementation to core.
- Added long-option feature to getopt().
- Made getopt() available on win32 systems.
Patch by: David Soria Parra <dsp@php.net>
[DOC]: These changes will be available from 5.3+
2007-10-01 12:32:39 +00:00
Jani Taskinen
f964370a35 - Added ".htaccess" style user-defined php.ini files support for
CGI/FastCGI.
- Added support for special [PATH=/opt/httpd/www.example.com/] sections
  in php.ini. All directives set in these sections will not be able to be
  overridden in user-defined ini-files or during runtime in the specified
  path.

- Improved php.ini handling:
  . Added better error reporting for syntax errors in php.ini files
  . Allowed "ini-variables" to be used almost everywhere ini php.ini files
  . Allowed using alphanumeric/variable indexes in "array" ini options
  . Fixed get_cfg_var() to be able to return "array" ini options

- Fixed bug #27372 (parse error loading browscap.ini at apache startup)
- Fixed bug #42069 (parse_ini_file() allows using some non-alpha numeric
  characters)

@DOC Pierre promised to handle the manual part of this :D
2007-09-28 02:04:28 +00:00
Jani Taskinen
70abdbeef2 ws + cs fixes 2007-09-27 22:08:54 +00:00
Dmitry Stogov
8146078f7b Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:28:44 +00:00
Dmitry Stogov
fb5479c145 ws 2007-09-27 07:29:58 +00:00
Dmitry Stogov
4d9ca5ef3c Fixed bug #42699 (PHP_SELF duplicates path) 2007-09-24 11:43:02 +00:00
Dmitry Stogov
c49d25c642 Fixed bug #42587 (behaviour change regarding symlinked .php files) 2007-09-10 10:55:41 +00:00
Antony Dovgal
eec31a3df3 output is started in php_module_startup(), no need to start it twice
fixes leaks in sapi/cgi/tests/005.phpt
2007-09-08 11:10:37 +00:00
Dmitry Stogov
cbc9348dae Fixed bug #42523 (PHP_SELF duplicates path) 2007-09-05 08:26:49 +00:00
Dmitry Stogov
98bb2b0d9e Fixed bug #42453 (CGI SAPI does not shut down cleanly with -i/-m/-v cmdline options) 2007-08-31 12:18:04 +00:00
Stanislav Malyshev
c56929d6f1 remove unneeded variables 2007-08-08 23:56:19 +00:00
Dmitry Stogov
b9163fe9de - Fixed bug #42198 (SCRIPT_NAME and PHP_SELF truncated when inside a userdir
and using PATH_INFO).
- Fixed bug #31892 (PHP_SELF incorrect without cgi.fix_pathinfo, but turning
  on screws up PATH_INFO).
2007-08-08 13:02:01 +00:00
Jani Taskinen
f13d418d5d - Fix typos in comments 2007-08-08 10:00:20 +00:00
Dmitry Stogov
a5a98e6322 Fixed bug #40419 (Trailing Slash in CGI request don't work) 2007-06-26 14:47:33 +00:00
Dmitry Stogov
22527c8e03 no need to return exit status of the last fastcgi request 2007-06-21 08:40:56 +00:00
Antony Dovgal
5697a11dd0 add missing open_basedir checks to CGI 2007-06-04 15:37:38 +00:00
Ilia Alshanetsky
a21fe37d0e MFB 2007-05-29 00:01:14 +00:00
Dmitry Stogov
397644d3ab Removed deprecated comment 2007-05-28 08:12:11 +00:00
Dmitry Stogov
e25fd7ad9b Fixed crash on "php -b 1234 -unknown-option" 2007-05-21 09:08:25 +00:00
Dmitry Stogov
24bc130c56 Fixed bug #41378 (fastcgi protocol lacks support for Reason-Phrase in "Status:" header) 2007-05-15 08:17:20 +00:00
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