Commit Graph

23959 Commits

Author SHA1 Message Date
Rob Richards
0f3597a2d2 fix hints causing phpdoc crash 2008-09-22 15:09:06 +00:00
Felipe Pena
ac5d2bd5f0 - Fixed bug #46088 (RegexIterator::accept - segfault) 2008-09-22 13:06:29 +00:00
Greg Beaver
0653e0a142 MF53: workaround for Bug #46147 for PHP < 5.2.7 2008-09-22 01:40:51 +00:00
Arnaud Le Blanc
993e1def13 Fixed #46059 (Compile failure under IRIX 6.5.30 building posix.c) 2008-09-20 22:12:31 +00:00
Felipe Pena
c14338f5a9 - Fixed bug #46067 (Collator methods - Segfault) 2008-09-20 22:06:18 +00:00
Dmitry Stogov
063c29f9ce Fixed bug #46115 (Memory leak when calling a method using Reflection) 2008-09-19 12:48:45 +00:00
Andrey Hristov
82310caccb Fix the libmysql build. Unintentionally broken by my last commit. 2008-09-19 11:39:53 +00:00
Andrey Hristov
722b9135d9 Fix for bug#46019 MySQLi::init() leaks memory 2008-09-19 11:35:37 +00:00
Scott MacVicar
f994f24c58 Show the library version currently loaded as well as the version the extension was compiled with. Useful for checking PHP is using the latest version. 2008-09-18 16:02:09 +00:00
Antony Dovgal
2e04ad2163 update tests 2008-09-18 12:15:56 +00:00
Scott MacVicar
8ee4a8fd7c mhash algorithm parameter was modified when it was a zval, also update a test. 2008-09-18 11:52:12 +00:00
Rob Richards
b85af35818 fix bug #46099 (Xsltprocessor::setProfiling - memory leak) 2008-09-18 11:46:54 +00:00
Antony Dovgal
2285d87ced fix test 2008-09-18 08:40:20 +00:00
Ilia Alshanetsky
c5bc3a1c72 MFB: Fixed bug #46110 (XMLWriter - openmemory() and openuri() leak memory on
multiple calls).
2008-09-17 23:28:07 +00:00
Arnaud Le Blanc
4f66ff6e76 Added ability to cancel upload in rfc1867 handler 2008-09-17 17:22:07 +00:00
Johannes Schlüter
a89387b7e3 - Fix #44425 (Extending PDO/MySQL class with a __call() function doesn't work) 2008-09-16 23:34:31 +00:00
Felipe Pena
4fc7e69dd5 - Fixed bug #46071 (finfo_open() segfaults with wrong file name on BSD) 2008-09-16 22:21:40 +00:00
Antony Dovgal
22802419ba fix segfault with serialize(new __PHP_Incomplete_Class) found by Felipe
add test
2008-09-16 14:36:10 +00:00
Andrey Hristov
a7226f1a03 Fix a crash introduced yesterday in mysqlnd, non-zts mode - missing if () for
STAT_LAST was accessing wrong memory thus overwritting method pointers.

Windows doesn't have atoll(), which is C99, C89 has only atoi() + atol().
Win has _atoi64, so use it.
2008-09-16 14:34:11 +00:00
Antony Dovgal
07aac764a5 fix compile warning 2008-09-16 09:48:07 +00:00
Scott MacVicar
355c6d4226 Fix memory leak in a few cases 2008-09-16 09:45:06 +00:00
Ilia Alshanetsky
815ac6539a MFB: Fixed bug #46087 (DOMXPath - segfault on destruction of a cloned
object).
2008-09-16 00:38:55 +00:00
Scott MacVicar
71d0a46269 MFB Fixed bug #46086 (Segfault when accessing fileinfo class property) 2008-09-15 22:15:16 +00:00
Andrey Hristov
1eb634c0e3 Forgot to merge these changes - Float conversion 2008-09-15 18:10:38 +00:00
Andrey Hristov
9b48b002f6 Add float conversions too. Float users should understand how float works!!! 2008-09-15 18:07:58 +00:00
Felipe Pena
e27148f736 - Added E_ERROR in constructors 2008-09-15 18:04:18 +00:00
Derick Rethans
397dc60971 - Updated to version 2008.6 (2008f) 2008-09-15 18:02:49 +00:00
Derick Rethans
9cd469b655 - Updated to version
Notice: Undefined offset: 1 in Command line code on line 1

