Commit Graph

226 Commits

Author SHA1 Message Date
Arnaud Le Blanc
b80d1404e6 Take small blocks cache into account in memory_get_usage() 2009-05-30 16:42:01 +00:00
Arnaud Le Blanc
9185867471 Added missing UChar* and zstr malloc variants 2009-05-01 00:29:49 +00:00
Felipe Pena
925fd93440 - Fixed bug #47852 (Compilation failure in zend_alloc.c) (Matteo) 2009-04-01 16:55:11 +00:00
Dmitry Stogov
105c01765a Fixed warning 2009-03-20 11:23:22 +00:00
David Soria Parra
5ed7135060 Fix compiler warning. munmap expects a void pointer. 2009-01-25 14:01:01 +00:00
David Soria Parra
988af7b62a Fix WS 2009-01-25 13:39:16 +00:00
Sebastian Bergmann
5d0f813ddf Patch by David Soria Parra <dsp@php.net>. 2009-01-25 11:07:19 +00:00
Sebastian Bergmann
7f4dc8702a Bump copyright year, 3 of 3. 2008-12-31 11:12:40 +00:00
Dmitry Stogov
29f9a49f1c Fixed ability to use "internal" heaps in extensions. 2008-10-30 08:55:31 +00:00
Felipe Pena
2985b4f9e3 - Removed some TSRMLS_FETCH()s 2008-08-15 19:45:25 +00:00
Stanislav Malyshev
8b5fa55af1 remove unneeded define 2008-08-01 22:45:59 +00:00
Dmitry Stogov
0c77613d77 Optimized ZEND_SIGNED_MULTIPLY_LONG() (Matt) 2008-07-24 13:46:48 +00:00
Dmitry Stogov
49952e6452 Added check for small ZEMD_MM_SEG_SIZE 2008-07-21 17:06:16 +00:00
Matt Wilmas
5ddb49caec Fixed error message typo; also removed end . to be consistent with the others 2008-05-11 11:45:31 +00:00
Dmitry Stogov
5ce9577662 Fixed bug #44069 (Huge memory usage with concatenation using . instead of .=) 2008-02-14 14:42:16 +00:00
Dmitry Stogov
5c6f61118d Increased Zend MM cache size 2008-01-24 12:21:48 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Dmitry Stogov
20f9a64b54 x86_64 assembler optimization (Brain Shire) 2007-12-20 13:11:35 +00:00
Dmitry Stogov
a5f9d8bad2 Macro definitions are moved to zend.h 2007-11-21 14:55:51 +00:00
Dmitry Stogov
ac702108c6 Fixed windows build (Rob) 2007-11-06 12:06:23 +00:00
Dmitry Stogov
99e0a46b39 Allow user defined malloc/realloc/free 2007-11-06 07:37:50 +00:00
Dmitry Stogov
6bf372762e Added ability to control memory consumption between request using ZEND_MM_COMPACT environment variable 2007-10-25 07:32:58 +00:00
Dmitry Stogov
5823265114 Added "compact" handler for Zend MM storage. 2007-09-29 10:37:39 +00:00
Dmitry Stogov
e9ccedf427 Fixed bug #41713 (Persistent memory consumption on win32 since 5.2) 2007-07-25 11:13:17 +00:00
Antony Dovgal
d547768308 fix folding and ws 2007-07-10 14:42:43 +00:00
Antony Dovgal
13352e80e1 use unsigned modifiers 2007-05-28 10:07:35 +00:00
Dmitry Stogov
2908322c14 WIN64 support 2007-04-16 09:43:53 +00:00
Dmitry Stogov
91853fe83f Fixed 64-bit support 2007-04-09 15:30:37 +00:00
Dmitry Stogov
23fc1f0e42 Fixed bug #40883 (mysql_query() is allocating memory incorrectly). (Tony) 2007-03-23 07:59:54 +00:00
Dmitry Stogov
3e7c4195e3 Improved Zend Memory Manager to guarantee reasonable time for worst cases of best-fit free block searching algorithm. 2007-03-20 06:47:12 +00:00
Antony Dovgal
e23af20804 fix #40800 (cannot disable memory_limit with -1) 2007-03-14 11:57:16 +00:00
Dmitry Stogov
5a4f3bcd37 Fixed bug #40770 (Apache child exits when PHP memory limit reached) 2007-03-12 17:00:07 +00:00
Antony Dovgal
def247344d declare zend_mm_random() only when needed 2007-03-06 20:58:40 +00:00
Antony Dovgal
d315853532 fix heap protection on SPARC, required by GCC4
patch by Dmitry
2007-02-19 18:29:20 +00:00
Antony Dovgal
e10a7a734e typo in Dmitry's last name =) 2007-02-16 23:49:34 +00:00
Stanislav Malyshev
aa827cf2b9 add safe_realloc 2007-02-16 18:12:34 +00:00
Dmitry Stogov
09de519e79 Enable canary protection in DEBUG mode only. 2007-02-01 15:12:07 +00:00
Dmitry Stogov
158ec65ba2 Fixed bug #40076 (zend_alloc.c: Value of enumeration constant must be in range of signed integer) 2007-01-09 15:29:29 +00:00
Sara Golemon
6f234cbf6f Fix prior commit noticing this time that persistent allocators start with zend_*() and that one already exists 2007-01-07 05:45:07 +00:00
Sara Golemon
97ee887a13 Flesh out some missing API calls 2007-01-07 05:24:55 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Dmitry Stogov
cd07310423 Fixed possible size_t overflow 2006-12-25 12:16:49 +00:00
Marcus Boerger
9103d6b5fe - Implement ezstrndup() 2006-12-22 00:56:59 +00:00
Marcus Boerger
bc1b8f0ab1 - Use conversion macro 2006-12-22 00:28:20 +00:00
Marcus Boerger
71a73834f4 - Make shorter and do not use problematic attribute 2006-12-20 20:59:18 +00:00
Marcus Boerger
2f7e1b8ef3 - Compilers mightnot like the zstr return,thus return void* 2006-12-20 20:49:01 +00:00
Andrei Zmievski
57e7e4921f Fix warning. 2006-12-20 20:42:50 +00:00
Marcus Boerger
89496ce1e6 - Implement zend_zstrndup() 2006-12-20 20:12:11 +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
Dmitry Stogov
4d7652abef Fixed random generation of cookies and canaries 2006-12-18 11:39:34 +00:00