Commit Graph

22498 Commits

Author SHA1 Message Date
Arnaud Le Blanc
6a6289a90d MFH: Fixed bugs #44181 & #44182 (extract() and references)
(robin_fernandes at uk dot ibm dot com)
2008-11-26 00:59:41 +00:00
Ilia Alshanetsky
87f1f82677 Upgraded bundled sqlite to version 3.6.6.1 2008-11-25 23:50:42 +00:00
Stanislav Malyshev
b2cd1a717a fix tests for array/object BC 2008-11-25 22:13:44 +00:00
Ilia Alshanetsky
24e7e62307 Fixed bug #46626 (mb_convert_case does not handle apostrophe correctly) 2008-11-24 21:23:03 +00:00
Arnaud Le Blanc
c3f0c8dd3c MFH 2008-11-24 19:17:34 +00:00
Stanislav Malyshev
45572a498a restore BC for arrays
[DOC] natsort, natcasesort, usort, uasort, uksort, array_flip, array_unique
still won't work with objects
2008-11-24 18:12:17 +00:00
Sanjay Mantoor
db0376cf94 Fixed testcsae inputs so that test runs faster 2008-11-24 11:10:02 +00:00
Felipe Pena
65cfb01eaa - MFH: New parameter parsing API 2008-11-23 20:01:21 +00:00
Scott MacVicar
74ee87a631 MFH Patch file for sqlite3 amalgamation so things don't get missed. 2008-11-22 15:44:21 +00:00
David Coallier
16de7fbd16 - MFH
- Bug #46615
- Return the count - 1 when invoking SplHeap->key()
- Adjusted the tests
2008-11-22 14:19:47 +00:00
Pierre Joye
b2e419ef40 - Fix windows build
please keep the fixes while merging the new versions.
   if the updates do not contain the fixes, create a little todo list so it is
   not forgotten (wiki)