Call Stack:
    0.0002     660592   1. {main}() Command line code:0

.
Notice: Undefined offset: 2 in Command line code on line 1

Call Stack:
    0.0002     660592   1. {main}() Command line code:0

-96 ()
2008-09-15 18:00:59 +00:00
Andrey Hristov
02ae7e8737 Compile-in a string-to-int conversion for INT columns by default,
controlled by a ini setting.
2008-09-15 14:02:55 +00:00
Dmitry Stogov
f9f69a5373 Fixed bug #43053 (Regression: some numbers shown in scientific notation). (int-e at gmx dot de)
some 64bit test files may need to be fixed
2008-09-15 11:47:27 +00:00
Etienne Kneuss
4396e6ec11 Fix #45656 (new Class silenting exceptions in autoloaders) 2008-09-15 10:19:15 +00:00
Felix De Vliegher
c8ff440095 More fileinfo tests 2008-09-15 08:42:48 +00:00
Scott MacVicar
d95bc4293d Sync libsqlite to 3.6.2 with some VC6 patches 2008-09-15 01:17:48 +00:00
Scott MacVicar
d33c7bbd96 MFB Fixed bug #46033 (Segfault when instantiating SQLite3Stmt and SQLite3Result) 2008-09-15 01:00:52 +00:00
Arnaud Le Blanc
c2f830ca21 MFB / fix tests 2008-09-14 14:57:26 +00:00
Arnaud Le Blanc
8225d21a2d Fix str len in stripos when $offset argument is given 2008-09-14 14:56:34 +00:00
Arnaud Le Blanc
35fad44b7b Fix leak in fgetc() 2008-09-14 14:55:50 +00:00
Nuno Lopes
3a9017fb72 sync with PHP 5.3: upgrade to pcre 7.8 2008-09-14 14:37:14 +00:00
Greg Beaver
32a20c3040 MFB: fix compile on IRIX with MIPSPro (Bug #46072) 2008-09-14 06:46:57 +00:00
Greg Beaver
2f54ca9c7a MFB: increase code coverage, fix bzip2-compressed alias in zip 2008-09-14 06:32:52 +00:00
Greg Beaver
8db86ad19e MFB: fix minor issues found by ICC (unused variables and the like) 2008-09-13 22:31:18 +00:00
Antony Dovgal
43034db4c1 actually reset stream position when finished 2008-09-13 21:32:15 +00:00
Greg Beaver
a32388a9dc MFB: fix Bug #46060: addEmptyDir() breaks 2008-09-13 20:57:15 +00:00
Moriyoshi Koizumi
09e9f4cda1 - Reenable ini_set("mbstring.internal_encoding", VALUE) to work on runtime.
(noticed by Antony. Thanks!)
2008-09-13 19:50:26 +00:00
Moriyoshi Koizumi
3d9876cdbe - Properly initialize/finalize the library. This plugs the leaks caused by
onig_new().
2008-09-13 02:32:51 +00:00
Moriyoshi Koizumi
5f6083c47f - Adding tests. 2008-09-13 00:30:31 +00:00
Moriyoshi Koizumi
bcd68d0985 - WS 2008-09-13 00:23:35 +00:00
Moriyoshi Koizumi
23f6c6cf9b - mb_encoding_aliases() is more consistent with mb_preferred_mime_name()
despite the unconformance with the naming convention.
2008-09-13 00:22:10 +00:00
Moriyoshi Koizumi
abedda418b - Add missing =DIR 2008-09-13 00:14:16 +00:00
Moriyoshi Koizumi
2f645879e6 - The mb_list_* issue has been resolved in the following way:
- Keep the same prototype as 5.2 for mb_list_encodings().
  - Add mb_list_encoding_aliases() with the mandatory parameter.
  - Remove mb_list_mime_names() as the list can be made from iteration
    on mb_list_encodings() with mb_preferred_mime_name().
2008-09-12 23:59:51 +00:00
Moriyoshi Koizumi
7bf6b36b19 * Use memcmp() for binary safety. 2008-09-12 23:34:45 +00:00
Arnaud Le Blanc
2f0b63b6df Add tests for pcntl 2008-09-12 19:49:38 +00:00
Arnaud Le Blanc
4a254a0a5e initialize optional args 2008-09-12 19:49:04 +00:00
Felipe Pena
9c9ee1a71c - Fixed endless loop and segfault 2008-09-12 17:30:53 +00:00
Felipe Pena
4768abe05f - Missing argument to type "t" 2008-09-12 16:24:12 +00:00
Arnaud Le Blanc
2f52949fec make pharcommand.inc works without ereg 2008-09-12 16:08:42 +00:00
Andrey Hristov
5b93dff141 - More statistics
- Fixed endless loop - mysqlnd_stmt_next_result() returned FAIL but as it
  is defined to be 1 (and PASS is 0), checking for mysqlnd_stmt_more_result()
  was successful although we were expecting a FAIL.
2008-09-12 15:06:55 +00:00
Arnaud Le Blanc
f9bbb14f8e MFB skipif 2008-09-12 12:17:48 +00:00
Arnaud Le Blanc
42a41b9484 Fix test 2008-09-12 12:14:28 +00:00
Antony Dovgal
63ffff111c fix typo
test before commit!
2008-09-12 10:30:18 +00:00
Felipe Pena
a26fab9f6b - Fixed unexpected zval changes 2008-09-12 01:10:56 +00:00
Ilia Alshanetsky
f267153613 MFB: Fixed bug #45382 (timeout bug in stream_socket_enable_crypto). 2008-09-11 23:56:57 +00:00
Lars Strojny
7949c4d771 prev()-tests by Iain Lewis <ilewis@uk.ibm.com> 2008-09-11 18:21:24 +00:00
Arnaud Le Blanc
962cc9d9c8 Fix test 2008-09-11 15:47:56 +00:00
Arnaud Le Blanc
8483399c08 Fix invalid free 2008-09-11 15:45:29 +00:00
Arnaud Le Blanc
f49c3c98bc Fixed #46053 (SplFileObject::seek - Endless loop) 2008-09-11 15:31:48 +00:00
Arnaud Le Blanc
f327994df3 Fixed #46051 (SplFileInfo::openFile - memory overlap) 2008-09-11 15:22:17 +00:00
Rob Richards
5f50350ca9 fix bug #46047 (SimpleXML converts empty nodes into object with nested array)
add test
2008-09-11 14:20:30 +00:00
Rob Richards
bdb50267f7 fix bug #45901 (wddx_serialize_value crash with SimpleXMLElement object)
add test
2008-09-11 14:16:36 +00:00
Antony Dovgal
542be32668 fix test 2008-09-11 13:38:06 +00:00
Arnaud Le Blanc
ef1b4f2698 Added tests 2008-09-11 11:52:02 +00:00
Arnaud Le Blanc
870c5e1c31 Implemented ability to provide upload progress feedback through session
data.
2008-09-11 11:51:07 +00:00
Sanjay Mantoor
5190b089be New testcases for array_intersect_key() function 2008-09-11 10:41:01 +00:00
Greg Beaver
a2fdf4bbcc remove weird relic of development past that somehow made it in here on the last commit 2008-09-11 03:33:10 +00:00
Greg Beaver
6391270b85 MFPHP5: fix Bug #46032: PharData::__construct wrong memory read 2008-09-11 03:29:42 +00:00
Stanislav Malyshev
3a55154b6b add some windows-style INI entries to tests 2008-09-11 00:50:08 +00:00
Ilia Alshanetsky
79d8631fea MFB: Fixed bug #46042 (memory leaks with reflection of
mb_convert_encoding())
2008-09-10 23:19:50 +00:00
Rob Richards
da5e36b702 fix bug #46003 (isset on nonexisting node return unexpected results)
add test
2008-09-10 16:28:20 +00:00
Rob Richards
e362e66375 fix bug #46029 (Segfault in DOMText when using with Reflection) 2008-09-10 15:39:43 +00:00
Rob Richards
9068c264be fix bug #45553 (Using XPath for attributes with a namespace does not work)
add test
2008-09-10 11:20:35 +00:00
Antony Dovgal
b38730fcc9 check for NULL before freeing 2008-09-10 07:31:12 +00:00
Felipe Pena
c031df9520 - New tests 2008-09-10 00:09:30 +00:00
Felipe Pena
ba2f87b506 - Merged fix from SF project (Import Jeff Lawsons patches for XML datetime bug fixes)
Fixed bugs:
  #45226 (xmlrpc_set_type() segfaults with valid ISO8601 date string)
  #18916 (xmlrpc_set_type() "not working")
