Commit Graph

731 Commits

Author SHA1 Message Date
Dmitry Stogov
613b37a73e (wrong previous patch) 2007-06-15 07:32:17 +00:00
Dmitry Stogov
1e87928766 Prevent crash in case of wrong arguments to CRT functions (dtrftime()) on PHP complead by MS VC8 2007-06-15 07:28:49 +00:00
Antony Dovgal
a9f6f71460 check return value of *time_r() functions for NULL
more checks will follow
2007-06-07 08:46:32 +00:00
Antony Dovgal
47d3276cd7 removed unused highlight.bg ini option 2007-04-26 09:39:03 +00:00
Rob Richards
c88e2b7618 MFB: add file locking under windows
change win build to use common clock compat files
2007-04-18 09:48:07 +00:00
Dmitry Stogov
2908322c14 WIN64 support 2007-04-16 09:43:53 +00:00
Antony Dovgal
8bb69d5e0d MFB: Avoid locks when appening to the error log file 2007-04-08 08:02:02 +00:00
Antony Dovgal
b3352b6a04 drop deprecated funcs and change error level to E_WARNING 2007-03-28 10:22:33 +00:00
Stanislav Malyshev
3a0d0d1f2d limit nesting level of input variables 2007-03-02 22:04:46 +00:00
Marcus Boerger
66398d4e3e - Fix memleak 2007-02-03 14:57:24 +00:00
Sara Golemon
cc1b19cf0e Expand allow_url_fopen/allow_url_include functionality 2007-01-24 21:43:47 +00:00
Antony Dovgal
53e179ea11 fix fodling, mark set_time_limit() unicode safe 2007-01-18 12:37:44 +00:00
Marcus Boerger
54917a290b - MFH (Ilia's changes) 2007-01-09 18:38:38 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Antony Dovgal
8dce10427f use strlcat() and a bigger buffer 2006-12-28 12:01:14 +00:00
Ilia Alshanetsky
2dbfe66e4a MFB: safety checks 2006-12-26 17:40:20 +00:00
Dmitry Stogov
d7b7678817 Default memory_limit value is set to 128M 2006-12-21 09:12:59 +00:00
Dmitry Stogov
a7c536fbcd Make MEMORY_LIMIT and ZEND_USE_MALLOC_MM to be always enabled. They don't make a
ny significant slowdown, but incrise maintainability a lot. Note that the setting of memory_limit wasn't changes (neither in main/main.c nor in php.ini) and it
still set to 16M.
2006-12-20 10:50:46 +00:00
Ilia Alshanetsky
fe1176d443 Fixed compiler warning 2006-12-17 18:30:50 +00:00
Andrei Zmievski
4097992ed4 Don't use zend_ascii_hash_find() here -- module names are binary strings. 2006-12-08 19:13:31 +00:00
Stanislav Malyshev
40b496d63f Merge from 5.2:
Improve tolower()-related functions on Windows and VC2005 by caching locale and using
tolower_l function.
2006-12-05 02:55:27 +00:00
Antony Dovgal
576797c7c1 fix retval type
it should be int, not zend_bool
2006-12-04 15:58:35 +00:00
Dmitry Stogov
e229ea6cb7 Fixed bug #39548 (ZMSG_LOG_SCRIPT_NAME not routed to OutputDebugString() on Windows) 2006-11-23 08:37:34 +00:00
Dmitry Stogov
a563332ee4 COM initialization/deinitialization are done only if necessary 2006-11-17 11:41:13 +00:00
Dmitry Stogov
57d22421db Unicode support.
Now the real UG(unicode) value is available during MINIT calls.
2006-11-17 10:48:53 +00:00
Dmitry Stogov
768185e58f Implemented registry cache that prevent registry lookup on each request. In case of modification of corresponding registry-tree PHP will reload it automatic. 2006-11-10 11:42:40 +00:00
Sara Golemon
be5debc65a Extend open_basedir functionality to allow runtime tightening 2006-10-17 21:54:17 +00:00
Sara Golemon
d666c05427 PHP6 Update for get_included_files() and export of path decode for Zend 2006-10-03 16:28:02 +00:00
Ilia Alshanetsky
13e1309f40 MFB: Fixed bug #38904 (apache2filter changes cwd to /). 2006-09-25 14:49:34 +00:00
Dmitry Stogov
128548a5c0 Disabled autoconversion of hash keys (from string to unicode) for PHP arrays 2006-09-19 10:38:31 +00:00
Ilia Alshanetsky
a3a3cc7546 MFB: Avoid generating php_errormsg twice in some instances. 2006-09-18 23:11:01 +00:00
Ilia Alshanetsky
2ae992d772 MFB: Increased default memory limit to 16 megabytes to accommodate for a
more accurate memory utilization measurement.
2006-08-17 13:43:51 +00:00
Michael Wallner
73ba3e2592 - added error_get_last() function 2006-07-19 12:25:02 +00:00
Dmitry Stogov
6687f0377b New memory manager 2006-07-18 09:08:06 +00:00
Dmitry Stogov
14bb973768 Fixed memory leaks in ZTS mode 2006-07-17 07:20:28 +00:00
Antony Dovgal
87d846c2cb initialize variables 2006-07-13 17:55:50 +00:00
Andrei Zmievski
ed77c07a35 Commit Sara's patch for supporting filesystem enccoding in
include/require.
2006-07-12 17:04:13 +00:00
Michael Wallner
231ad17475 - explicit usage of TS macros
# this could have been raised a lot earlier
2006-06-03 11:19:44 +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
Johannes Schlüter
3d2ddf524e - nitpicking "PHP6" vs. "PHP 6" 2006-05-27 20:53:38 +00:00
Edin Kadribasic
7d605c31d1 MFB: Initialize windows globals, fixes #37428 2006-05-24 22:00:57 +00:00
Dmitry Stogov
ab9e070bbf Optimized zend_try/zend_catch macroses (eliminated memcpy()) 2006-05-19 06:11:02 +00:00
Ilia Alshanetsky
9ac333f624 MFB: Disable realpath cache when open_basedir or safe_mode are enabled on a
per-request basis.
2006-05-16 00:40:36 +00:00
Dmitry Stogov
b75a22b203 Fixed bug #37306 (max_execution_time = max_input_time). 2006-05-11 22:08:55 +00:00
Marcus Boerger
1f030db700 - Fix error mode handling 2006-05-11 07:55:48 +00:00
Antony Dovgal
821aff2e9c MF51: fix #37053 (html_errors with internal classes produces wrong links) 2006-04-12 12:52:00 +00:00
Dmitry Stogov
e5d4bfd637 We don't need setup the same time-out two times. 2006-04-07 11:43:43 +00:00
Sara Golemon
30a2bd1d11 Another (and hopefully last) major streams commit.
This moves unicode conversion to the filter layer
(rather than at the lower streams layer)
unicode_filter.c has been moved from ext/unicode to main/streams
as it's an integral part of the streams unicode conversion process.

There are now three ways to set encoding on a stream:

(1) By context
$ctx = stream_context_create(NULL,array('encoding'=>'latin1'));
$fp = fopen('somefile', 'r+t', false, $ctx);

(2) By stream_encoding()
$fp = fopen('somefile', 'r+');
stream_encoding($fp, 'latin1');

(3) By filter
$fp = fopen('somefile', 'r+');
stream_filter_append($fp, 'unicode.from.latin1', STREAM_FILTER_READ);
stream_filter_append($fp, 'unicode.to.latin1', STREAM_FILTER_WRITE);

Note: Methods 1 and 2 are convenience wrappers around method 3.
2006-03-29 01:20:43 +00:00
Andrei Zmievski
1709428494 Implement to-Unicode conversion error behavior. Note the adjusted APIs. 2006-03-26 06:19:24 +00:00
Andrei Zmievski
930bde5897 * Remove unicode.from_error_mode and unicode.from_subst_char from INI
settings.
* Add unicode_set_error_mode() and unicode_set_subst_char() functions to
  manipulate these global settings.
2006-03-26 01:48:33 +00:00