2008-11-22 13:41:21 +00:00
Scott MacVicar
7ba273e3b5 MFH Error handler isn't properly restored when using fetchObject() with SQLite 2008-11-22 11:48:42 +00:00
Scott MacVicar
2d73897856 MFH Update libsqlite to 3.6.6 2008-11-22 11:06:04 +00:00
Scott MacVicar
3a93ef37c4 MFH Warnings from libmagic should be notices rather than sent to stderr, this fixes a test on Windows 2008-11-22 10:29:05 +00:00
Felipe Pena
01dec97a90 - Missing SKIPIF :( 2008-11-21 22:55:58 +00:00
Felipe Pena
a9455b5be6 - MFH: Fixed memory leak in readline_callback_handler_remove() 2008-11-21 22:27:02 +00:00
Felipe Pena
a7dc862b6d - New tests 2008-11-21 21:44:11 +00:00
Felipe Pena
bf90950756 - Fix test 2008-11-21 21:03:35 +00:00
Felipe Pena
8d85566ebe - New tests 2008-11-21 21:00:47 +00:00
Felipe Pena
b4150fdc3f - MFH: Fixed bug #46578 (strip_tags() does not honor end-of-comment when it encounters a single quote) 2008-11-21 19:16:50 +00:00
Jani Taskinen
80d5100309 MFH 2008-11-21 16:41:04 +00:00
Iain Lewis
28c1803bcf Adding some tests for array_product 2008-11-21 13:00:01 +00:00
Sanjay Mantoor
223c2d002e New testcases for gmmktime function 2008-11-21 06:22:58 +00:00
Felipe Pena
8b00dc3f9e - Changed split() to preg_split() 2008-11-20 23:11:25 +00:00
Felipe Pena
da067890db - MFH: Fixed memory leaks in readline_completion_function() 2008-11-20 22:25:37 +00:00
Andrey Hristov
d43b7b022f MFH:
Windows fixes for mysqlnd
Less warnings + PHPAPI for mysqlnd_poll
2008-11-20 17:21:36 +00:00
Mark Karpeles
75b07963e3 - MFH: ext/wddx: classes providing __sleep() are stored without properties (fixed)
- ext/wddx: fixed wddx_add_vars() ignoring first var in php 5.3
2008-11-20 15:55:00 +00:00
Felipe Pena
8258b703c5 - MFH: Fixed memory leak in wddx_add_vars() 2008-11-20 14:48:41 +00:00
Mark Karpeles
995deb9aef - MFH: #46496, wddx_serialize treats input as ISO-8859-1 (Mark Karpeles) 2008-11-20 14:14:05 +00:00
Felipe Pena
277c3e4172 - Fixed tests 2008-11-20 13:31:34 +00:00
Felipe Pena
83a6215dcc - Fixed test 2008-11-20 13:27:00 +00:00
Pierre Joye
2295b682a4 - MFH: declarations must be.. 1st 2008-11-20 10:22:55 +00:00
Arnaud Le Blanc
756aef0607 CS 2008-11-19 17:53:47 +00:00
Andrey Hristov
e62f5f8f03 MFH:
Fix a small bug that mysqlnd::next_result didn't care about an error in a
multi-statement. In an inner layer the error has been already set, thus it
needed better massage on the top level.
2008-11-19 17:45:43 +00:00
Felipe Pena
83c0eb69ad - Fixed tests 2008-11-19 16:58:28 +00:00
Arnaud Le Blanc
a46300ec06 Improved ArrayObject performance (made spl_hash_verify_pos() an O(1)
and removed some spl_array_get_hash_table() calls). Fixes #46039
2008-11-19 14:41:40 +00:00
Felipe Pena
2ea37c7780 - Fixed tests 2008-11-19 11:41:47 +00:00
Pierre Joye
60742c414d - new naming and allow libcurl static build 2008-11-19 09:28:13 +00:00
Etienne Kneuss
3919b16f04 MFH: Fix #46241 (stacked error_handlers, error_handling in general) 2008-11-19 02:00:53 +00:00
Andrey Hristov
3343619b9a MFH: Fix Windows build, pure C compiler 2008-11-18 18:02:44 +00:00
Felipe Pena
1881091e0f - Deprecate ereg 2008-11-18 17:55:07 +00:00
Andrey Hristov
825034cea5 MFH:
Asynchronous queries for mysqli, when mysqlnd is enabled.
Includes 4 tests for mysqli_poll
2008-11-18 17:02:18 +00:00
Ant Phillips
4126370491 Reflection tests: checked on PHP 5.2.6, 5.3 and 6.0 (Windows, Linux and Linux 64 bit). 2008-11-18 15:36:48 +00:00
Pierre Joye
c213742fe2 - MFH: declaration has to be first... 2008-11-18 14:27:09 +00:00
Pierre Joye
d316c3e0d1 - MFB: fix title 2008-11-18 02:03:38 +00:00
Pierre Joye
d543e3d987 - #41033, enable signing with DSA keys 2008-11-18 01:56:12 +00:00
Scott MacVicar
4525c2d41e Missed test for previous commit 2008-11-17 21:54:47 +00:00
Scott MacVicar
1858b25407 MFH Add openssl_random_pseudo_bytes() in order to expose access to a PRG, this wraps around whatever the OS provides.
- OpenBSD uses arc4random()
- Windows uses the Windows Crypto API
- FreeBSD, Linux, etc use /dev/random or /dev/urandom if available
[DOC]
2008-11-17 21:54:25 +00:00
Scott MacVicar
cd3f5c1fa7 MFH Fix #46033 - Segfault when instantiating SQLite3stmt and SQLite3Result directly. 2008-11-17 19:34:03 +00:00
Scott MacVicar
0fab3f5b68 MFH Sync libsqlite to 3.6.5 2008-11-17 17:13:55 +00:00
Ant Phillips
0b79202140 Commit tests for ext/reflection 2008-11-17 12:26:43 +00:00
Felipe Pena
fc2fb50d09 - MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro 2008-11-17 11:28:01 +00:00
Pierre Joye
df3dc8d974 - MFB: skip if pcntl is not present 2008-11-16 23:22:43 +00:00
Pierre Joye
569a48922e - MFH: #46127, php_openssl_tcp_sockop_accept forgets to set context on accepted stream 2008-11-16 23:14:12 +00:00
Ilia Alshanetsky
4907faecd1 Fixed memory leak inside readline_callback_handler_install() function 2008-11-16 18:00:50 +00:00
Arnaud Le Blanc
c6e1b8bc67 MFH: Added stream_cast() and stream_set_options() to user-space stream
wrappers, allowing stream_select(), stream_set_blocking(),
stream_set_timeout() and stream_set_write_buffer() to work with user-space
stream wrappers.
Will document.
2008-11-15 12:52:13 +00:00
Hannes Magnusson
dd9e9f26e2 MFH: Interfaces extend other interfaces, not implement 2008-11-14 19:22:43 +00:00
Sanjay Mantoor
ccef11d68f New testcases for gmdate function 2008-11-14 09:16:00 +00:00
Arnaud Le Blanc
3b9fce6246 MFH: Fix proto line 2008-11-14 06:00:48 +00:00
Stanislav Malyshev
2a5079e64c [DOC] Add option for error_log to send directly to SAPI logger 2008-11-13 18:48:25 +00:00
Ilia Alshanetsky
9c9b5b3925 Fixed a bug inside dba_replace() that could cause file truncation with
invalid keys
2008-11-13 18:21:40 +00:00
Felipe Pena
c29ebd8a23 - MFH: Better fix 2008-11-13 18:14:50 +00:00
Pierre Joye
c8103324bf - MFH: declaration goes first... 2008-11-13 14:40:06 +00:00
Felipe Pena
494dbdb1c1 - MFH: Fixed invalid reads 2008-11-13 13:08:12 +00:00
Arnaud Le Blanc
8c4151ad72 Added header_remove() (chsc at peytz dotdk, Arnaud)
[DOC] proto void header_remove([string header_name])
      Removes an HTTP header previously set using header()
      The header_name parameter is optionnal, all headers are
      removed if it is not set

[SAPIs] The header_handler callback in sapi_module_struct has
           been changed, it now take a new argument.

           When it is set to SAPI_HEADER_DELETE, sapi_header->header is
           the name of an header, header_handler has to delete it.

           When it is set to SAPI_HEADER_DELETE_ALL, header_handler has
           to delete all headers.

           When sapi_header_op_enum is SAPI_HEADER_ADD or _REPLACE,
           sapi_header->header is in the form "Name: value", header_handler
           has to add or replace the given header.

           In all cases, header_handler must not free sapi_header or
           sapi_header->header. SAPI_HEADER_ADD must be returned if the
           header has been added or replaced, or 0 in other cases.
2008-11-13 10:14:04 +00:00
Arnaud Le Blanc
06119f4748 MFH: Added stream_context_get_params() 2008-11-13 05:47:47 +00:00
Felipe Pena
39b1f65aab - Fixed tests 2008-11-13 01:49:51 +00:00
Felipe Pena
a94cd6d54f - MFH: Fixed a macro redefinition on BSD for different purpose 2008-11-12 23:38:02 +00:00
Felipe Pena
3c121bf15f - MFH: Removed unused variables 2008-11-12 17:26:36 +00:00
Felipe Pena
cd0a8efe41 - Fix test 2008-11-12 17:16:51 +00:00
Pierre Joye
b9853c4ff0 - MFH:
- #14962, makes extractTo 2nd argument really optional
 - replace ZEND_ENGINE_2_1 by PHP_ZIP_USE_OO
2008-11-12 11:41:21 +00:00
Felipe Pena
a2556b1f1c - MFH: New parameter parsing API 2008-11-11 17:54:43 +00:00
Felipe Pena
02050bc6f5 - New tests 2008-11-11 17:54:11 +00:00
Felipe Pena
9178503610 MFH:
- Added ZEND_FETCH_RESOURCE2_NO_RETURN() (a version of ZEND_FETCH_RESOURCE2 but without the ZEND_VERIFY_RESOURCE() which contains RETURN_FALSE)
- Fixed bug #46543 (ibase_trans() memory leaks when using wrong parameters)
2008-11-11 13:28:22 +00:00
Pierre Joye
5fc86e0213 - MFH: fix build with all curl versions, even very old (thx Felipe for having found all versions info) 2008-11-11 12:26:04 +00:00
Jani Taskinen
5493b4b7d1 fix build 2008-11-11 11:56:01 +00:00
Arnaud Le Blanc
e13a4238e5 MFH: Fixed stream_get_contents() when using $maxlength and socket is not
closed. indeyets@php.net on #46049.
2008-11-11 01:55:51 +00:00
Arnaud Le Blanc
f6345133b3 MFH: Fixed bug #44818 (php://memory writeable when opened read only) 2008-11-11 00:44:55 +00:00
Pierre Joye
dcdf00bdfc - MFH: make the curl phpinfo more verbose 2008-11-10 22:59:28 +00:00
Felipe Pena
493b0589e8 - Make expected result compatible with recent Firebird version 2008-11-10 22:33:53 +00:00
Andrey Hristov
abf612ba59 MFH: Remove unneeded cast 2008-11-10 20:06:23 +00:00
Ilia Alshanetsky
757087553b MFH: Fixed compiler warnings 2008-11-10 19:04:05 +00:00
David Coallier
9334bbd650 - After readying Johannes's mail, the conclusion that a "smarter" system
to find out if the return_value had the correct number of elements was
  definitely needed. Simply added a difference to both dbh and stmt to
  make sure that the error info always has 3 elements.

- Bug #44154 (pdo->errorInfo doesn't always return three elements)
- Now pdo->errorInfo() AND stmt->errorInfo() return three elements.

- [DOC] Make sure that not only the pdo->errorInfo() is returning 3 elms, but
  also the PDOStatement object
2008-11-10 18:47:28 +00:00
David Coallier
55ad0efd17 - Make test conform to the error reporting that always returns
three elements. Adjusted all bugs and tests that were using
  errorInfo() and errorCode() (dbh & stmt)
2008-11-10 18:44:04 +00:00
Felipe Pena
1460f722e3 - New tests 2008-11-10 18:02:56 +00:00
David Coallier
d781f9d67f - Hrphm, sorry about that, forgot the array value. Now the test runs fine 2008-11-10 12:49:51 +00:00
David Coallier
d2c1047241 - Adjusted test to make sure it reflects the behavior of the method 2008-11-10 12:40:23 +00:00
Timm Friebe
15adc0ddaf - Added test for optional parameter "new" to sybase_connect() 2008-11-10 11:00:48 +00:00
Timm Friebe
12abaadf84 - Added optional parameter "new" to sybase_connect
# [DOC] If a second call is made to sybase_connect() with the same arguments
# no new link will be established, but instead, the link identifier of the
# already opened link will be returned. The new parameter modifies this
# behavior and makes sybase_connect() always open a new link, even if
# sybase_connect() was called before with the same parameters.
2008-11-10 10:59:44 +00:00
Sanjay Mantoor
eb2e561bfe New testcases for date_sunset function 2008-11-10 07:12:00 +00:00
Arnaud Le Blanc
2756c75304 MFH 2008-11-10 06:30:16 +00:00
Arnaud Le Blanc
cf7ad21ce5 MFH: Added the oldset parameter to pcntl_sigprocmask().
Already documented.
2008-11-10 05:57:18 +00:00
Sanjay Mantoor
42325f9d48 New testcases for date_sunrise function 2008-11-10 05:52:20 +00:00
Timm Friebe
39bd93bc62 - Fixed sybase_close() to actually close connections
# Broken during parameter parsing refactoring lately, OK in PHP_5_2
2008-11-09 11:39:14 +00:00
Timm Friebe
4b96eea15f - Initial release 2008-11-09 11:38:17 +00:00
Timm Friebe
66f5639327 - Initial release 2008-11-09 10:57:09 +00:00
Timm Friebe
7dc8109ff3 - Initial release 2008-11-09 10:44:03 +00:00
Timm Friebe
2268bf47e3 - Added test for sybase_free_result() without full fetch 2008-11-09 10:29:52 +00:00
Timm Friebe
963aa85764 - Initial release
# Tests sybase_unbuffered_query() together with sybase_free_result()
2008-11-09 10:26:31 +00:00
Felipe Pena
d5ad77167a - MFH: Added connection checking on SKIPIF 2008-11-08 15:39:01 +00:00
Timm Friebe
ec17daec29 - Adjusted tests to reality
# We select 123456789.12345679, we should have this returned and not
# something 123456789.123457 (rounded)
2008-11-08 13:32:29 +00:00
Timm Friebe
8089d14c9a - Fixed problems with segmentation faults when using unbuffered queries
# Double-freeing results caused these
2008-11-08 13:22:14 +00:00
Timm Friebe
9224d4cc6c - Made this test independent of date format 2008-11-08 13:21:30 +00:00
Timm Friebe
65c5b135d5 - Initial release 2008-11-08 13:21:01 +00:00
Timm Friebe
b99923a434 - QA: Unified error messages in php_sybase_query() 2008-11-08 12:24:52 +00:00
Timm Friebe
927804e288 - Changed while loop in php_sybase_fetch_result_row() to also read rows with
retcode == CS_ROW_FAIL.
# Reported by Detlef Neumerkel and Frank Irnich of Sybase
2008-11-08 12:05:46 +00:00
Timm Friebe
87ad2dd067 - Changed source to read host, user and password from environment
# E.g. nmake test TESTS=ext/sybase_ct PHP_SYBASE_HOST=db PHP_SYBASE_USER=sa PHP_SYBASE_PASS=***
2008-11-08 11:47:35 +00:00
Timm Friebe
847e9922d1 - Made this test independent of field types in master..sysprocesses
# char on ASE 11, varchar on ASE 15
2008-11-08 11:46:06 +00:00
Timm Friebe
d40014873f - Fixed expected warning messages
# Changed during migration to parameter parsing API
2008-11-08 11:45:03 +00:00
Felipe Pena
a4390f3e46 MFH:
- Fixed bug #46521 (Curl ZTS OpenSSL, error in config.m4 fragment)
  Noticed by: jd at cpanel dot net
2008-11-07 21:14:46 +00:00
Alexey Zakhlestin
deb420ee63 new parameter-parsing API 2008-11-07 12:39:11 +00:00
Kalle Sommer Nielsen
2b0df36f42 MFH: New parameter parsing API 2008-11-07 11:05:24 +00:00
Andrey Hristov
737c3c89c6 MFB: More Windows types cleanup 2008-11-06 18:48:55 +00:00
Andrey Hristov
e49366850f MFH: Use win32/php_stdint.h for stdint types on Windows 2008-11-06 14:21:50 +00:00
Andrey Hristov
e099d732a6 MFH: More cleanup of config-win.h 2008-11-06 11:29:20 +00:00
Johannes Schlüter
ef3ce03e5e MFH: Don't enable mysqlnd when pdo_mysql is being built with libmysql 2008-11-06 11:12:21 +00:00
Andrey Hristov
9186528994 MFH:
Get rid of many defines (which simplifies the code a lot),
as well as uint->unsigned int
2008-11-06 10:37:47 +00:00
Pierre Joye
963f7c0234 - typo 2008-11-06 10:17:44 +00:00
Pierre Joye
789eb9cc9a - fix build on linux (static)
- add gd[Format]Version[Int|String] first methods to work around the png
  header issues
2008-11-06 10:14:37 +00:00
Derick Rethans
f2720ecc34 - MFH: Export DateTime and DateTimeZone class entries so that external
extensions can make use of it as well.
2008-11-06 09:45:58 +00:00
Scott MacVicar
a94ac5d436 MFH: Fix buffer overread in libmagic and sync a skipped change from 4.26 2008-11-06 03:00:04 +00:00
Etienne Kneuss
e415c37ed4 MFH: Fix #46421 (Take care about /) 2008-11-06 01:07:22 +00:00
Etienne Kneuss
27e41ff48c MFH: Fix #45976 (Move SXE from SPL to SimpleXML) 2008-11-06 00:37:13 +00:00
Felipe Pena
a912d80adb MFH:
- Fixed wrong check
- Improved test
2008-11-05 23:40:38 +00:00
Arnaud Le Blanc
2276e85f13 MFH: Added parse_ini_string() function (grange at lemonde dot fr, Arnaud)
[DOC] new function parse_ini_string()
      proto array parse_ini_string(string ini_string
          [, bool process_sections [, int scanner_mode]])
      Same as parse_ini_file() except that it takes a string instead of a
      filename.
2008-11-05 21:35:02 +00:00
Derick Rethans
1c08ae1c8e - MFH: Fixed an issue with the * format specifier for parsing from a
user-defined format.
2008-11-05 10:42:42 +00:00
Kalle Sommer Nielsen
9b3ab1c67a MFH: New tests for syslog 2008-11-05 09:58:51 +00:00
Lukas Smith
2c23aa9bf1 MFH 2008-11-04 22:22:43 +00:00
Arnaud Le Blanc
9b0d76d585 Open STDIN and php://stdin streams with the relevant
wrapper when the file descriptor is a socket (inetd, etc)
Fixes bug #43731
2008-11-04 21:05:31 +00:00
Pierre Joye
a4e959e4a1 - MFH: add png and jpeg version info 2008-11-04 20:25:45 +00:00
David Coallier
80e3ed5630 - MFH
- Bug #44154: [DOC] Return 3 elements at all times. If the dbh stmt doesn't have
  an error code we used to return an array with one element. For the sake
  of consistency and verification of returned values at userland we are now
  returning an array with 3 elements. Note the two last elements are null but
  present

- Bug #4413: [DOC] If the error code returned by the DBH is null, we return
  a null value. This is used in order to help with empty error codes.
2008-11-04 18:28:41 +00:00
Felipe Pena
358ecee529 - Fixed tests 2008-11-04 17:50:30 +00:00
Arnaud Le Blanc
d441b5db5b MFH: Fixed stream_get_line() to behave as documented on non-blocking
streams
2008-11-04 17:05:55 +00:00
Arnaud Le Blanc
55ccadecbe MDH: Avoids fclose() from complaining that stream_socket_pair() streams
have not been closed
2008-11-04 16:46:03 +00:00
Marcus Boerger
7126de4912 - Next step in namespaces, using / as namespace separator. 2008-11-04 15:58:55 +00:00
Marcus Boerger
6ca3ad3f41 - MFH We only rely on hash if it is built-in 2008-11-04 14:04:29 +00:00
Marcus Boerger
582cdf9a27 - MFH Add hash dependency at module source level 2008-11-04 13:33:15 +00:00
Pierre Joye
7102449f76 - sync tests with pecl 2008-11-04 13:24:39 +00:00
Marcus Boerger
e2ab5164ce - MFH Fix dependency from Phar to hash 2008-11-04 01:27:52 +00:00
Arnaud Le Blanc
55e7b35e6b MFH: Fixed bug #46024 (stream_select() doesn't return the correct number) 2008-11-04 00:42:41 +00:00
Felipe Pena
a5e72fd696 - MFH: Improved fix 2008-11-03 23:44:38 +00:00
Arnaud Le Blanc
7fc9c9e429 cleanup 2008-11-03 23:34:26 +00:00
Arnaud Le Blanc
8e220d99df MFH: Fixed bug #44607 (stream_get_line unable to correctly identify the
"ending" in the stream content)
2008-11-03 23:29:17 +00:00
Felipe Pena
22147d94af - New test 2008-11-03 21:49:34 +00:00
Felipe Pena
27965c932f MFH:
- Fixed endless loop in PDOStatement::debugDumpParams()
  patch by: Jonah H. Harris <jonah.harris at gmail dot com>
