Commit Graph

744 Commits

Author SHA1 Message Date
Dmitry Stogov
531b31ca08 Fixed bug #45352 (Segmentation fault because of tick function on second request) 2008-06-25 12:18:36 +00:00
Felipe Pena
bee6c52437 - New parameter parsing API 2008-06-21 02:41:27 +00:00
Pierre Joye
bbc34ba14a - actually disable the ASSERT error dialog box (affects debug mode only), helps to run the tests and coverage analyze 2008-05-21 15:55:31 +00:00
Antony Dovgal
66b66914a6 use correct flags 2008-03-22 12:56:16 +00:00
Antony Dovgal
7f02e564f7 MFH: revert 2008-03-21 16:39:11 +00:00
Stanislav Malyshev
bb86f3ae5b [DOC] make short_open_tag user-accessible 2008-03-20 17:30:14 +00:00
Antony Dovgal
e3b672bb23 MFH: make use of zend_atol() 2008-03-19 12:42:16 +00:00
Rasmus Lerdorf
6c158374ba exit_on_timeout patch
After the sigsetjmp change, this is patch #2 in an effort to get some
sanity restored to signal handling in PHP.

This patch does two things.  First, it makes it possible to reset the
timeout without resetting the signal handlers.  This is important for
cases where an extension may have deferred signals in its MINIT in order
to implement critical sections. It also lays the groundwork for cleaning
up our signal handling and perhaps eventually implementing our own
signal deferring mechanism so we can have true critical sections.

The second thing this does is to make it possible to terminate the current
child process (only for Apache1 at the moment) on a timeout.  There are
a number of extensions that are unhappy about being longjmp'ed out of
and when this happens on a timeout they are left in an inconsistent state.
By turning on exit_on_timeout you can now force the process to terminate
on a timeout which will clean up any hanging locks and/or memory left
hanging after the longjmp.
2008-03-18 21:42:50 +00:00
Felipe Pena
2b10c53ae1 MFH: Dropped zend.ze1_compatibility_mode
[DOC]
2008-03-18 14:10:45 +00:00
Felipe Pena
40f83dad26 Fix build (ZTS) 2008-03-16 21:55:46 +00:00
Marcus Boerger
af316021e8 - Rewrite scanner to be based on re2c instead of flex
The full patch is available as:
  http://php.net/~helly/php-re2c-5.3-20080316.diff.txt
  This is against php-re2c repository version 98
  An older patch against version 97 is available under:
  http://php.net/~helly/php-re2c-97-20080316.diff.txt