2008-09-10 00:05:26 +00:00
Arnaud Le Blanc
cee365dbf0 Fixed bug #46031 (Segfault in AppendIterator::next) 2008-09-09 19:43:52 +00:00
Stanislav Malyshev
d2a57ceac9 update tests from 5.x 2008-09-08 22:58:31 +00:00
Stanislav Malyshev
49d72a9ac5 fix datefmt_parse function 2008-09-08 22:55:02 +00:00
Felipe Pena
edb34ed424 - Changed error level E_ERROR into E_WARNING in parameter validation 2008-09-08 19:34:48 +00:00
Felipe Pena
1ae8e8b94e - Fixed some wrong format parameters 2008-09-08 01:30:55 +00:00
Felipe Pena
028d0cd2dd - Fixed bug #46010 (warnings incorrectly generated for iv in ecb mode) 2008-09-07 22:53:20 +00:00
Felipe Pena
ac3ae236ec - MFB:
- use php's stream in libmagic
  - remove duplicate code (like mime_content_type() compatibility function
    now use the same base as finfo_file())
  - make it portable (works now on windows too, belongs other OSes)

  - don't close caller streams in libmagic (prevent leak and zombie stream)
  - string returned by magic_* are freed on magic_close, duplicate before
    calling magic_close (set return value)
  - if stat failed, don't try to call magic_* (when FILEINFO_MODE_FILE)