2008-11-03 20:48:51 +00:00
Arnaud Le Blanc
de29f4161f MFH: Fixed bug #45303 (Opening php:// wrapper in append mode results
in a warning)
2008-11-03 16:58:53 +00:00
Arnaud Le Blanc
0a2bfc7968 MFH: Fixed bug #43353 (wrong detection of 'data' wrapper causes notice) 2008-11-03 15:47:31 +00:00
Felipe Pena
e0fededeba - MFH: Fixed bug #44327 (PDORow::queryString property & numeric offsets / Crash) 2008-11-03 15:33:23 +00:00
Felipe Pena
ade487e693 - Opss, reverted accidental changes 2008-11-03 13:07:28 +00:00
Felipe Pena
7e25733927 - MFH: Fixed bug #42855 (dns_get_record() doesn't return all text from TXT record)
patch by: misc at e2007 dot cynergi dot com
2008-11-03 11:35:11 +00:00
Arnaud Le Blanc
b3d0514b6f Fixed bug #44575 (parse_ini_file comment # line problems)
[DOC] parse_ini_file(): comments starting with # are deprecated in PHP 5.3
      (comments starting with ; should be used instead)
2008-11-02 23:36:10 +00:00
Arnaud Le Blanc
517e365ce1 MFH: Fixed bug #42718 (FILTER_UNSAFE_RAW not applied when configured as
default filter)
2008-11-02 22:22:43 +00:00
Felipe Pena
7a37fa2d6b - Revert ZEND_BEGIN_ARG_INFO change 2008-11-02 21:19:39 +00:00
Felipe Pena
8f12025b21 - MFH: Added str_getcsv() 2008-11-02 18:24:34 +00:00
Scott MacVicar
3e543f2464 MFH: Sync libmagic with 4.26 and add support for the new v6 magic file format 2008-11-02 16:13:49 +00:00
Jani Taskinen
ffa97c5496 MFH 2008-11-01 23:09:31 +00:00
Andrey Hristov
a836ea7b71 Fix windows build 2008-11-01 21:22:29 +00:00
Andrey Hristov
9726d6b047 Fix the build 2008-10-31 21:29:54 +00:00
Andrey Hristov
77c1e145e1 MFB:
64bit fixes:
- fixes to sprintf modifiers, cleaning warnings
- use _t types, like uint64_t instead of uint64, thus skipping series of
typedefs.
2008-10-31 20:32:17 +00:00
Andrey Hristov
4f5895a4d2 MFH: Fix warnings in sprintf 2008-10-31 20:31:27 +00:00
Felipe Pena
16bce25da2 - Fixed memory leak when using offset out of range. (php_stream_copy_to_mem returns 0, but the empty string is alloced) 2008-10-30 15:53:18 +00:00
Felipe Pena
1eb552a712 - Fix the fix
- Improved test
2008-10-30 14:34:25 +00:00
Lars Strojny
b51214fce7 MFH: #44938 2008-10-30 14:22:50 +00:00
Sanjay Mantoor
2ca0889e8c New testcases for gettimeofday function 2008-10-30 10:49:45 +00:00
Felipe Pena
bfa5404e90 - MFH: Fixed bug #46426 (3rd parameter offset of stream_get_contents not works for "0") 2008-10-30 10:09:22 +00:00
Felix De Vliegher
bdda0cff3f MFH: Tests for SQLite3Stmt::paramCount(). 2008-10-29 22:36:19 +00:00
Rob Richards
7465d0103f MFH: fix bug #46406 (Unregistering nodeclass throws E_FATAL) 2008-10-29 21:21:47 +00:00
Ilia Alshanetsky
f2d9767eb5 Fixed bug #44938 (gettext functions crash with overly long domain) 2008-10-29 20:29:12 +00:00
Ilia Alshanetsky
22f3c8b05b Fixed bug #42294 (Unified solution for round() based on C99 round)
[DOC] New implementation of round() to work-around inconsistencies for win32
and 64 bit platforms.