2008-03-16 21:06:55 +00:00
Stanislav Malyshev
a9fe1010d2 [DOC] add request_order INI variable to control $_REQUEST content
# if not set (default), variables_order still is used
# request_order accepts G,P and C
2008-03-12 20:24:45 +00:00
Etienne Kneuss
e9a6f0f24a MFH: User error handlers no longer catch supressed errors 2008-03-08 22:12:32 +00:00
Dmitry Stogov
ab232458c7 Optimized require_once() and include_once() by eliminationg open() syscall on second usage. 2008-03-05 13:34:12 +00:00
Marcus Boerger
d3e5026564 - MFH Add E_DEPRECATED (Lars Strojny, Felipe Pena, Marcus)
[DOC] Finally added deprecation messages
2008-02-23 17:06:22 +00:00
Pierre Joye
4652c2bf2c - [DOC] add PHP_MAJOR_VERSION, PHP_MINOR_VERSION, PHP_RELEASE_VERSION,
PHP_EXTRA_VERSION, PHP_VERSION_ID, PHP_ZTS and PHP_DEBUG constants
2008-02-15 14:51:39 +00:00
Jani Taskinen
a0f168752e MFH: allow using these constants in php.ini (f.e. PHP_SAPI..) 2008-02-04 20:39:21 +00:00
Dmitry Stogov
71592cec06 Added garbage collector 2008-01-22 09:27:48 +00:00
Sebastian Bergmann
d1dded8751 MFH: Bump copyright year, 2 of 2. 2007-12-31 07:17:19 +00:00
Hannes Magnusson
d7f7fa0494 MFH: Update the class method documentation links 2007-12-29 02:21:57 +00:00
Dmitry Stogov
648fbe9d58 Fixed bug #43128 (Very long class name causes segfault) 2007-11-22 13:27:13 +00:00
Dmitry Stogov
8039433291 Fixed bug #42722 (display_errors setting ignored for E_PARSE and HTTP 500 page) 2007-10-18 13:11:46 +00:00
Ilia Alshanetsky
086289983e Refactor code to make fixes for coverity issues #385 and #386 a bit more
obvious
2007-10-01 14:51:11 +00:00
Jani Taskinen
09b6f37f20 MFH:
- 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)
2007-09-28 02:05:10 +00:00
Dmitry Stogov
884b06e303 Fixed crash on POST request after dl("mbstring.so") 2007-09-24 11:53:40 +00:00
Antony Dovgal
74ae13f933 MFH: check for NULL (coverity issue #386) 2007-09-21 14:12:52 +00:00
Stanislav Malyshev
cd836153d6 disallow setting mail.force_extra_parameters from .htaccess 2007-09-13 20:04:22 +00:00
Jani Taskinen
77c36cd259 MFH: ws 2007-08-31 08:35:37 +00:00
Stanislav Malyshev
df11ce1ece check correct value 2007-08-03 01:30:21 +00:00
Stanislav Malyshev
1b131c46ad make error_log setting access-controlled by safe_mode/open_basedir 2007-08-03 01:15:51 +00:00
Stanislav Malyshev
959aa4f596 revert wrong fix 2007-08-01 23:51:45 +00:00
Johannes Schlüter
25848bff61 - MFH: Fix #42164 Internal Sendmail Support is ALWAYS disabled 2007-08-01 12:49:34 +00:00
Antony Dovgal
99a162bb8b fix ZTS build 2007-07-24 20:32:32 +00:00
Jani Taskinen
335cac3c6a MFH:- Changed "display_errors" php.ini option to accept "stderr" as value which
MFH:  makes the error messages to be outputted to STDERR instead of STDOUT with
MFH:  CGI and CLI SAPIs (FR #22839).
2007-07-24 14:21:36 +00:00
Jani Taskinen
d271071067 MFH: Fixed compile warnings 2007-07-21 01:43:33 +00:00
Jani Taskinen
cc7342ef72 MFH: folding tags and some more ws fixes 2007-07-15 15:34:28 +00:00
Jani Taskinen
aad63942b8 MFH: ws fixes (sync!) 2007-07-15 15:21:12 +00:00
Ilia Alshanetsky
a2fa9bbe84 Clear out last error & last error file information at the end of the
request to ensure that they don't propogate to the next request
2007-07-15 14:15:02 +00:00
Johannes Schlüter
dc8d09bbbd - MFH: Always enable mail() function 2007-07-11 17:36:56 +00:00
Jani Taskinen
7b016d72a1 MFH: No return values for void function 2007-07-11 10:24:04 +00:00
Stanislav Malyshev
6f1b3ea73a suppress warnings to avoid potential loop 2007-07-10 17:58:19 +00:00
Stanislav Malyshev
84c9050805 check if write is allowed before writing to error log 2007-07-10 17:42:29 +00:00
Dmitry Stogov
539f67ed8f Added ability to create local or remote (URL) user streams
Local user streams must not be able to open(), URLs if allow_url_include is off
Implemented new function stream_is_local()
[
- stream_wrapper_register() extended with additional optional argument "flags"
  of type long. This time only one flag is implemented
- STREAM_IS_URL, that means that userstream wrapper is remote (URL).
  By default stream is local.
- stream_is_local() is a new function that accepts stream and tell if this
  stream is local or remote (URL)
]
2007-07-09 17:27:24 +00:00
Dmitry Stogov
e1f08c8297 HTTP 500 is sent to browser in case of PHP error instead of blank page 2007-06-15 09:20:27 +00:00
Dmitry Stogov
c2e04e8364 Prevent crash in case of wrong arguments to CRT functions (strftime()) on PHP complead by MS VC2005 2007-06-15 07:27:08 +00:00
Antony Dovgal
c9805e7b92 MFH: check return value of *time_r() functions for NULL 2007-06-07 08:44:41 +00:00
Rob Richards
b6b312c020 add file locking under windows
change win build to use common clock compat files
2007-04-18 09:38:59 +00:00
Dmitry Stogov
e1814f0dbe WIN64 support 2007-04-16 08:09:56 +00:00
Ilia Alshanetsky
aa18505f34 Avoid locks when appening to the error log file 2007-04-06 13:58:48 +00:00
Ilia Alshanetsky
642432a5de Fixed bug #40897 (error_log file not locked) 2007-04-01 19:29:42 +00:00