Commit Graph

189 Commits

Author SHA1 Message Date
Antony Dovgal
a841027cca MFH 2007-05-28 10:07:50 +00:00
Dmitry Stogov
e1814f0dbe WIN64 support 2007-04-16 08:09:56 +00:00
Dmitry Stogov
4de76f02ea Fixed 64-bit support 2007-04-09 15:38:58 +00:00
Dmitry Stogov
2dd2ac6d50 Fixed bug #40883 (mysql_query() is allocating memory incorrectly). (Tony) 2007-03-23 07:59:26 +00:00
Dmitry Stogov
d514bf27a6 Improved Zend Memory Manager to guarantee reasonable time for worst cases of best-fit free block searching algorithm. 2007-03-20 06:46:48 +00:00
Antony Dovgal
e5b5f00949 MFH: fix #40800 (cannot disable memory_limit with -1) 2007-03-14 11:58:05 +00:00
Dmitry Stogov
ab699d03bc Fixed bug #40770 (Apache child exits when PHP memory limit reached) 2007-03-12 16:59:52 +00:00
Antony Dovgal
db8bbdc2a9 MFH: declare zend_mm_random() only when needed 2007-03-06 20:59:13 +00:00
Antony Dovgal
13ca6ed9fa MFH: fix heap protection on SPARC, required by GCC4
patch by Dmitry
2007-02-19 18:29:31 +00:00
Antony Dovgal
704b191d6a fix typo 2007-02-16 23:49:48 +00:00
Stanislav Malyshev
4274449a02 add safe_realloc 2007-02-16 18:06:28 +00:00
Dmitry Stogov
009f5a3937 Enable canary protection in DEBUG mode only. 2007-02-01 15:08:10 +00:00
Dmitry Stogov
38f942b880 Fixed bug #40076 (zend_alloc.c: Value of enumeration constant must be in range of signed integer) 2007-01-09 15:29:14 +00:00
Sebastian Bergmann
4223aa4d5e MFH: Bump year. 2007-01-01 09:36:18 +00:00
Dmitry Stogov
5823a2d28a Fixed possible size_t overflow 2006-12-25 12:16:33 +00:00
Dmitry Stogov
53b088e60c Make MEMORY_LIMIT and ZEND_USE_MALLOC_MM to be always enabled. They don't make any 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:49:33 +00:00
Dmitry Stogov
1763dc162d Fixed random generation of cookies and canaries 2006-12-18 11:39:19 +00:00
Dmitry Stogov
cfbd58c987 MFH: __builtin_expect() exists only in GCC 3.0 and higher 2006-12-18 08:59:40 +00:00
Andi Gutmans
5e36d7fcfe - I prefer cookie to be the first element. 2006-12-15 17:03:42 +00:00
Dmitry Stogov
bf9e3e769c Added internal heap protection
. safe unlinking
  . cookies
  . canary protection (debug build only)
2006-12-15 13:25:26 +00:00
Dmitry Stogov
dd9b5a08f0 Fixed possible failure 2006-12-08 12:47:45 +00:00
Dmitry Stogov
f7bc516502 Fixed bug #38274 (Memlimit fatal error sent to "wrong" stderr when using fastcgi) 2006-12-04 16:20:02 +00:00
Dmitry Stogov
abc5bb5f61 Bug #39438 (Fatal error: Out of memory) 2006-12-01 20:01:50 +00:00
Dmitry Stogov
e70d7cfc90 typo 2006-12-01 19:41:57 +00:00
Dmitry Stogov
0742edb396 Fixed bug #39702 (php crashes in the allocator on linux-m68k) 2006-12-01 15:33:06 +00:00
Dmitry Stogov
de9574e872 Fixed bug #39640 (Segfault with "Allowed memory size exhausted") 2006-12-01 13:54:29 +00:00
Dmitry Stogov
e8e9810dd9 Fixed bug #39652 (Wrong negative results from memeory_get_usage()) 2006-12-01 11:42:20 +00:00
Dmitry Stogov
c663787ab4 Fixed bug #39534 (Error in maths to calculate of ZEND_MM_ALIGNED_MIN_HEADER_SIZE). (wharmby at uk dot ibm dot com) 2006-11-23 09:32:39 +00:00
Dmitry Stogov
f00ee72c35 Fixed incorrect heap corruptiuon detection code 2006-11-13 10:28:46 +00:00
Dmitry Stogov
f1b6587ebb Zend Memory Manager Improvements
. use HeapAlloc() instead of VirtualAlloc()
. use "win32" storage manager (instead of "malloc") on Windows by default
2006-11-10 10:44:40 +00:00
Dmitry Stogov
e6fd66facb Make zend_memory_peak_usage() to be avalable even without --enable-memory-limit 2006-10-12 06:46:51 +00:00
Ilia Alshanetsky
4fd88b23cc Added safety checks against integer overflow. 2006-09-30 17:12:06 +00:00
Dmitry Stogov
27c327b97e Added is_zend_mm() to allow runtime check for zend memory manager 2006-09-14 08:00:44 +00:00
Dmitry Stogov
54123daa8d Show name of storage layer in case of initialization fault. 2006-08-31 11:53:57 +00:00
Antony Dovgal
235e3939d5 s/pinter/pointer/ 2006-08-30 22:29:24 +00:00
Dmitry Stogov
27d3021704 Fixed bug #38265 (heap corruption) 2006-08-23 13:00:48 +00:00
Dmitry Stogov
4180155a47 Fixed "win32" storage manager 2006-08-22 05:54:15 +00:00
Dmitry Stogov
3688c103b5 Fixed crash of DEBUG version on SPARC CPU because of unaligned pointers. 2006-07-26 08:07:11 +00:00
Dmitry Stogov
356facf4af Changed memory_get_usage() and memory_get_peak_usage(). Optional boolean argument allows get memory size allocated by emalloc() (by default) or real size of memory allocated from system. 2006-07-25 13:40:05 +00:00
Dmitry Stogov
3b7386acea Fixed memory leaks detection 2006-07-24 08:15:26 +00:00
Antony Dovgal
c204ff0258 MFH: fix build on platforms without mremap() 2006-07-18 15:41:58 +00:00
Dmitry Stogov
29ed52ffa4 New memory manager 2006-07-18 09:06:33 +00:00
Andi Gutmans
61e93ccfe8 - Update copyright notices to 2006 2006-01-04 23:53:05 +00:00
foobar
379cd5a6df MFH:- Include timestamp for the leaks. (to make possible matching leaks with access_log entries) 2005-12-12 11:00:57 +00:00
Ilia Alshanetsky
3b329a9926 MFH: Fixed bug #34156 (memory usage remains elevated after memory limit is
reached);
2005-08-18 15:14:12 +00:00
foobar
916815b779 Bump up the year 2005-08-03 13:30:58 +00:00
foobar
355eefe5f9 - Nuke the code duplication 2005-04-07 20:15:21 +00:00
Zeev Suraski
779f5c5c19 Fix strdup() bug when USE_ZEND_ALLOC is disabled 2005-04-07 13:59:45 +00:00
Andi Gutmans
ec3aac1e86 - Fix leak report for 0 byte allocations (Dmitry) 2004-08-27 16:49:14 +00:00
Andi Gutmans
138ef9a43e - Improve performance by inlining zend_ptr_stack_n_push(). var_args can
usually not be inlined by compilers.
2004-07-30 20:16:40 +00:00