2008-09-07 20:29:54 +00:00
Jani Taskinen
bb671336e1 MFB 2008-09-07 18:00:25 +00:00
Arnaud Le Blanc
156553ed9a Fixed #45911 (Cannot disable ext/hash) 2008-09-07 13:13:53 +00:00
Felipe Pena
6051053c58 - Fix build 2008-09-07 04:17:22 +00:00
Felipe Pena
07b487ba79 - Removed the doubled error message (the error level is no longer E_ERROR) 2008-09-07 02:51:19 +00:00
Kalle Sommer Nielsen
fe30c1c207 Fix test on Windows 2008-09-07 00:42:29 +00:00
Felix De Vliegher
3d539dacd6 MFB: Tests for get_browser(). 2008-09-06 23:20:53 +00:00
Ilia Alshanetsky
7a6170b389 MFB: removed unused variables 2008-09-06 21:32:32 +00:00
Alexey Zakhlestin
22693d1c46 MFB: Fixed bug #45405 (snmp extension memory leak) 2008-09-06 07:58:09 +00:00
Pierre Joye
c0c6854c50 - #45985, touch on opened file raises a warning 2008-09-04 08:03:31 +00:00
Stanislav Malyshev
6af1a18b28 revert last change 2008-09-03 19:21:45 +00:00