Commit Graph

23974 Commits

Author SHA1 Message Date
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
Stanislav Malyshev
08e3b0d258 better detection for client libraries 2008-09-03 18:43:56 +00:00
Felipe Pena
ec949e90ce - New test 2008-09-02 19:27:32 +00:00
Nuno Lopes
c3e33a67ad MFB: kill unused var 2008-09-02 19:13:24 +00:00
Felipe Pena
df8cce7248 - New test 2008-09-01 23:41:34 +00:00
Steph Fox
46504d3451 - MFB Remove pre-made phar.phar 2008-09-01 15:48:54 +00:00
Dmitry Stogov
ad34c85f51 Disabled warning messages in SoapClient constructor 2008-09-01 14:55:42 +00:00
Steph Fox
05c3104097 - Missed the files we don't use yet 2008-08-31 21:09:10 +00:00
Steph Fox
f8d8b7fb11 - Note to self: don't try to second-guess Greg 2008-08-31 20:55:52 +00:00
Steph Fox
cd011d1e9a - MFB 2008-08-31 20:54:28 +00:00
Nuno Lopes
76d758f736 MFB: remove extra skipif 2008-08-31 15:28:52 +00:00
Alexey Zakhlestin
168e8b9a44 remove special treatment of /tmp path 2008-08-31 14:50:10 +00:00
Jani Taskinen
a4a02f3830 [DOC]- Fixed bug #45956 (parse_ini_file() does not return false with syntax errors in parsed file)
[DOC] note: change will be in since 5.2.7
2008-08-31 00:19:21 +00:00
Jani Taskinen
231604ae2d update credits: new sapi, stuff moved to pecl.. 2008-08-30 23:59:35 +00:00
Pierre Joye
b72e3ea622 - file will exist only on error (thx tony for the headup) 2008-08-30 23:54:46 +00:00
Jani Taskinen
782c11a4e0 - Move the tests where they belong 2008-08-30 23:20:25 +00:00
Felipe Pena
0b5e6c5fd8 - Fixed tests 2008-08-30 22:16:29 +00:00
Pierre Joye
f5d909c30c - MFB: fix test (clean on exit) 2008-08-30 16:26:11 +00:00
Henrique do Nascimento Angelo
047bf62f61 Fix wrong Unicode string length (bytes) in tidy_parse_string() 2008-08-29 22:59:41 +00:00
Patrick van Kleef
ecaf7b46c1 - Added odbc.default_cursortype to control the ODBC cursormodel (bug #43668)
#[DOC]
2008-08-29 19:15:39 +00:00
Patrick van Kleef
20960ec9ed - Fixed code to use ODBC 3.52 datatypes for 64bit systems (bug #43666) 2008-08-29 16:42:50 +00:00
Felipe Pena
15697830b4 - Fixed tests 2008-08-29 15:47:00 +00:00
Felipe Pena
66019ba30c - Fixed tests (Disable COMPRESS support for now) 2008-08-29 15:29:02 +00:00
Felipe Pena
091ef5362f - Fixed build 2008-08-29 15:17:25 +00:00
Dmitry Stogov
7c111e1e80 Fixed bug #45706 (Unserialization of classes derived from ArrayIterator fails) 2008-08-29 14:59:41 +00:00
Antony Dovgal
ae7119239a fix get_browser() (broken in the process of param API conversion) 2008-08-29 14:13:57 +00:00
Antony Dovgal
674a7de88a check for \0 to be consistent with other functions 2008-08-29 13:48:26 +00:00
Derick Rethans
6152e055b6 - MFB: Disable COMPRESS support for now, as it requires forking.
# @DOC [DOC] "DOC"
2008-08-29 13:39:17 +00:00
Derick Rethans
bf707bd87a - MFB: Remove ext/mime_magic, it was deprecated and it's only function is now
part of ext/fileinfo.
2008-08-29 13:32:38 +00:00
Derick Rethans
58a04c4494 - Adding back in mime_content_type(). 2008-08-29 13:29:18 +00:00
Derick Rethans
07633881bd - Some more cleanups, and fixed some warnings. 2008-08-29 12:05:35 +00:00
Derick Rethans
be1daa2ba9 - Support for the Scottish "back of" and "front of" hour phrases. 2008-08-29 11:59:23 +00:00
Pierre Joye
f24a43bb4f - move ming to pecl 2008-08-29 11:17:14 +00:00
Pierre Joye
3708b50fe6 - fix warning 2008-08-29 11:09:05 +00:00
Antony Dovgal
914f8ceb09 fix invalid read
weird, the code uses correct order of checks just ten lines below
2008-08-29 10:53:07 +00:00
Felix De Vliegher
872257f7cc MFB: Some fileinfo tests 2008-08-29 10:34:34 +00:00
Antony Dovgal
2fbc38c67e fix ZTS build 2008-08-29 10:10:56 +00:00
Antony Dovgal
f6b3447c34 fix build 2008-08-29 10:08:30 +00:00
Scott MacVicar
808041719d MFB: Test for fileinfo to check mime types. 2008-08-29 09:55:52 +00:00
Scott MacVicar
83abc6c537 MFB: Replace ereg code with pcre, fix duplicate macro names and segfault. Patch by Mikko 2008-08-29 09:50:57 +00:00
Felipe Pena
a69b38f7e9 - Removed the undocumented object support in the leftover array functions [DOC]
(natcasesort, natsort, array_walk, array_walk_recursive, array_unique, array_key_exists)
- Changed HASH_OF() to Z_ARRVAL_P()
- Fixed bug #45937 (array_walk and array_walk_recursive can alter private/protected object variable)
2008-08-29 02:48:28 +00:00
Christopher Jones
dcfcdbf121 Bug #45888 (Refcounting in ZTS mode) 2008-08-28 06:32:52 +00:00
Christopher Jones
23b226862a Bug #45458 (OCI8: Numeric keys for associative arrays are not handled properly) 2008-08-28 06:17:53 +00:00
Christopher Jones
b40269c23d Fix expected output for PHP 6 2008-08-28 06:15:56 +00:00
Christopher Jones
9aa0a6c34e Test initialization cleanup 2008-08-28 05:35:18 +00:00
Antony Dovgal
f0d93b2a07 fix file check and avoid segfault 2008-08-27 07:40:59 +00:00
Felipe Pena
ea5d69120d - Fixed check for empty file name 2008-08-27 01:02:58 +00:00
Felipe Pena
4eaaf7be83 - Fixed crash in file_error_core() 2008-08-27 00:16:11 +00:00
Alexey Zakhlestin
cc81177900 MFB: this test depends on session.hash_bits_per_character, but it was not explicitly set 2008-08-26 16:51:18 +00:00
Felipe Pena
2058709940 - Improved fix 2008-08-26 16:19:29 +00:00
Felipe Pena
3ade387884 - Added check for empty file name 2008-08-26 15:03:33 +00:00
Ilia Alshanetsky
caa3217c68 MFB:
Upgraded the lib to use PHP memory allocation routines.
	Fixed a crash caused by analysis of DEADJOE files
	A little bit of CS inside libmagic
2008-08-26 12:24:12 +00:00
Antony Dovgal
a46a628c7d clean up garbage 2008-08-26 11:05:59 +00:00
Antony Dovgal
cdf442f043 fix typo 2008-08-26 10:59:03 +00:00
Pierre Joye
c96aec4634 - MFB:inline definition (win32) 2008-08-26 06:54:37 +00:00
Rob Richards
76f6fcb56e fix warning 2008-08-25 21:04:00 +00:00
Felipe Pena
d3ed3e3a36 - New test 2008-08-25 19:38:18 +00:00
Jani Taskinen
c66533a789 - Fix CS, folding tags..etc. PLEASE do not invent your own coding styles. Or commit something as fubar as this.. 2008-08-25 19:07:12 +00:00
Etienne Kneuss
b2dd15897a Fix #45826 (Custom serialization) 2008-08-25 18:38:23 +00:00
Jani Taskinen
49a3de0ace - Fix win32 build 2008-08-25 14:10:22 +00:00
Felipe Pena
b1e51d0555 - Fixed tests 2008-08-25 13:44:33 +00:00
Jani Taskinen
c20a11231c - Nuke unncessary checks already done elsewhere (ZEND)
- Use the correct type header files if available. (win32 does what it does)
- inline definition is in php_config.h, so include it always.
2008-08-25 13:42:46 +00:00
Jani Taskinen
1736edba99 fix test: no crap left behind 2008-08-25 13:40:33 +00:00
Jani Taskinen
d3b358cf3d - Nuke duplicate macro call 2008-08-25 12:14:48 +00:00
Felipe Pena
06d26cf2a7 - New parameter parsing API
- CS
2008-08-24 20:50:02 +00:00
Marcus Boerger
2b929abc84 - Add new test 2008-08-24 16:46:17 +00:00
Marcus Boerger
cacb2e0303 - Added function preg_filter()
[DOC] preg_filter() is basically the same as preg_replace but unlike the
      latter it returns matches.
2008-08-24 12:34:02 +00:00
Felipe Pena
be5df04540 - Removed unused variable 2008-08-24 04:18:22 +00:00
Felipe Pena
3ae6c7a978 - MFB: New parameter parsing API
- CS (wddx)
2008-08-24 04:02:20 +00:00
Felipe Pena
52a818d769 MFB:
- New parameter parsing API
- Fixed crash in xml_parse_into_struct
2008-08-24 02:12:51 +00:00
Felipe Pena
20691f1002 - MFB: New parameter parsing API
- WS, Cosmetics
2008-08-24 00:45:20 +00:00
Pierre Joye
7700551e7a - more fixes for inet_* with vc9/xp 2008-08-23 20:31:27 +00:00
Hannes Magnusson
b6132d16ca Fix proto 2008-08-23 18:06:43 +00:00
Pierre Joye
662e4b7725 - fix build 2008-08-23 17:08:30 +00:00
Felipe Pena
5872c6b3c8 - MFB: New parameter parsing API
- WS, Cosmetics
2008-08-23 16:20:14 +00:00
Arnaud Le Blanc
ceb0e0ee64 Fix build on solaris 2008-08-23 13:57:01 +00:00
Felipe Pena
7de23da81e - Removed unused arguments 2008-08-22 15:51:50 +00:00
Pierre Joye
adfa214688 - drop bindlib usage on windows
- inet_pton, inet_ntop and inet_aton are always available (VC9 uses the CRT implementation, VC6 our own)
2008-08-21 23:37:40 +00:00
Pierre Joye
dcb0cc3d2b - [DOC] fix test, chr uses codepoint as input 2008-08-21 23:28:21 +00:00
Greg Beaver
a036fadb91 MFB increase code coverage 2008-08-21 20:36:21 +00:00
Pierre Joye
1f0f4b56e7 - use date.timezone ini setting 2008-08-21 18:36:44 +00:00
Pierre Joye
d61c5689c2 - use date.timezone ini setting instead of ENV 2008-08-21 18:33:06 +00:00
Pierre Joye
e80e2e8ef6 - fix test on windows 2008-08-21 18:24:53 +00:00
Marcus Boerger
6b1377b1f5 - Fix 64bit issue 2008-08-21 16:55:31 +00:00
Pierre Joye
e6edc95f50 - different parser message on windows 2008-08-21 13:04:43 +00:00
Pierre Joye
aafdb1a2e3 - "fix" crash on windows 2008-08-21 12:38:34 +00:00