This solution is very roughly based on BSD's implmentation of round(), which
itself is an implementation of C99 standard. We take the absolute value of number
we want to round time the 10 to the power of the number of decimal spaces we are
rounding to. The resulting value is rounded up and the pre-rounded value is
subtracted from it. If the difference is greater then 0.5000000001 we round up,
otherwise we round down.
2008-10-29 20:03:34 +00:00
Felipe Pena
b9c03aa4a5 - MFH: Fixed bug #46064 (Exception when creating ReflectionProperty object on dynamicly created property) 2008-10-29 12:56:29 +00:00
Felix De Vliegher
101e472c66 MFH: Various tests for the sqlite ext.
The sqlite session tests are by Mats Lindh <mats at lindh.no>.
2008-10-29 11:44:34 +00:00
Zoe Slattery
7902763a82 scottish time variation 2008-10-28 19:24:49 +00:00
Andrey Hristov
ec20906b1b Fix that instance too - mysql_get_client_version() returns unsigned long 2008-10-28 15:59:42 +00:00
Sanjay Mantoor
b73113d644 New testcases for array_intersect_uassoc function 2008-10-28 10:24:41 +00:00
Derick Rethans
e40786ca1b - Updated to version 2008.9 (2008i) 2008-10-28 08:17:33 +00:00
Ilia Alshanetsky
a509ac3510 Fixed compiler warning 2008-10-27 23:27:21 +00:00
Johannes Schlüter
40e42663f5 MFH: Fix #44135 (PDO MySQL does not support CLIENT_FOUND_ROWS) 2008-10-27 18:32:08 +00:00
Johannes Schlüter
04d9bbe65e MFH: Fix #46285 (lastInsertId() returns "0" when a deferenced PDOStatement is
executed)
2008-10-27 17:21:22 +00:00
Andrey Hristov
7d4c51c2bd MFH:
Fix overusage of memory when the result set is empty. Then no memory will be
allocated compared to before. Also grow (realloc) the rset with 10% instead
of 33% - more reallocs but better memory usage. Of course later theres is a
realloc to shrink the rset t ofree it from unused rows but its better to
to eat too much at once.
2008-10-27 15:14:17 +00:00
Andrey Hristov
b18bf1f880 Fix a name 2008-10-27 14:38:31 +00:00
Andrey Hristov
34ca27a191 MFH: Fix an issue with mysqli.default_port not being used 2008-10-27 14:34:35 +00:00
Andrey Hristov
4df718a477 MFH:
Warning if the library API version differs from the headers used to compile.
Patch versions are not considered but major.minor
Fix build of ext/mysql with 4.0.x and pre.
2008-10-27 12:09:36 +00:00
Felipe Pena
c0611c10ef - Fixed condition 2008-10-26 23:34:13 +00:00
Ilia Alshanetsky
8bd2943877 Fixed compiler warning 2008-10-26 14:35:41 +00:00
Felipe Pena
5d804d163a - MFH: Fixed bug #46388 (stream_notification_callback inside of object destroys object variables) 2008-10-26 13:25:06 +00:00
Greg Beaver
86f8d0a8e9 fix several errors found by valgrind
1 - entry metadata not properly processed or retrieved from cached phars
2 - copy on write was using a void return value instead of int, a dangerous oversight in phar_update_cached_entry
3 - metadata creation in entries for cached phars was causing an invalid read
2008-10-26 05:49:09 +00:00
Felipe Pena
5153c19714 - MFH: Fixed bug #46389 (NetWare needs small patch for _timezone) (patch by guenter at php.net) 2008-10-26 02:00:44 +00:00
Felipe Pena
df10005563 - MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro 2008-10-24 14:35:40 +00:00
Felipe Pena
ff8246ff6e - MFH: Removed unnecessary check for array (#46273, noticed by serovov at gmail dot com) 2008-10-24 10:28:29 +00:00
Felipe Pena
981a23fff3 - MFH: Fixed bug #43925 (Incorrect argument counter in prepared statements with pgsql) 2008-10-23 18:53:05 +00:00
Pierre Joye
7d5a67a022 - flatten path and make them relative before extraction
- remove unnecessary export
2008-10-23 16:12:55 +00:00
Stanislav Malyshev
5c50be3674 fix instantclient detection 2008-10-22 19:29:24 +00:00
Arnaud Le Blanc
15aced54b0 MFH: Fixed bug #46360 (TCP_NODELAY constant for socket_{get,set}_option) 2008-10-22 18:59:33 +00:00
Scott MacVicar
a8c8963bc0 MFH: Fix a stat on a null when the internal database is used. 2008-10-22 16:34:40 +00:00
Scott MacVicar
a6ec097f68 MFH: When using the internal database and there is an error it could try free some invalid things. This was causing a bus error on ppc. 2008-10-22 14:15:47 +00:00
Sanjay Mantoor
5a37a48082 New PHP testcases for array_diff_ukey function 2008-10-22 05:53:36 +00:00
Arnaud Le Blanc
1d5ba8bb21 MFH: initialize optional vars 2008-10-21 23:39:15 +00:00
Arnaud Le Blanc
d69dfa4b9f MFH: initialize optional vars 2008-10-21 22:08:38 +00:00
Arnaud Le Blanc
261f0c32a5 initialize optional vars 2008-10-21 22:08:20 +00:00
Alexey Zakhlestin
575ba83c0b skip tests on systems without fnmatch() function (f.e.: old darwin) 2008-10-21 13:38:18 +00:00
Alexey Zakhlestin
a4d609ab04 proper check for php-version 2008-10-21 12:59:45 +00:00
Alexey Zakhlestin
a7730c9c8c these tests work just fine on macos-x 2008-10-21 12:45:35 +00:00
Alexey Zakhlestin
7ff4c359e6 fixed wrong check for version 2008-10-21 12:26:35 +00:00
Zoe Slattery
5fe0e9c5ed Committing test for till 2008-10-21 09:33:21 +00:00
Scott MacVicar
55a965f793 MFH Fix bug #46331 - The internal magic db is const memory and segfaults when you try to do byte swapping
on big endian machines. This fixes it by copying the memory for those processors, but this isn't ideal as
it wastes memory. Perhaps using a static cache would be better.
2008-10-20 23:36:14 +00:00
Ilia Alshanetsky
2357d51900 Fixed bug #46343 (IPv6 address filter accepts invalid address) 2008-10-20 23:22:45 +00:00
Rob Richards
2f3b8856ee MFH: fix bug #46323 (compilation of simplexml for NetWare breaks) 2008-10-20 19:29:04 +00:00
Pierre Joye
144527b190 - support for VC6 and some other platforms (before some other cleanup) 2008-10-20 14:45:59 +00:00
Rob Richards
f3f71b7351 MFH: fix bug #46335 (DOMText::splitText doesn't handle multibyte characters)
add test
2008-10-20 12:45:47 +00:00
Felipe Pena
02fee77584 - Fixed test 2008-10-19 18:23:53 +00:00
Johannes Schlüter
a3e4b27857 Fix test 2008-10-19 18:08:29 +00:00
Etienne Kneuss
1a642296ba Fix #46317 (Iterator class not properly checked) 2008-10-19 18:00:24 +00:00
Johannes Schlüter
c8361e7cfe MFH: fix mysqlnd detection 2008-10-19 12:43:34 +00:00
Johannes Schlüter
c3dab8f191 MFH: Don't dereference NULL-pointer 2008-10-19 12:28:43 +00:00
Johannes Schlüter
0b216b4161 Fix test 2008-10-19 12:20:43 +00:00
Antony Dovgal
8696c38966 MFH: fix memleak 2008-10-17 22:09:44 +00:00
Zoe Slattery
057f422c03 Replacing explicit object ID with %d 2008-10-17 15:03:48 +00:00
Zoe Slattery
f591bffba9 Committing for Robin Fernandes 2008-10-17 14:34:55 +00:00
Felipe Pena
e52fc53bc2 - MFH: Fixed bug #45726 (PHP_Archive / Archive.php missing) 2008-10-17 01:58:20 +00:00
Kalle Sommer Nielsen
9de7506f8e Use PHP_DEP_FE instead of throwing an E_DEPRECATED manually inside define_syslog_variables() (Thanks Hannes!) 2008-10-16 23:19:13 +00:00
Ed Batutis
8e0529e0d1 Fix for pecl bug 14664 - problem with older gcc 2008-10-16 18:06:05 +00:00
Moriyoshi Koizumi
0c5b6a66a9 * MFH remainder 2008-10-16 17:38:31 +00:00
Dmitry Stogov
fe715fbd72 Fixed bug #42862 (IMAP toolkit crash: rfc822.c legacy routine buffer overflow) 2008-10-16 16:21:06 +00:00
Dmitry Stogov
ec7cca7f2d ws 2008-10-16 15:49:29 +00:00
Dmitry Stogov
001a548b1a Fixed bug #43723 (SOAP not sent properly from client for <choice>) 2008-10-16 15:36:59 +00:00
Felipe Pena
c0c9fb9def - Revert 2008-10-16 13:00:27 +00:00
Alexey Zakhlestin
35780b69a8 Updated functions-signatures (const) 2008-10-16 12:52:38 +00:00
Alexey Zakhlestin
e06765b9c5 Fixed compilation warnings: tsrm_ls is not used here (anymore?) 2008-10-16 11:59:37 +00:00
Alexey Zakhlestin
5058774e1f propagated const, to avoid "discards qualifiers from pointer target type" errors 2008-10-16 11:38:25 +00:00
Moriyoshi Koizumi
d7ddc19853 - MFH 2008-10-16 01:01:37 +00:00
Felipe Pena
8563497a94 MFH:
- Fixed:
  . Memory leak in pg_delete() when using PGSQL_DML_STRING.
  . Bug #24679 (pg_insert problem!)
  . Bug #35996 (pg_meta_data should take the schema into account)
  . Bug #40808 (pg_insert problem)
  . Bug #42078 (pg_meta_data mix tables metadata from different schemas)
- Improved:
  . Error messages
- Added:
  . Tests
2008-10-16 00:39:31 +00:00
Ilia Alshanetsky
5a28412ad2 Removed dead-code 2008-10-15 22:56:57 +00:00
Kalle Sommer Nielsen
12bd1eae9f [DOC] Deprecate define_syslog_variables() in 5.3 2008-10-15 18:41:57 +00:00
Felipe Pena
30173a8ec8 - Fixed possible efree(NULL) 2008-10-15 13:34:26 +00:00
Ilia Alshanetsky
7b57c9e6e1 Fixed bug #46271 (local_cert option is not resolved to full path) 2008-10-14 23:38:41 +00:00
Johannes Schlüter
0614a7763e MFH: Add PDO::MYSQL_ATTR_COMPRESS connection flag [DOC] 2008-10-14 19:00:53 +00:00
Felipe Pena
42e3a93a8b - Added SKIPIF 2008-10-14 17:45:52 +00:00
Felipe Pena
84be2eb47b - MFH: Fixed bug #46292 (PDO::setFetchMode() shouldn't requires the 2nd arg when using FETCH_CLASSTYPE) 2008-10-14 17:36:02 +00:00
Scott MacVicar
3d61571709 Disable optimizations at the moment for libsqlite on VC6 with the amalgamation, will most likely need to track down what particular function is causing problems or consider setting the flags to /O1 for libsqlite specifically. 2008-10-14 09:56:25 +00:00
Greg Beaver
347a58939d last test for cached phar copy on write (forgot this one yesterday) 2008-10-14 00:38:01 +00:00
Felipe Pena
310ac30e5a MFH:
- Fixed bug #37100 (data is returned truncated with BINARY CURSOR)
  Patch by Tony
2008-10-13 13:44:32 +00:00
Derick Rethans
8f8f18bc18 - Updated to version 2008.8 (2008h) 2008-10-13 11:45:39 +00:00
Greg Beaver
fdac2c9a12 increase code coverage 2008-10-13 04:50:37 +00:00
Greg Beaver
3a54017556 add complete tests verifying copy-on-write for cached phars 2008-10-13 04:21:09 +00:00
Greg Beaver
5bc1122056 fix faulty tests 2008-10-12 23:32:50 +00:00
Antony Dovgal
8b793f4274 MFH: fix ZTS build 2008-10-12 21:09:22 +00:00
Greg Beaver
114861e330 fix incorrect key for Phar destructor 2008-10-12 19:45:01 +00:00
Greg Beaver
e16636f069 add tests for copy-on-write support
- fix metadata handling with cached phars
 - fix virtual_dirs with rmdir
 - ensure that after copy-on-write, all existing Phar objects link to the newly copied phar data
2008-10-12 19:40:11 +00:00
Greg Beaver
eaf5d4c8b3 add missing --INI-- section 2008-10-12 18:54:00 +00:00
Greg Beaver
a2b4f65a0c re-add as binary 2008-10-12 18:47:19 +00:00
Greg Beaver
da731473aa oops, need to add as binary 2008-10-12 18:46:46 +00:00
Greg Beaver
15cac7f22f add missing file for tests 2008-10-12 18:45:46 +00:00
Felipe Pena
a88f7fbc3e - Fixed compiler warnings 2008-10-12 15:01:12 +00:00
Felipe Pena
e90d487720 - Removed unnecessary strcmp call (thanks Tony) 2008-10-12 13:46:10 +00:00
Felipe Pena
d2d4e044c7 - Complete the fix for #46274, and tests 2008-10-12 13:01:31 +00:00
Greg Beaver
261d300a0f add new test for copy-on-write, fix copy-on-write for Phar/PharFileInfo methods 2008-10-12 06:53:32 +00:00
Greg Beaver
5a00c7baf0 re-add as binary 2008-10-12 06:41:27 +00:00
Greg Beaver
415a37bfae stupid cvs added this as text 2008-10-12 06:41:01 +00:00
Greg Beaver
0182bbf76b fix files for advanced include_path test 2008-10-12 06:40:36 +00:00
Greg Beaver
53e1428b06 increase code coverage 2008-10-12 05:41:22 +00:00
Greg Beaver
60969b5385 fix links for fseek as well 2008-10-11 22:20:57 +00:00
Greg Beaver
59379244ad fix reading links from streams (works with PharFileInfo->getContent()) 2008-10-11 22:12:07 +00:00
Greg Beaver
bf268a68f9 cosmetics/maintainability: reduce code redundancy on error conditions 2008-10-11 21:22:58 +00:00
Greg Beaver
eb41e0d64f work around crap stream filter implementation, update tests for compressed aliases in zip-based phar so they actually test the compression 2008-10-11 20:57:08 +00:00
Greg Beaver
59e52885a1 fix Bug #46026: bz2.decompress/zlib.inflate filter tries to decompress after end of stream
[DOC] add concatenation option to bz2.decompress stream filter
2008-10-11 19:14:08 +00:00
Felipe Pena
9552f1a573 - Fixed bug #46249 (pdo_pgsql always fill in NULL for empty BLOB)
- Fixed bug #46274 (pdo_pgsql - Segfault when using PDO::ATTR_STRINGIFY_FETCHES and blob)
2008-10-11 19:03:23 +00:00
Kalle Sommer Nielsen
0c183be27f MFH:
Add missing zend_parse_paramters_none() in pdo_drivers()
2008-10-10 23:38:14 +00:00
Stanislav Malyshev
f2ada381bb improve OCI detection 2008-10-10 20:05:05 +00:00
Felipe Pena
6f81d12eb1 - Added skipif 2008-10-10 19:53:20 +00:00
Felipe Pena
cefe0f3c22 - New test 2008-10-10 19:49:42 +00:00
Felipe Pena
86f0b45ef8 - MFH: Static'fication 2008-10-10 19:35:34 +00:00
Felipe Pena
8a5ee4b33a - Fixed tests 2008-10-10 16:51:43 +00:00
Felipe Pena
a3c8772fd1 MFH:
- Fixed bug #46139 (PDOStatement->setFetchMode() forgets FETCH_PROPS_LATE)
  Initial patch by: chsc at peytz dot dk
2008-10-10 16:47:15 +00:00
Felipe Pena
1f54af9245 MFH:
- Fixed bug #44251 (Question mark and an escaped singel quote lead to an exception)
- Fixed bug #41125 (PDO mysql + quote() + prepare() can result in seg fault)
  Patch by: tsteiner at nerdclub dot net
2008-10-10 12:10:41 +00:00
Kalle Sommer Nielsen
d77277c0e2 MFH:
* Fix gcov warnings about parameters not initialized (Thanks for noticing Felipe!)
* Changed int to be long in mssql_num_fields
2008-10-09 18:34:20 +00:00
Felipe Pena
8d03c0de19 - MFH: Fixed bug pecl#9641 (Unable to add driver specific methods to PDOStatement) (patch by Christopher Jones) 2008-10-09 13:00:58 +00:00
Felipe Pena
62d2239964 - Fix typo 2008-10-09 01:08:55 +00:00
Greg Beaver
fffdf661c9 fix bug #45907: undefined reference to PHP_SHA512Init 2008-10-09 00:50:47 +00:00
Ilia Alshanetsky
529105427e use proper macro 2008-10-08 23:04:38 +00:00
Derick Rethans
bac72c6052 - MFH: Fixed mime-type generation.
#- Charset markers need to be prepended with ; -- the tests were also wrong.
2008-10-08 09:44:24 +00:00
Felipe Pena
e8f25c5b98 - MFH: Fixed bug #45575 (Segfault with invalid non-string as event handler callback)
patch by Christian seiler
2008-10-07 18:18:45 +00:00
Felipe Pena
d0ad1517f5 - MFH: Fixed bug #46247 (ibase_set_event_handler() is allowing to pass callback without event) 2008-10-07 15:28:45 +00:00
Felipe Pena
8a24cfc98c - MFH: Fixed code ("Division by zero" anymore) 2008-10-07 12:51:21 +00:00
Kalle Sommer Nielsen
1b34fa1675 MFH:
* is_output and is_null parameters are now booleans instead of int in mssql_bind
* Added missing conditional from old parameter parsing
2008-10-06 21:50:48 +00:00
Ilia Alshanetsky
96d199d1b1 Removed deprecated usage of zend_get_parameters_ex() 2008-10-06 17:57:32 +00:00
Felipe Pena
1f150fa10c - MFH: Fixed compiler warning 2008-10-06 15:13:53 +00:00
Felipe Pena
0af1239a82 - MFH: Fixed bug #45373 (php crash on query with errors in params) 2008-10-06 14:33:34 +00:00
Derick Rethans
642f5cffd4 - Updated to version 2008.7 (2008g) 2008-10-06 14:27:41 +00:00
Ilia Alshanetsky
5bb68042b8 Fixed a few signedness warnings 2008-10-06 01:18:54 +00:00
Etienne Kneuss
0d7d9b0540 Fix #46222 (Allow indirect modifications of Arrays inside ArrayObject + fix EG(uninitialized_zval_ptr) overwrite) 2008-10-05 14:20:55 +00:00
Kalle Sommer Nielsen
b5661c4e0c MFH: New parameter parsing API (with lots of help from Felipe) 2008-10-05 04:55:49 +00:00
Felipe Pena
e0327fcc4e - MFH: Initialize variable 2008-10-05 04:38:01 +00:00
Arnaud Le Blanc
8ad19e1801 MFH: Fixed #46164 (stream_filter_remove() closes the stream) 2008-10-05 01:40:19 +00:00
Felipe Pena
e1443682af - MFH: Fixed bug #44991 (Compile Failure With freetds0.82) (patch by jklowden at freetds dot org) 2008-10-04 12:55:21 +00:00
Felipe Pena
892fb867c8 - MFH: Fixed bug #44991 (Compile Failure With freetds0.82) (patch by matthias at dsx dot at) 2008-10-04 12:52:58 +00:00
Felipe Pena
a547b2589b MFH:
- Fixed:
 - Some segfaults when no connection is open
 - Warning about cfg_get_long (Kalle)
- New parameter parsing API
2008-10-03 17:21:50 +00:00
Pierre Joye
86a352afda - Declarations MUST BE done in the beginning of a context 2008-10-03 16:19:49 +00:00
Mikko Koppanen
e3c65a369f Adds signal handling around popen/pclose in mail.c.
Related information on bugs #8992 and #14032
Original patch by D. Parthey
2008-10-03 13:32:41 +00:00
Zoe Slattery
e72b3afeb5 Committting tests for Olafur Waage 2008-10-02 20:09:54 +00:00
Antony Dovgal
97e667d250 MFH: use HashPosition to prevent race condition in multithreaded env 2008-10-02 08:46:16 +00:00