Andrey Hristov
bdb2d71dc7
try to workaround problems with non-c99 on HPUX
2010-05-31 16:51:03 +00:00
Ulf Wendel
73a32c52d2
Updating test to reflect the latest and more verbose mysqlnd error messages, updating mysqlnd error message as well.
2010-05-31 13:56:42 +00:00
Ulf Wendel
aa9915ce5d
Fixing test - see also gcov results
2010-05-31 13:28:15 +00:00
Ulf Wendel
31aada825f
Fixing test - make sure it checks the same conditions for libmysql and mysqlnd
2010-05-31 12:55:59 +00:00
Ulf Wendel
c96feb3dda
Fixing test
2010-05-31 12:22:48 +00:00
Ulf Wendel
f0446ca9e3
Fixing mysqli_stmt_attr_set @ libmysql
2010-05-31 12:10:04 +00:00
Antony Dovgal
ebd7c3b37e
fix ZTS build
2010-05-31 12:02:55 +00:00
Ulf Wendel
51044eb919
Improve EXPECTF to work with other than default schemata
2010-05-31 10:52:14 +00:00
Michael Wallner
11d24c1593
* implement new output API, fixing some bugs and implementing some feature
...
requests--let's see what I can dig out of the bugtracker for NEWS--
and while crossing the road:
* implemented new zlib API
* fixed up ext/tidy (what was "s&" in zend_parse_parameters() supposed to do?)
Thanks to Jani and Felipe for pioneering.
2010-05-31 10:29:43 +00:00
Johannes Schlüter
27299b7e40
- token_get_all now returns false on error, not "", returns array on success
2010-05-30 09:34:02 +00:00
Pierre Joye
91721f73f2
- Added recent Windows versions to php_uname and fix undefined windows version
2010-05-30 07:46:45 +00:00
Pierre Joye
5dba22d79e
- ws
2010-05-30 07:36:19 +00:00
Johannes Schlüter
4158f7e122
- More trait reflection work
...
#- I'm not happy about ReflectionClass::getTraitAliases, yet
2010-05-30 01:00:45 +00:00
Felipe Pena
2d63683ec3
- Fixed ReflectionClass::isTrait() checking (to not identify abstract class as Trait)
2010-05-29 22:08:51 +00:00
Felipe Pena
23dfc1fa9d
- Missing Trait check fix
2010-05-29 21:55:19 +00:00
Felipe Pena
3c4ff06ca7
- Fixed wrong abstract class identification (it was identified as a Trait)
2010-05-29 21:48:56 +00:00
Johannes Schlüter
97b7620aed
- Add some folding marks
2010-05-29 21:28:24 +00:00
Johannes Schlüter
19afc82e28
- Make reflection aware of traits
2010-05-29 20:40:58 +00:00
Johannes Schlüter
1afd50766c
- Fix tests
2010-05-29 20:34:25 +00:00
Dmitry Stogov
1fe3984cc4
Fixed bug #50976 (Soap headers Authorization not allowed)
2010-05-28 12:18:03 +00:00
Dmitry Stogov
5f678b58e6
Fixed bug #50762 (in WSDL mode Soap Header handler function only being called if defined in WSDL). (mephius at gmail dot com)
2010-05-28 10:52:16 +00:00
Kalle Sommer Nielsen
49d74ebc6e
Fixed compiler warning (pointer mismatch)
2010-05-27 23:24:06 +00:00
Johannes Schlüter
4136336c02
Update credits
2010-05-27 22:51:28 +00:00
Ulf Wendel
cc3db5cc65
Open server bug: mysqlnd works around it, libmysql fails. Let's skip because MySQL Server version tests are tricky and error prone.
2010-05-27 13:01:17 +00:00
Andrey Hristov
1228c92303
Check before use, because mysqlnd can return NULL
...
and this will crash. However, this can happen only in case of OOM.
2010-05-27 12:44:10 +00:00
Andrey Hristov
3251e54f0f
Don't use NULL pointer, always check before use
2010-05-27 12:39:12 +00:00
Ulf Wendel
b094e5296b
Test fixes and updates to work with a wider range of MySQL server configs
2010-05-27 12:09:39 +00:00
Andrey Hristov
ae9ac28ec2
Fix possible crashes, in case of OOM, due to half-baken
...
objects.
2010-05-27 12:05:02 +00:00
Andrey Hristov
95d4f2ac66
Fix crashes in the allocator in case of OOM.
2010-05-27 12:00:48 +00:00
Andrey Hristov
4de0da5a56
Fix deallocation which can crash if the object is half-baken.
...
Happens during OOM.
2010-05-27 08:51:46 +00:00
Pierrick Charron
0b9263da93
Remove unused variable
2010-05-26 16:17:15 +00:00
Andrey Hristov
0e8b380941
Don't use conn->net without checking if it is NULL, because
...
it can be NULL in OOM conditions. This would cause a crash.
2010-05-26 13:47:43 +00:00
Andrey Hristov
44acaec542
Fix test
2010-05-26 13:36:49 +00:00
Andrey Hristov
f9ad56eab9
Remove a function that has no usage. The zval cache was disabled/removed
...
in 5.3.0-RC3.
2010-05-26 13:30:19 +00:00
Andrey Hristov
ce682f1b26
Add checks to check the underlying pointer in the resource.
...
It can happen that the underlying pointer is freed (like in
the case of connection reconnect), and then it cannot be allocated
anymore, which means that NULL will be used consequently by the
functions that fetch the resource and the crash is immediate.
2010-05-26 07:28:43 +00:00
Michael Wallner
89e93723fb
Added support for object references in recursive serialize() calls. FR #36424
2010-05-26 07:24:37 +00:00
Felipe Pena
de531056f7
- Fixed bug #51899 (Parse error in parse_ini_file() function when empy value followed by no newline)
2010-05-26 02:18:17 +00:00
Felipe Pena
79d2aaf0f1
- Fixed bug #51905 (ReflectionParameter fails if default value is an array with an access to self::)
2010-05-26 00:00:58 +00:00
Andrey Hristov
433cb868d6
Handle the situation when MYSQLND_PROTOCOL's methods return NULL.
...
mysqlnd should not crash but gracefully return with an error.
2010-05-25 23:18:13 +00:00
Andrey Hristov
f4f5a50751
Handle the situation when mysql_init()/mysqlnd_init()
...
return NULL. It is a rare case of OOM but PHP shouldn't crash, if possible.
2010-05-25 22:55:10 +00:00
Felipe Pena
1168cdc323
- Fixed bug #51911 (ReflectionParameter::getDefaultValue() memory leaks with constant array)
2010-05-25 22:46:17 +00:00
Andrey Hristov
708b31a510
Gracefully handle OOM in mysqlnd_stmt_init. Release the handle
...
and return NULL.
2010-05-25 22:42:25 +00:00
Andrey Hristov
6d434e70a4
Init should return status value because initialization can fail.
...
In this case mysqlnd_init() should return NULL to the end-user.
2010-05-25 22:40:47 +00:00
Andrey Hristov
b3c553fa99
Use the specialized macro for this case
2010-05-25 22:38:11 +00:00
Andrey Hristov
b434301f7b
Use only memory that has been allocated
2010-05-25 22:36:33 +00:00
Andrey Hristov
decdfeeeb2
Access memory which was really allocated
2010-05-25 22:34:47 +00:00
Andrey Hristov
844b435655
Fix shared build
2010-05-25 21:54:21 +00:00
Andrey Hristov
954e7db644
Handle OOM in the code that generates PS Execute requests
...
to the server. Fixes crashes in case of OOM.
2010-05-25 19:19:29 +00:00
Andrey Hristov
52e31252fc
Fix metadata duplicatin which wasn't crash-safe in case of OOM.
2010-05-25 18:14:37 +00:00
Dmitry Stogov
25893b643d
Fixed compatibility with "Run Time Cache" patch
2010-05-25 11:38:48 +00:00
Martin Jansen
a389c77ce2
Changed test case to use our new dummy MX records.
2010-05-25 05:01:03 +00:00
Rasmus Lerdorf
a906125fec
Check for -1 as well here
2010-05-24 23:52:11 +00:00
Rasmus Lerdorf
13a09194a9
Let's have a sane error message here instead of some cryptic zlib error
2010-05-24 23:27:39 +00:00
Ilia Alshanetsky
847f519d41
Fixed tests
2010-05-24 18:52:36 +00:00
Dmitry Stogov
f23e857676
Fixed ZTS build
2010-05-24 17:07:52 +00:00
Dmitry Stogov
c5237d82bf
Added caches to eliminate repeatable run-time bindings of functions, classes, constants, methods and properties
2010-05-24 14:11:39 +00:00
Kalle Sommer Nielsen
1cabc8cd3a
Allow ereg to be built as shared on Windows
...
## I know that we may remove ereg in trunk, but since the core doesn't depend on
## ereg, then I don't see any reason not to allow this
2010-05-24 07:44:00 +00:00
Sara Golemon
a0269a6a72
Ooops, return values...
2010-05-21 23:29:34 +00:00
Sara Golemon
6eb4218433
Add JSON_BIGINT_AS_STRING for json_decode() to parse large numbers
...
as strings rather than casting to double and loosing precision.
2010-05-21 22:59:58 +00:00
Andrey Hristov
a25482105e
Check set->data for validity before using it.
...
Prevents crashes after OOM.
2010-05-21 13:37:18 +00:00
Andrey Hristov
476391c02e
When OOM hits the wire, don't crash.
2010-05-21 13:06:52 +00:00
Andrey Hristov
7f44538a11
Fix for Bug #51870
...
PDO::fetchAll after a PDO::execute with bindings lead to a segv.
It is only in unreleased code and thus doesn't deserve a NEWS entry
2010-05-21 11:09:28 +00:00
Kalle Sommer Nielsen
e0498b0889
Remove this RC file, it should be named template.rc anyway and the default template.rc already covers what this .rc file did
2010-05-21 09:01:00 +00:00
Ilia Alshanetsky
6ce4737d94
Fixed tests
2010-05-20 22:53:38 +00:00
Ilia Alshanetsky
cf174c1366
Added support for JSON_NUMERIC_CHECK option in json_encode() that converts
...
numeric strings to integers.
2010-05-20 19:37:52 +00:00
Derick Rethans
1bc9247651
- Added scalar typehinting.
2010-05-20 19:18:35 +00:00
Christopher Jones
f291a1253d
New current()/next() test
2010-05-20 17:55:58 +00:00
Felipe Pena
b7004eda82
- Added arginfo
2010-05-20 17:28:16 +00:00
Antony Dovgal
4463284456
fix ZTS build
2010-05-20 11:20:44 +00:00
Derick Rethans
2bc3611c74
- Fixed name.
2010-05-19 20:20:10 +00:00
Sara Golemon
340d57b13a
Add parameter to openssl_(en|de)crypt
2010-05-19 20:05:09 +00:00
Michael Wallner
e012b36ac2
* fixed bug #47842 sscanf() does not support 64-bit values
2010-05-19 11:28:08 +00:00
Andrey Hristov
bf31c00948
And I thought I fixed that...
...
Part of the previous changeset - remove duplicated code/
The ifdefs were for debug purposes.
2010-05-18 16:35:17 +00:00
Andrey Hristov
fb28410d8f
Fix comment
2010-05-18 15:02:50 +00:00
Pierre Joye
fa78b4497e
- #51793 , Add alpha argument to imagecolorset
2010-05-18 12:38:57 +00:00
Andrey Hristov
940e64dba3
Remove duplicated code.
...
Use one centralized functions for data extraction.
2010-05-18 11:50:31 +00:00
Andrey Hristov
560169068d
Update test file
2010-05-18 11:36:54 +00:00
Andrey Hristov
7dd13d56cc
Add iterator to mysqli_result. Works both for :
...
- USE_RESULT, can be iterated only once, kind of forward iterator
- STORE_RESULT, can be iterated multiple times
2010-05-18 10:39:26 +00:00
Michael Wallner
50cda403b1
* fixed bug #49819 : STDOUT losing data with posix_isatty()
2010-05-18 07:25:29 +00:00
Pierre Joye
6d6b037001
- #43233 , sasl support for ldap on windows
2010-05-17 20:09:42 +00:00
Pierre Joye
46c4029341
- #51844 , checkdnsrr does not support types other than MX
2010-05-17 18:55:35 +00:00
Dmitry Stogov
04e72491bb
Fixed a possible crash because of recursive GC invocation
2010-05-17 07:50:33 +00:00
Rasmus Lerdorf
2ef8ef9029
typo
2010-05-15 15:37:57 +00:00
Andrey Hristov
3ea05600e9
result_meta local storage
2010-05-14 16:42:17 +00:00
Andrey Hristov
8a093b3811
Allow overloading of mysqlnd_result_meta_init().
...
Add free space for future hooks.
2010-05-14 15:11:56 +00:00
Andrey Hristov
faf4659295
Export MYSQLND_PROTOCOL methods
2010-05-14 13:32:27 +00:00
Andrey Hristov
8691786ebd
- Give possibility to overload mysqlnd_result_init().
...
- Always use conn->m->stmt_init instead of mysqlnd_stmt_init()
2010-05-14 13:18:39 +00:00
Andrey Hristov
dd85f9c2f2
OOM fixes
2010-05-14 13:04:33 +00:00
Pierrick Charron
1386a6fcc6
Added support for CURLOPT_MAX_RECV_SPEED_LARGE and CURLOPT_MAX_SEND_SPEED_LARGE.
2010-05-14 06:29:54 +00:00
Andrey Hristov
07619b7190
- initialize some variables
...
- initialize the methods in a shorter way, use the compiler.
= on structures copies them. Allows also exportability of
the methods.
2010-05-13 15:29:08 +00:00
Andrey Hristov
fccec600eb
Export the methods of MYSQLND_NET
2010-05-13 14:15:23 +00:00
Andrey Hristov
4c1487577c
Export the result_metadata methods to external modules.
2010-05-13 11:16:11 +00:00
Andrey Hristov
76fd19998d
Somehow missed to commit this, for better fix for #51605
2010-05-13 11:06:00 +00:00
Andrey Hristov
6cefa510d6
Better fix for #51605
2010-05-13 11:05:09 +00:00
Dmitry Stogov
fdfdb1480e
Fixed a possible resource destruction issues in shm_put_var()
2010-05-13 08:34:06 +00:00
Dmitry Stogov
f5ef32e7ab
Fixed a possible memory corruption in ArrayObject::uasort() Reported by Stefan Esser
2010-05-13 08:09:54 +00:00
Felipe Pena
bcd9a87e2a
- Fixed bug #51791 (constant() aborts execution when fail to check undefined constant)
2010-05-13 02:13:30 +00:00
Sara Golemon
1fd85e29de
Rename JSON_Serializable to JsonSerializable per ML discussion
2010-05-12 16:42:48 +00:00
Dmitry Stogov
214d3bc248
Fixed a possible memory corruption in parse_str(). Reported by Stefan Esser
2010-05-12 11:32:25 +00:00
Dmitry Stogov
5fc060e671
Fixed a possible memory corruption in pack(). Reported by Stefan Esser
2010-05-12 11:04:57 +00:00
Michael Wallner
0bb08c61f8
Fixed bug #51725 (xmlrpc_get_type() returns true on invalid dates). (Mike)
2010-05-12 09:37:25 +00:00
Arnaud Le Blanc
4f3b619625
- code cleanups
...
- cleanup progress data from session vars as soon as all
post data has been readden (upload_progress.cleanup
ini setting allows to disable this)
2010-05-11 16:39:07 +00:00
Andrey Hristov
70b6fd2ae4
One more time fixing the tests, lets use $IS_MYSQLND which comes from connect.inc
2010-05-11 15:55:07 +00:00
Andrey Hristov
cab261ea16
Fix for mysqli_stmt_execute.phpt, should be ran only against
...
4.1+ servers. MySQL's SLEEP function is available since 5.0.12, thus
the tests that use this function should be ran only if the server
is at least 5.0.12.
2010-05-11 15:49:03 +00:00
Andrey Hristov
98585ccb37
These tests should be run only if mysqli uses mysqlnd. Part of fix for
...
Bug #51712 Test mysql_mysqlnd_read_timeout_long must fail on MySQL4
2010-05-11 15:27:03 +00:00
Ilia Alshanetsky
5d9b0a4a6f
Removed double allocation of buffer inside openssl_random_pseudo_bytes() and cleanup code
2010-05-11 14:31:00 +00:00
Dmitry Stogov
2c5fecfeb4
Fixed a possible memory corruption in substr_replace()
2010-05-11 11:59:13 +00:00
Andrey Hristov
41ad139d17
Fix for bug #51605 (Mysqli zombie links)
2010-05-11 10:03:16 +00:00
Arnaud Le Blanc
6f3cea3870
Added session upload progress tests
2010-05-10 16:10:09 +00:00
Arnaud Le Blanc
da9448f3fd
Added upload progress feedback in session data as describied
...
in RFC : http://wiki.php.net/rfc/session_upload_progress
2010-05-10 16:09:00 +00:00
Arnaud Le Blanc
d5a646480d
Fix tests
2010-05-10 15:53:54 +00:00
Etienne Kneuss
74396cf3d2
fix the fix for the fix
2010-05-10 13:03:33 +00:00
Etienne Kneuss
815db040a9
Fix crash
2010-05-10 12:38:13 +00:00
Felipe Pena
8d46707889
- Fix crash when instantiating MultipleIterator
2010-05-10 01:39:58 +00:00
Kalle Sommer Nielsen
a31a2083af
Well we do need zend_throw_exception_ex ;-)
2010-05-06 13:44:35 +00:00
Dmitry Stogov
77b2e54658
Fixed PDO objects binary incompatibility
2010-05-06 08:37:41 +00:00
Sara Golemon
1381b14eaa
Add JSON_Serializable interface
...
Objects implementing JSON_Serializable will have
their ->jsonSerialize() method called
Similar to serialize() and __sleep()
2010-05-05 22:48:14 +00:00
Pierre Joye
754cb92b2b
- nuke unused vars
2010-05-05 13:51:54 +00:00
Pierre Joye
bd2f9d56ec
- #51063 , news and test
2010-05-05 13:39:35 +00:00
Pierre Joye
b9730786a7
- #51063 , implement getimagesizefromstring
2010-05-05 13:37:40 +00:00
Rob Richards
8a0450698d
fix bug #48601 (xpath() returns FALSE for legitimate query)
...
add test
2010-05-05 11:40:11 +00:00
Dmitry Stogov
fa0a07ba97
Fixed bug #50698 (SoapClient should handle wsdls with some incompatiable endpoints). (Justin Dearing)
2010-05-05 07:43:45 +00:00
Rob Richards
d920d6226e
fix bug #49490 (XPath namespace prefix conflict)
...
add test
2010-05-04 15:41:49 +00:00
Derick Rethans
e743bcd862
- Fixed bug #49081 (DateTime::diff() mistake if start in January and interval >
...
28 days). (Derick)
2010-05-04 15:11:41 +00:00
Andrey Hristov
d53337bbe7
OOM stability fixes
2010-05-04 14:02:42 +00:00
Andrey Hristov
447c693b2d
Add possibility to control the allocator in when PHP is compiled
...
with debug
2010-05-04 13:49:43 +00:00
Rob Richards
798aca0d83
fix bug #51721 (mark DOMNodeList and DOMNamedNodeMap as Traversable)
2010-05-04 12:55:26 +00:00
Adam Harvey
5c5fd74fdb
Fix for bug #48289 (iconv_mime_encode() quoted-printable scheme is broken).
...
Thanks to Hiroaki Kawai for the original patch.
2010-05-04 11:56:59 +00:00
Adam Harvey
574e578629
Alter the getmxrr() test to use lists.php.net (which we presumably control)
...
instead of ez.no (which we presumably don't) for the single MX record test.
2010-05-04 09:41:47 +00:00
Pierre Joye
cdadeed834
- Fixed bug #51732 , Fileinfo __construct or open does not work with NULL
2010-05-04 08:48:58 +00:00
Andrey Hristov
5ca71c00f5
Handle OOM in mysqlnd_res::store_result_fetch_data
2010-05-03 19:32:07 +00:00
Pierre Joye
05ac8f5c52
- fix build (declaration must be first)
2010-05-03 19:31:50 +00:00
Andrey Hristov
9c276eee6c
Handle OOM in mysqlnd_fetch_row_buffered_c()
2010-05-03 19:09:45 +00:00
Andrey Hristov
2b00096004
Handle OOM in mysqlnd_fetch_row_unbuffered_c()
2010-05-03 19:02:48 +00:00
Andrey Hristov
2b18a3ff93
Handle OOM stemming from mysqlnd_result_init in the same
...
function and up the stack.
2010-05-03 18:50:47 +00:00
Andrey Hristov
7de2607c12
Handle gracefully OOM in mysqlnd_mempool_create and up the stack
2010-05-03 17:07:18 +00:00
Andrey Hristov
c32bae720c
Handle OOM in block_alloc_get_chunk, and also in the caller
...
in mysqlnd_wireprotocol.c
2010-05-03 16:20:46 +00:00
Andrey Hristov
ec0fe858c6
Remove unused parameter
2010-05-03 16:09:05 +00:00
Ilia Alshanetsky
676a8338a1
Fixed bug #51690 (Phar::setStub looks for case-sensitive __HALT_COMPILER())
2010-05-03 14:41:40 +00:00
Andrey Hristov
57059d4e31
One more case to handle in case of OOM, in block_alloc_resize_chunk
2010-05-03 14:26:08 +00:00
Andrey Hristov
8e8348a4b0
Handle OOM when resizing blocks during data fetch
2010-05-03 14:16:04 +00:00
Andrey Hristov
2da3f5ba90
Fix compiler warnings - unused functions
2010-05-03 13:51:30 +00:00
Andrey Hristov
333581fcb4
Better handing of OOM in mysqlnd::set_client_option
2010-05-03 13:45:58 +00:00
Kalle Sommer Nielsen
5c628d550b
Fix build, declarings first
2010-05-03 09:21:21 +00:00
Ilia Alshanetsky
74d4ddea3d
- Fixed a possible stack exaustion inside fnmatch(). Reporeted by Stefan Esser
2010-05-02 19:34:21 +00:00
Raphael Geissert
1fc377bc99
Fix bug in unaligned memory access fix
2010-05-02 05:01:51 +00:00
Raphael Geissert
fbaef48278
Fix unaligned memory accesses in enchant (bug #51289 )
2010-05-01 23:32:40 +00:00
Raphael Geissert
7d716f8373
Fix another typo s/exlcusive/exclusive
2010-05-01 18:30:38 +00:00
Raphael Geissert
59fa776c53
Fix typos s/connnection/connection
2010-05-01 18:27:42 +00:00
Etienne Kneuss
f9532adcc6
Fix misplaced code
2010-04-29 17:14:37 +00:00
Andrey Hristov
3010485d44
Handle OOM cases, in case of persistent connections this is real
...
and the Zend MM won't help.
2010-04-29 15:49:51 +00:00
Etienne Kneuss
e6ee260b25
Implement SplObjectStorage::getHash()
2010-04-29 15:47:41 +00:00
Andrey Hristov
aec94a464b
Fix valgrind warning, usage of nirvana memory
2010-04-29 15:17:44 +00:00
Andrey Hristov
60db5154d2
Add a test case for the recently fixed memleak
2010-04-29 13:19:57 +00:00
Andrey Hristov
ac172db01f
Fix possible crashes in case of OOM, as well as a leak.
2010-04-29 13:13:41 +00:00
Antony Dovgal
c23d902e0b
fix tests
2010-04-29 12:48:06 +00:00
Andrey Hristov
d7abb57745
Try blob columns instead of int, and insert a lot of data at once
2010-04-29 12:07:02 +00:00
Andrey Hristov
6c1a2831f6
Fix crash if OOM and USE_ZEND_ALLOC=0
2010-04-29 11:49:08 +00:00
Christopher Jones
2b024611de
Bug #51691 (Unnecessary realloc causes crashes in PHP trunk tests with interned strings). Updated tests check some other edge cases
2010-04-29 05:07:16 +00:00
Christopher Jones
1238d48abf
Remove obsolete test
2010-04-29 05:07:03 +00:00
Derick Rethans
63a153eefd
- Updated to version 2010.9 (2010i)
2010-04-28 23:03:36 +00:00
Christopher Jones
14014553c3
Mask schemaname in error messages
2010-04-28 17:26:59 +00:00
Felipe Pena
69efd7f5c7
- Fix test
2010-04-28 16:33:36 +00:00
Andrey Hristov
6d88d1a75e
Fixed few buffer overflows reported by Stefan Esser.
2010-04-28 15:35:52 +00:00
Rob Richards
0a34d10783
revert change #298288 : Remove old dsp/dsw/makefile files
2010-04-28 14:41:51 +00:00
Pierre Joye
ef76df031b
- - Fixed #51128 , imagefill() doesn't work with large images
2010-04-28 14:35:42 +00:00
Pierre Joye
68e0e88610
- fix possible Dechunking Filter Buffer Overflow
2010-04-28 14:10:01 +00:00
Andrey Hristov
16d5d5966e
const-ify fields
2010-04-28 12:29:13 +00:00
Ilia Alshanetsky
9fac561399
Fixed a possible arbitrary memory access inside sqlite extension. Reported by Mateusz Kocielski.
2010-04-28 12:10:10 +00:00
Pierre Joye
c09a8cb043
- Fix #51671 , imagefill does not work correctly for small images
2010-04-28 08:23:44 +00:00
Pierre Joye
27d922c49f
- WS
2010-04-28 08:04:52 +00:00
Ilia Alshanetsky
1b47fcfd33
Fixed string format validation inside phar extension. Reported by Stefan Esser
2010-04-27 17:13:24 +00:00
Dmitry Stogov
9424d420fb
Fixed memory leak in ext/spl/tests/spl_autoload_bug48541.phpt
2010-04-27 13:31:55 +00:00
Andrey Hristov
8546225b6e
Fixed very rare memory leak in mysqlnd, when binding thousands of columns
2010-04-27 12:32:34 +00:00
Andrey Hristov
194444b293
Of course, 64*4 is 256, not 1024
2010-04-27 11:02:51 +00:00
Andrey Hristov
4b658e3ded
Move the macro to mysqlnd_enum_n_def.h, because it can be reused
...
in other places. Also, premultiply the values by 4 and add some
reserve for future releases of the server.
2010-04-27 10:53:27 +00:00
Etienne Kneuss
07a6d66276
Fixed #48361 (SplFileInfo::getPathName() should return the parent
2010-04-27 08:56:01 +00:00
Andrey Hristov
a00f8f4ea7
Test case for the buffer overflow in mysqlnd_change_user
2010-04-27 08:45:23 +00:00
Andrey Hristov
207a72ca0e
Fixed buffer overflow in mysqlnd_change_user
2010-04-27 08:26:24 +00:00
Hannes Magnusson
8ba86768e7
- Unifiy that message
...
- Mention php.ini
2010-04-27 08:23:25 +00:00
Hannes Magnusson
56970e11e5
Fix test
2010-04-27 08:17:17 +00:00
Andrey Hristov
6f6909e582
Fixed possible buffer overflow in mysqlnd_conn__list_fields.
2010-04-27 08:02:08 +00:00
Etienne Kneuss
739ebcc66e
Fix #51374 (Wrongly initialized object properties)
2010-04-27 05:58:39 +00:00
Pierrick Charron
1892d92d68
Fixed bug #51670 getColumnMeta causes segfault when re-executing query after calling nextRowset
2010-04-27 05:56:56 +00:00
Etienne Kneuss
6f5f6d2bca
Fix #49723 (Skip seek when unnecessary)
2010-04-27 04:57:48 +00:00
Pierrick Charron
91ee07814e
Remove unused variables
2010-04-27 00:09:55 +00:00
Kalle Sommer Nielsen
dd8e59da8f
Removed safe_mode
...
* Removed ini options, safe_mode*
* Removed --enable-safe-mode --with-exec-dir configure options on Unix
* Updated extensions, SAPI's and core
* php_get_current_user() is now declared in main.c, thrus no need to include safe_mode.h anymore
2010-04-26 23:53:30 +00:00
Ilia Alshanetsky
3c78ad763e
Fixed handling of session variable serialization on certain prefix characters. Reported by Stefan Esser
2010-04-26 18:35:54 +00:00
Felipe Pena
78f43a53f7
- Fixed tests
2010-04-26 14:15:44 +00:00
Antony Dovgal
19b957b535
fix test
2010-04-26 13:46:40 +00:00
Antony Dovgal
8f2a6d0222
fix test
2010-04-26 13:44:23 +00:00
Antony Dovgal
76b36c0003
fix skipif sections
2010-04-26 13:41:43 +00:00
Pierre Joye
75d9b3c7f8
- Fix #51582 , Don't assume UINT64_C it's ever available
2010-04-26 10:34:06 +00:00
Pierrick Charron
00209d7966
Update tests related to allow_call_time_pass_reference
2010-04-26 00:27:04 +00:00
Felipe Pena
c4630c0da2
- Remove empty tests
2010-04-26 00:21:18 +00:00
Felipe Pena
0a6bcd44a7
- Removed allow_call_time_pass_reference (Pierrick)
2010-04-26 00:13:34 +00:00
Hannes Magnusson
b25baf178d
mention which setting!
2010-04-25 18:55:06 +00:00
Etienne Kneuss
d8c8cb4cca
Fix #51532 (Invalid prototype for SplFileInfo::fscanf)
2010-04-25 05:18:42 +00:00
Felipe Pena
f95818634c
- Fixed memory leak
2010-04-24 16:59:09 +00:00
David Soria Parra
08b9fdc8a3
Add DTrace probes
2010-04-24 13:32:30 +00:00
Christopher Jones
fd42b5064c
Initialize vars to prevent valgrind warnings in some cases
2010-04-24 00:44:56 +00:00
Andrey Hristov
e9f9f66f2e
Fix for bug #51647 Certificate file without private key (pk in another file) doesn't work
2010-04-23 13:54:40 +00:00
Felipe Pena
6a1ad16066
- Fixed compiler warnings
2010-04-23 13:32:03 +00:00
Kalle Sommer Nielsen
1e9c9778f5
For real this time :-/
2010-04-22 22:57:35 +00:00
Kalle Sommer Nielsen
7bccac6dea
Fix the sys_getloadavg() test
2010-04-22 22:41:42 +00:00
Felipe Pena
5234958f8a
- Fixed bug #51435 (Missing ifdefs / logic bug in crypt code cause compile errors)
2010-04-22 20:54:35 +00:00
Andrey Hristov
3dbf6acd7b
Change the way the allocator is called - through an abstraction
...
to give the possibility of pluggability. Thanks to the macros
already used the changes are not pervasive.
2010-04-22 16:28:50 +00:00
Andrey Hristov
e5dcac245c
Fix problem spotted by Felipe.
2010-04-22 16:22:56 +00:00
Antony Dovgal
4646062956
fix typo
2010-04-22 16:00:45 +00:00
Antony Dovgal
a15efa6979
revert most of the Andrey's patch that causes segfaults
...
(as agreed with Pierre)
2010-04-22 15:59:44 +00:00
Andrey Hristov
7c5259cca3
adding what last commit was missing
2010-04-22 15:14:45 +00:00
Andrey Hristov
1ed3da294b
Remove dead code and add possibility to fine tune the size of
...
a mempool (used for result sets).
2010-04-22 15:07:40 +00:00
Andrey Hristov
12c9bde2e7
Add the posibility to switch off the compilation of statistics
...
collection, for those who want to optimize the last percent of their
binaries.
2010-04-22 13:03:44 +00:00
Antony Dovgal
64a97ee663
initialize variable. this code still segfaults in OpenSSL, no idea why
2010-04-22 11:56:08 +00:00
Pierre Joye
f66e02b8fc
- Bug #51629 , CURLOPT_FOLLOWLOCATION error message is misleading
2010-04-22 11:49:10 +00:00
Pierre Joye
b1e3ae0e99
- Bug #51629 , CURLOPT_FOLLOWLOCATION error message is misleading
2010-04-22 08:58:07 +00:00
Adam Harvey
c6e8a8957b
Fix for bug #51604 (newline in end of header is shown in start of message).
...
Patch by Daniel Egeberg.
2010-04-22 02:22:49 +00:00
Kalle Sommer Nielsen
e73a794105
Removed the session 4.2 bug compatibility mode
2010-04-22 01:07:48 +00:00
Kalle Sommer Nielsen
518a17e7bf
Remove old dsp/dsw/makefile files, these arent used by the build system anymore and are barely updated nor available for all extensions
2010-04-21 23:36:49 +00:00
Kalle Sommer Nielsen
956a9cdc6e
Updated copyright year
2010-04-21 23:19:39 +00:00
Kalle Sommer Nielsen
b8ada243fe
Drop php_register_var(), Thanks Felipe
2010-04-21 23:16:56 +00:00
Kalle Sommer Nielsen
3f29144348
Removed session_is_registered(), session_register() and session_unregister().
...
-- They are no longer needed without register_globals
2010-04-21 23:03:16 +00:00
Kalle Sommer Nielsen
9d395a4a2b
Removed import_request_variables(), this is not needed anymore without register_globals
2010-04-21 22:23:55 +00:00
Kalle Sommer Nielsen
3e6678de4d
Added missing zend_parse_parameters_none() call to sys_getloadavg()
2010-04-21 22:04:19 +00:00
Kalle Sommer Nielsen
9a38f301d6
Remove highlight.bg, it was removed in the old trunk and its not referenced in zend_highlight.c, meaning its not even implemented correctly in 5.3.
2010-04-21 21:56:24 +00:00
Pierrick Charron
508cfb7210
Remove unused variable
2010-04-21 16:00:46 +00:00
Felipe Pena
12c8bfb021
- Fixed bug #51562 (query timeout in mssql can not be changed per query)
...
Patch by: ejsmont dot artur at gmail dot com
2010-04-21 14:19:27 +00:00
Felipe Pena
623a25728a
- Fix mem. leak
2010-04-21 12:52:24 +00:00
Kalle Sommer Nielsen
febee11285
Removed register_globals
2010-04-21 01:27:22 +00:00
Andrey Hristov
6dec27d58b
Hardening the reads of mysqlnd.
...
All packets but the row data packet are read into preallocated buffer,
either on the stack or on the heap (cmd_buffer). The size of the buffer
is always checked to skip buffer overruns. Only up to the size of the
buffer is stored into the buffer but packet->header.size has the size of
all data sent. In this case network layer bails.
This patch hardenes the reads, so if packets are malformed and shorter
than they should be there will be no further reads in the buffer.
In short, detection of malformed packets.
2010-04-20 20:02:32 +00:00
Andrey Hristov
f2d23c7f37
put the trigger in the right place
2010-04-20 19:09:56 +00:00
Andrey Hristov
eda9959e36
It is possible that change user tries an user who has old password.
...
Instead of error message that doesn't say much there is more information now.
2010-04-20 18:04:24 +00:00
Felipe Pena
6df7a7d7b5
- Improve test
2010-04-20 16:45:46 +00:00
Felipe Pena
3a0a2af52c
- Fixed bug #51615 (PHP crash with wrong HTML in SimpleXML)
2010-04-20 16:24:21 +00:00
Felipe Pena
b7bd1167a9
- Fixed bug #51607 (pg_copy_from does not allow schema in the tablename argument)
...
Patch by: cbandy at jbandy dot com
2010-04-20 15:59:01 +00:00
Dmitry Stogov
e7d3ec6dee
Fixed bug #49700 (memory leaks in php_date.c if garbage collector is enabled)
2010-04-20 15:41:35 +00:00
Felipe Pena
8c14acfc82
- Fixed bug #51609 (pg_copy_to: Invalid results when using fourth parameter)
2010-04-20 14:11:53 +00:00
Felipe Pena
6d951e2ded
- Fix copyrights
2010-04-20 13:50:34 +00:00
Antony Dovgal
91a214008c
fix build
2010-04-20 12:50:02 +00:00
Felipe Pena
f507cc9cf6
- Fixed bug #51608 (pg_copy_to: WARNING: nonstandard use of \\ in a string literal)
...
Patch by: cbandy at jbandy dot com
2010-04-20 11:49:23 +00:00
Dmitry Stogov
453b49ed20
Added a number of small performance tweaks and optimizations
...
. ZEND_RECV now always has IS_CV as its result
. ZEND_CATCH now has to be used only with constant class names
. ZEND_FETCH_DIM_? may fetch array and dimension operans in a different order
2010-04-20 11:16:39 +00:00
Dmitry Stogov
dd5c478be6
Added concept of interned strings. All strings constants known at compile time are allocated in a single copy and never changed.
2010-04-20 11:05:54 +00:00
Dmitry Stogov
94dd83722b
Changed the structure of op_array.opcodes. The constant values are moved from opcode operands into a separate literal table
2010-04-20 10:57:45 +00:00
Antony Dovgal
f151e24218
fix infinite loop in the test
2010-04-20 10:04:26 +00:00
Adam Harvey
afa1045305
Added explanatory comments to filter_input and filter_input_array to document
...
why some code that looks intuitively wrong is actually correct. Related to
bug #51344 (FILTER_NULL_ON_FAILURE flag automatically set in filter_input()
functions).
2010-04-20 04:31:11 +00:00
Stanislav Malyshev
129019b9fc
fix 64-bit integer overflow in mhash_keygen_s2k
2010-04-20 00:45:07 +00:00
Stanislav Malyshev
c93a4f192b
restore $this support for closures to its former glory
2010-04-19 19:45:03 +00:00
Felipe Pena
6f03cbf664
- Fixed bug #51590 (JSON_ERROR_UTF8 is undefined)
2010-04-18 18:07:27 +00:00
Stanislav Malyshev
b65385aa44
fix non-ts build
2010-04-16 23:36:53 +00:00
Christopher Jones
9cd79b40c5
Fixed Bug #51577 (Uninitialized memory reference with oci_bind_array_by_name)
2010-04-16 20:36:40 +00:00