Commit Graph

498 Commits

Author SHA1 Message Date
David Soria Parra
1770e94d92 Fix #47149. Remove check for script_filename = path_translated, as this the actual value that we get from apache. 2009-01-19 18:16:52 +00:00
Dmitry Stogov
e35b825990 Disable dl() in CGI and FastCGI modes 2009-01-11 08:35:53 +00:00
David Soria Parra
4edee64c6c Fixed bug #47042 (PHP cgi sapi is removing SCRIPT_FILENAME for non apache). 2009-01-09 22:13:40 +00:00
Sebastian Bergmann
7f4dc8702a Bump copyright year, 3 of 3. 2008-12-31 11:12:40 +00:00
Pierre Joye
08796b0bb9 - WS 2008-12-11 10:20:30 +00:00
Pierre Joye
c33931489d - ws 2008-12-11 00:15:05 +00:00
Matt Wilmas
3cfd3fe58d Fixed bug #46782 (fastcgi.c parse error) 2008-12-07 10:54:16 +00:00
Dmitry Stogov
dcd2ff33e0 Fixed bug #46366 (bad cwd with / as pathinfo) 2008-11-28 11:57:11 +00:00
Felipe Pena
43791516db - Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro (again!) 2008-11-17 11:26:25 +00:00
Arnaud Le Blanc
047870a61f MFB: Added header_remove() (chsc at peytz dotdk, Arnaud) 2008-11-13 10:33:08 +00:00
Rasmus Lerdorf
f459896964 Fix for bug #46525 which fixes Ilia's fix for bug #46319 2008-11-09 15:50:13 +00:00
Felipe Pena
e006a89e71 - Revert ZEND_BEGIN_ARG_INFO change 2008-11-02 21:10:13 +00:00
Felipe Pena
916b56d2d9 - Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro 2008-10-24 16:02:16 +00:00
Arnaud Le Blanc
d5c0fbb06b Fixed FCGI_GET_VALUES requests (fixes #45522) 2008-10-21 03:19:07 +00:00
Ilia Alshanetsky
23ed94cbba MFB: Fixed bug #46319 (PHP sets default Content-Type header for HTTP 304
response code, in cgi sapi)
2008-10-17 01:34:26 +00:00
Dmitry Stogov
1b6dbf2c7a Fixed bug #45860 (header() function fails to correctly replace all Status lines) 2008-09-02 13:22:27 +00:00
Rasmus Lerdorf
cf06da29a5 Remove stray folding tag here 2008-08-26 15:37:38 +00:00
Dmitry Stogov
7a12ee1ccc Fixed bug #45786 (FastCGI process exited unexpectedly) 2008-08-26 09:56:22 +00:00
Dmitry Stogov
d2197dfef8 Fix for bug #45786 (FastCGI process exited unexpectedly) 2008-08-18 10:48:49 +00:00
Dmitry Stogov
2f41686810 Fixed double call to MSHUTDOWN in case of php-cgi -m 2008-08-15 07:31:07 +00:00
Jani Taskinen
2f9fddbb7b - Fix test 2008-08-14 20:50:56 +00:00
Jani Taskinen
5a6f6baa86 - Fix tests 2008-08-14 20:05:00 +00:00
Jani Taskinen
bc6a9ad209 [DOC]- Added methods to change/disable --with-config-file-scan-dir=PATH at
[DOC]  startup:
[DOC]
[DOC]  To disable: Override default php.ini by using both -c and -n with
[DOC]              CGI/CLI or set "PHP_INI_SCAN_DIR" environment variable
[DOC]              to an empty string.
[DOC]
[DOC]  To change: Simply set "PHP_INI_SCAN_DIR" environment variable to point
[DOC]             to another path.

- Fixed bug #42604 ("make test" fails with --with-config-file-scan-dir=/some/path)
- Implemented FR #45114 (Option to change --with-config-file-scan-dir)
2008-08-13 00:49:59 +00:00
Dmitry Stogov
c1ef996a1c Removed shebang line check from CGI sapi (it is checked by scanner) 2008-08-04 07:20:44 +00:00
Dmitry Stogov
18076953a1 Fixed bug #45151 (Crash with URI/file..php (filename contains 2 dots)) 2008-07-15 13:38:56 +00:00
Dmitry Stogov
6cf169b16c 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:10:42 +00:00
Dmitry Stogov
c3408755ec Fixed possible buffer overflow 2008-06-23 11:38:10 +00:00
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
Dmitry Stogov
3cbd48398d - Fixed possible stack buffer overflow in FastCGI SAPI. (Andrey Nigmatulin)
- Fixed sending of uninitialized paddings which may contain some information.
  (Andrey Nigmatulin)
2008-04-03 10:25:08 +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
Antony Dovgal
5742cc19bb MF53: fix tests 2007-11-01 14:12:39 +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
Rob Richards
b9b4dd6d09 fix win build 2007-10-05 15:59:42 +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