Commit Graph

23340 Commits

Author SHA1 Message Date
Andrey Hristov
10ee06ca48 MFH:
Memory usage optimisation. mysqlnd is not libmysql. mysqlnd does use the
Zend allocator, which means that is easier to hit memory_limit if you
have big stored (buffered) result sets. Before with libmysql you won't
hit memory_limit because libmysql uses libc's allocator and nothing is
checked. Now, with mysqlnd the situation is stricter and it is easier to
hit memory_limit. We try to optimize for big result sets. If a result set
is larger than 10 rows we will start freeing some data to keep memory usage
after 10 rows constant. This will help in the cases where a buffered result
set is scrolled forward only and just only once, or mysqlnd will need to
decode data from the network buffers again - yes, it is a trade-off between
CPU time and memory size. The best for big result sets is of course using
unbuffered queries - for comparison : 3 Million rows with buffered take
at least 180MB, with buffered you will stay at 3MB, and unbuffered will be
just 7-8% slower.
2009-06-16 13:07:14 +00:00
Ilia Alshanetsky
34842709d6 Fixed test 2009-06-16 12:40:59 +00:00
andy wharmby
c731b2287f Fix typo in test 2009-06-16 11:37:13 +00:00
Pierre Joye
b4cf9d80d4 - fix title 2009-06-16 10:37:59 +00:00
Pierre Joye
1a69c562bd - fix title 2009-06-16 10:37:30 +00:00
Andrey Hristov
27270621cb MFH:
Hardwire function call instead of using callbacks. We don't actually need
callbacks, it was done for making 2 functions static, not to pollute the
global functions space but that had its price of 8 bytes overheat per
allocation, which is just too much. Also making the app member 32b instead
of 64b, which should save additional 4 byte, to the total of 12 byte per
allocation of a row buffer.
2009-06-16 09:15:38 +00:00
andy wharmby
f0f302fe7f New class related tests. Tested on Windows, Linux and Linux 64. Tests written by Iain Lewis 2009-06-16 08:59:39 +00:00
Andrey Hristov
a2acaa7fcd MFH:
Use Zend's allocator instead of libc's and also don't try to work on
zvals that are NULLs.
2009-06-16 07:53:35 +00:00
Felipe Pena
c353601a3f - MFH: Fixed bug #48562 (Reference recursion causes segfault when used in wddx_serialize_vars()) 2009-06-16 02:54:26 +00:00
Pierre Joye
8e76db4aa7 - revert last commit, should not have been applied 2009-06-16 00:17:56 +00:00
Pierre Joye
a5302d870d - #47767, include_once does not resolve windows symlinks or junctions 2009-06-16 00:13:56 +00:00
Pierre Joye
18d5751a9e - Windows ACL cache support, update existing tests and add a new one 2009-06-16 00:07:05 +00:00
Felipe Pena
da9b80e309 - Drop unused code 2009-06-15 17:56:08 +00:00
Felipe Pena
aa8811982e - MFH: Fixed bug #48557 (Numeric string keys in Apache Hashmaps are not cast to integers) patch by David Zülke <david.zuelke at bitextender.com> 2009-06-15 17:31:02 +00:00
Patrick Allaert
f78a0b585c MFH: Fixing #48441 (ldap_search() with sizelimit/timelimit/deref options makes those options persistent) 2009-06-15 15:18:31 +00:00
Pierre Joye
c06884c960 - add TODO about int definition cleanup 2009-06-15 15:08:12 +00:00
Patrick Allaert
91a8fd7f7e MFH: Refactoring that will help fixing #48441 2009-06-15 15:04:11 +00:00
Pierre Joye
2db291e728 - MFH: simplify, use correct type and silent warnings 2009-06-15 14:47:15 +00:00
Scott MacVicar
532674945c MFH sync SQLite 3.6.15 2009-06-15 13:23:59 +00:00
Ilia Alshanetsky
bb55de47cd Simplify original fix for bug #33475 2009-06-15 12:37:37 +00:00
andy wharmby
4a110443df New POSIX extension tests from Berlin UG TestFest 2009. 2009-06-15 12:14:55 +00:00
Pierre Joye
e52e1fab4c - silent warning 2009-06-15 08:32:38 +00:00
Ilia Alshanetsky
1c8d05069e MFB: Fixed bug #48512 (DOMDocument::validate() fails with both a E_NOTICE
and E_WARN if no DTD)
2009-06-14 13:13:35 +00:00
andy wharmby
a6735b8b24 New json extension tests. Tested on Windows, Linux and Linux 64 bit. 2009-06-14 12:08:27 +00:00
Greg Beaver
79d05eac0d fix Bug #48541: spl_autoload_register only registers first closure, then leaks the others. Fix missing erealloc in fix for bug #40091 (PHP_5_3 only) 2009-06-13 17:30:50 +00:00
andy wharmby
642b84cd83 New iconv extension tests. Tested on Windows, Linux and Linux 64 bit. 2009-06-13 12:17:42 +00:00
Felipe Pena
f9b9765ed0 - MFH: Fixed bug #48514 (cURL extension uses same resource name for simple and multi APIs) 2009-06-12 20:48:28 +00:00
andy wharmby
092562b263 New iconv extension tests. Tested on Windows, Linux and Linux 64 bit. 2009-06-12 18:57:09 +00:00
andy wharmby
c48a3ddea8 New iconv extension tests. Tested on Windows, Linux and Linux 64 bit 2009-06-12 17:16:01 +00:00
Kalle Sommer Nielsen
5c2a979522 MFH: Fixed static build of mbstring on Windows (makes static build of exif possible too) 2009-06-12 16:15:51 +00:00
Felipe Pena
61d723a359 - Dropped unnecessary var 2009-06-12 14:03:35 +00:00
Andrey Hristov
22c8786493 MFH:
Fix crash when tracing is enabled. Position after buffer was used also
direct usage of MYSQLND_STRING pointer instead of the "s" property of the
structure.
2009-06-12 13:24:57 +00:00
andy wharmby
c8ead0cd61 Delete duplicate test 2009-06-11 23:04:35 +00:00
andy wharmby
791b526c67 New intval() tests. Tested on Windows, Linux and linux 64 2009-06-11 22:26:51 +00:00
andy wharmby
1386f796d2 New 64 bit math tests. Tested on Windows, Linux and Linux 64 bit. Tests authored by Dave Kelsey 2009-06-11 21:17:00 +00:00
andy wharmby
13dce00cdf Add/Fix SKIPIF sections of cURL tests 2009-06-11 21:11:20 +00:00
Andrey Hristov
9a2cc0ce67 Put these in an ifdef because they are not used at all if the zval cache
is off.
2009-06-11 17:54:04 +00:00
Pierre Joye
f2fcd8fb29 - silent warning and make it less ambiguous 2009-06-11 14:36:48 +00:00
andy wharmby
ec0cff39c7 New POISX tests. Tested on Windows (all test SKIP), Linux and Linux 64 2009-06-11 12:31:00 +00:00
Johannes Schlüter
11340cf299 MFH: Use a better extension version 2009-06-11 10:18:08 +00:00
Antony Dovgal
efa7b5c4c8 MFH: fix bug #48518 (curl crashes when writing into invalid file handle) 2009-06-11 09:46:43 +00:00
Antony Dovgal
0c8e557621 reapply the fix 2009-06-11 09:43:59 +00:00
Hannes Magnusson
4ed202e185 MFH: Mark spl as required and fix extension loading order
# Not needed in 5.2 as the simplexmliterator is part of spl there
2009-06-11 09:41:15 +00:00
Andrey Hristov
28c8d25dca MFH:
Protect the code when variable is NULL, which should never happen, but
anyway, you know about "never happens" :)
2009-06-11 08:52:06 +00:00
Andrey Hristov
cff09ba5df MFH:
Check the pointer before calling a function on it, or we will crash.
  This is a very rare situation where the server is totally broken.
2009-06-11 08:35:47 +00:00
Andrey Hristov
a3b85c28c6 Sync with PHP6 - TSRMLS_FETCH
Extract reference decrement in own function
Remove PHPAPI of a function and make it static as it is not called
externally
2009-06-11 08:30:08 +00:00
Felipe Pena
8da7275f1b - MFH: Fix the fix (Bug #46973 - IPv6 address filter rejects valid address) 2009-06-10 19:01:17 +00:00
Pierre Joye
1cc5bc31b9 - check for static lib as well 2009-06-10 15:44:51 +00:00
Antony Dovgal
ea8d871a01 revert the fix for a while 2009-06-10 11:53:58 +00:00
Antony Dovgal
029f42dc63 MFH: fix arginfo for curl_multi_info_read() 2009-06-10 11:10:01 +00:00