Commit Graph

24248 Commits

Author SHA1 Message Date
Felipe Pena
4979fc17e3 - Fixed a macro redefinition on BSD for different purpose 2008-11-12 23:37:47 +00:00
Felipe Pena
330dc7f034 - Removed unused variables 2008-11-12 17:26:19 +00:00
Felipe Pena
f73e20f602 - Fix test 2008-11-12 17:17:38 +00:00
Pierre Joye
f5553f3494 - fix #14962 (makes 2nd argument really optional)
- replace ZEND_ENGINE_2_1 test with PHP_ZIP_USE_OO, version independent
- sync tests with 5.3
2008-11-12 11:24:48 +00:00
Pierre Joye
3f12e9e699 - not necessary anymore 2008-11-12 11:20:38 +00:00
Felipe Pena
217eb324da - New parameter parsing API 2008-11-11 17:52:47 +00:00
Felipe Pena
f464bb8d05 - New tests 2008-11-11 17:52:08 +00:00
Felipe Pena
08aad5f7f7 - 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:26:26 +00:00
Pierre Joye
0abf7238d2 - fix build with all curl versions, even very old (thx Felipe for having found all versions info) 2008-11-11 12:25:37 +00:00
Jani Taskinen
ac43ac897f fix build 2008-11-11 11:56:39 +00:00
Arnaud Le Blanc
fc938b54c7 Fixed stream_get_contents() when using $maxlength and socket is not
closed. indeyets@php.net on #46049.
2008-11-11 01:55:19 +00:00
Arnaud Le Blanc
dec12b2549 Fixed bug #44818 (php://memory writeable when opened read only) 2008-11-11 00:44:36 +00:00
Arnaud Le Blanc
2fe765b5f4 Fixed bug #45585 (fread() return value for EOF inconsistent
between PHP 5 and 6)
2008-11-11 00:40:05 +00:00
Pierre Joye
e1ab50627b - make the curl phpinfo more verbose 2008-11-10 22:58:44 +00:00
Felipe Pena
b7d8550397 - Make expected result compatible with recent Firebird version 2008-11-10 22:33:00 +00:00
David Coallier
a6cb5393c6 - MFB (Which was an MFH)
- Bug #44153 (ErrorCode returns NULL when no error)
- Bug #44154 (ErrorInfo to ALWAYS have 3 elements)
2008-11-10 20:34:53 +00:00
Andrey Hristov
68d9aac6d2 Remove unneeded cast 2008-11-10 20:04:56 +00:00
Ilia Alshanetsky
e767480c8f Fixed compiler warnings 2008-11-10 19:03:57 +00:00
Felipe Pena
c9765a29e8 - New tests 2008-11-10 18:01:36 +00:00
Timm Friebe
b064e790c6 - MFB: Fixed expected warning messages
# Changed during migration to parameter parsing API
2008-11-10 11:52:52 +00:00
Timm Friebe
0c98074b04 - MFB: Made this test independent of field types in master..sysprocesses
# char on ASE 11, varchar on ASE 15
2008-11-10 11:52:16 +00:00
Timm Friebe
8491fb1167 - MFB: Made this test independent of date format 2008-11-10 11:51:35 +00:00
Timm Friebe
9f39f064fe - Adjusted tests to reality
# We select 123456789.12345679, we should have this returned and not
# something 123456789.123457 (rounded)
2008-11-10 11:51:13 +00:00
Timm Friebe
70500d898d - MFB: 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-10 11:50:28 +00:00
Timm Friebe
5478ebc10b - MFB: Initial release 2008-11-10 11:49:49 +00:00
Timm Friebe
8321f4663d - MFB: Added optional parameter "new" to sybase_connect()
- MFB: Fixed crash in sybase_unbuffered_query()
- MFB: Migrated to new parameter parsing API
- MFB: Made sybase_fetch_*() functions also read rows with CS_ROW_FAIL
- MFB: Adjusted function protos to use "resource" instead of "int"
# Forgot the bunnies. Sorry.
2008-11-10 11:49:06 +00:00
Sanjay Mantoor
bf9c7bce77 New testcases for date_sunset function 2008-11-10 07:10:00 +00:00
Arnaud Le Blanc
b6d4158b79 credits 2008-11-10 06:29:52 +00:00
Arnaud Le Blanc
5e9bf03246 Added the oldset parameter to pcntl_sigprocmask().
Already documented.
2008-11-10 05:56:22 +00:00
Sanjay Mantoor
f2ee913e66 New testcases for date_sunrise function 2008-11-10 05:49:54 +00:00
Felipe Pena
b3436a303c - Added connection checking on SKIPIF 2008-11-08 15:38:33 +00:00
Felipe Pena
428b2c7906 - Fixed bug #46521 (Curl ZTS OpenSSL, error in config.m4 fragment)
Noticed by: jd at cpanel dot net
2008-11-07 21:11:26 +00:00
Pierre Joye
18c13084c7 - MFB: fix VC6 build, use our own strtoi64 implementation for VC6 2008-11-07 13:12:13 +00:00
Scott MacVicar
17c0c53c8c MFB fix VC6 build 2008-11-07 12:58:08 +00:00
Alexey Zakhlestin
951a5fccd7 MFB: new parameter-parsing API 2008-11-07 12:50:59 +00:00
Kalle Sommer Nielsen
f1f97ac6a9 New parameter parsing API 2008-11-07 11:05:09 +00:00
Andrey Hristov
9532d30738 More type fixes for Windows 2008-11-06 18:37:32 +00:00
Pierre Joye
36b3f02c19 - fix build 2008-11-06 14:24:24 +00:00
Andrey Hristov
de610e1dd7 Rely on win32/php_stdint.h on Windows for stdint types 2008-11-06 14:20:19 +00:00
Pierre Joye
510d80e388 - MFH
- add 64bit typedef support
 - fix vc6 build (1/2)
 - still broken/does not build cleanly, more to come
2008-11-06 13:56:49 +00:00
Andrey Hristov
1ed87531cb More cleanup of config-win.h and missed merge, which actually occured in 5_3 2008-11-06 11:26:07 +00:00
Johannes Schlüter
1f71be7e1e Don't enable mysqlnd when pdo_mysql is being built with libmysql 2008-11-06 11:11:57 +00:00
Andrey Hristov
0b46d6b5a5 Get rid of many defines (which simplifies the code a lot),
as well as uint->unsigned int
2008-11-06 10:36:30 +00:00
Pierre Joye
a5368aeb73 - MFH:
- Fix linux build (static)
 - add gd[Format]Version[Int|String] first methods to work around the png
   header issues
2008-11-06 10:23:52 +00:00
Derick Rethans
35a632c14b - Export DateTime and DateTimeZone class entries so that external extensions
can make use of it as well.
2008-11-06 09:44:03 +00:00
Scott MacVicar
ca77d8ae31 Fix buffer overread in libmagic and sync a skipped change from 4.26 2008-11-06 02:58:14 +00:00
Etienne Kneuss
933e2eb4dd Fix #46421 (Take care about /) 2008-11-06 01:07:05 +00:00
Etienne Kneuss
6e2845f377 Fix #45976 (Move SXE from SPL to SimpleXML) 2008-11-06 00:36:29 +00:00
Felipe Pena
27357e9ce5 - Fixed wrong check
- Improved test
2008-11-05 23:39:09 +00:00
Arnaud Le Blanc
c0039b30be 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:33:19 +00:00
Derick Rethans
e15cb4df3f - Fixed an issue with the * format specifier for parsing from a user-defined
format.
2008-11-05 10:41:48 +00:00
Kalle Sommer Nielsen
bc64ccf1d0 New tests for syslog 2008-11-05 09:58:15 +00:00
Lukas Smith
f06cbb6ba5 ext/msql has been moved from php-src to PECL adhead of PHP 5.3 2008-11-04 22:22:37 +00:00
Arnaud Le Blanc
0036a09ebe 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:04:28 +00:00
Pierre Joye
d2b7db73b4 - add png and jpeg version info 2008-11-04 20:24:46 +00:00
David Coallier
4af80c7f90 - 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 #44153: [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:25:26 +00:00
Arnaud Le Blanc
2e32876eaa Fixed stream_get_line() to behave as documented on non-blocking streams 2008-11-04 17:05:17 +00:00
Arnaud Le Blanc
0bb5310a63 Avoids fclose() from complaining that stream_socket_pair() streams
have not been closed
2008-11-04 16:45:42 +00:00
Arnaud Le Blanc
8e6f8fc4dc Fixed bug #46024 (stream_select() doesn't return the correct number) 2008-11-04 00:42:19 +00:00
Felipe Pena
0d97fcdaed - Improved fix 2008-11-03 23:43:51 +00:00
Arnaud Le Blanc
611d72ad2a cleanup 2008-11-03 23:34:17 +00:00
Arnaud Le Blanc
fc62c1ff0a Fixed bug #44607 (stream_get_line unable to correctly identify the
"ending" in the stream content)
2008-11-03 23:28:45 +00:00
Felipe Pena
49291d9c81 - Fix test (string -> unicode) 2008-11-03 22:22:25 +00:00
Felipe Pena
e259e1b0fb - New test 2008-11-03 21:49:18 +00:00
Felipe Pena
d2edc09737 - Fixed endless loop in PDOStatement::debugDumpParams()
patch by: Jonah H. Harris <jonah.harris at gmail dot com>
2008-11-03 20:45:43 +00:00
Andrey Hristov
6fd6b92ffc Fix the windows build 2008-11-03 18:07:40 +00:00
Felipe Pena
36abaa35f1 - Fixed compiler warning 2008-11-03 17:24:12 +00:00
Arnaud Le Blanc
c4c2308fec Fixed bug #45303 (Opening php:// wrapper in append mode results
in a warning)
2008-11-03 16:58:28 +00:00
Arnaud Le Blanc
0bed5602ee Fixed bug #43353 (wrong detection of 'data' wrapper causes notice) 2008-11-03 15:47:05 +00:00
Felipe Pena
870039d58a - Fixed bug #44327 (PDORow::queryString property & numeric offsets / Crash) 2008-11-03 15:31:51 +00:00
Felipe Pena
46096f5c9d - 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:33:32 +00:00
Arnaud Le Blanc
1931b7cb3b Fixed bug #42718 (FILTER_UNSAFE_RAW not applied when configured as
default filter)
2008-11-02 22:03:32 +00:00
Felipe Pena
e006a89e71 - Revert ZEND_BEGIN_ARG_INFO change 2008-11-02 21:10:13 +00:00
Antony Dovgal
7ddf58a438 fix build 2008-11-02 21:06:46 +00:00
Felipe Pena
3efabcf22c - New test 2008-11-02 18:20:57 +00:00
Scott MacVicar
881c30db88 Update libmagic to 4.26 and add support for v6 of the magic file format. 2008-11-02 16:09:27 +00:00
Jani Taskinen
18c706e05f - Fixed the fix (bug #46460) 2008-11-01 23:08:52 +00:00
Andrey Hristov
2c697a2572 Fix the build 2008-10-31 21:30:58 +00:00
Andrey Hristov
7e1a12673b Fix warnings in printf 2008-10-31 20:30:55 +00:00
Andrey Hristov
65f5d4e434 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:30:33 +00:00
Felipe Pena
8bf0a4f64b - New test 2008-10-30 15:50:33 +00:00
Felipe Pena
7b359fa53a - Improved test 2008-10-30 14:31:01 +00:00
Felipe Pena
18467f71d1 - Fix the fix (thanks Hannes!) 2008-10-30 14:30:02 +00:00
Lars Strojny
6d2dfa4eb0 The real fix for the gettext overflow bug
- The overflow issue was not limited to domains, but also present for msgids
 - [DOC] msgids are now limited to 4096 chars, domains to 1024
2008-10-30 14:22:21 +00:00
Sanjay Mantoor
e573eae83f New testcases for gettimeofday function 2008-10-30 10:46:17 +00:00
Felipe Pena
d140cd1f0b - Fixed bug #46426 (3rd parameter offset of stream_get_contents not works for "0") 2008-10-30 10:08:01 +00:00
Felix De Vliegher
1c88dd1fa9 Tests for SQLite3Stmt::paramCount(). 2008-10-29 22:35:52 +00:00
Felix De Vliegher
bf1f64467d Fix typo. 2008-10-29 21:43:30 +00:00
Rob Richards
ab7e0ab7b3 fix bug #46406 (Unregistering nodeclass throws E_FATAL) 2008-10-29 21:21:06 +00:00
Ilia Alshanetsky
dc6ae4b11b MFB: Fixed bug #44938 (gettext functions crash with overly long domain). 2008-10-29 21:02:14 +00:00
Ilia Alshanetsky
7307d3783b MFB: Fixed bug #42294 (Unified solution for round() based on C99 round). 2008-10-29 20:17:43 +00:00
Felipe Pena
fa5d6496f5 - Fixed char formatter 2008-10-29 13:01:44 +00:00
Felipe Pena
b90aaccbfd - Fixed bug #46064 (Exception when creating ReflectionProperty object on dynamicly created property) 2008-10-29 12:41:22 +00:00
Felix De Vliegher
ac24f7ecfe Various tests for the sqlite ext.
The sqlite session tests are by Mats Lindh <mats at lindh.no>.
2008-10-29 11:43:33 +00:00
Zoe Slattery
c7d76c2f02 scottish time variation 2008-10-28 19:26:03 +00:00
Andrey Hristov
35829ec7ed Fix compiler warning (MFB: Ilia) 2008-10-28 10:45:31 +00:00
Sanjay Mantoor
2b1b26bf6d New testcases for array_intersect_uassoc function 2008-10-28 10:21:12 +00:00
Derick Rethans
5d5215c49c - Updated to version 2008.9 (2008i) 2008-10-28 08:17:19 +00:00
Johannes Schlüter
b22d3665be Fix #44135 (PDO MySQL does not support CLIENT_FOUND_ROWS) 2008-10-27 18:29:57 +00:00
Johannes Schlüter
96b3cd0a64 Fix #46285 (lastInsertId() returns "0" when a deferenced PDOStatement is
executed)
2008-10-27 17:20:26 +00:00
Andrey Hristov
0b77134114 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:13:42 +00:00
Andrey Hristov
c52f1524e7 Fix a name 2008-10-27 14:38:17 +00:00
Andrey Hristov
7d9744ae61 Fix tests 2008-10-27 14:33:09 +00:00
Andrey Hristov
526345b3a0 Fix bug found in a test. mysqli.default_port wasn't used 2008-10-27 14:30:51 +00:00
Andrey Hristov
e8e843b39e 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:07:35 +00:00
Felipe Pena
2aedbeb829 - Fixed test 2008-10-26 23:33:32 +00:00
Ilia Alshanetsky
726f72a406 MFB: Fixed compiler warning 2008-10-26 14:36:25 +00:00
Felipe Pena
912470c7d8 - Fixed bug #46388 (stream_notification_callback inside of object destroys object variables) 2008-10-26 13:22:00 +00:00
Greg Beaver
1699efd72b last commit was an old patch, revert faulty line 2008-10-26 05:51:04 +00:00
Greg Beaver
329229071f MFB: 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:24 +00:00
Felipe Pena
0e27614ff9 - Fixed bug #46389 (NetWare needs small patch for _timezone) (patch by guenter at php.net) 2008-10-26 01:58:25 +00:00
Felipe Pena
7eb2715464 - Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro 2008-10-24 14:34:17 +00:00
Felipe Pena
6849171a2d - Removed unnecessary check for array (#46273, noticed by serovov at gmail dot com) 2008-10-24 10:27:54 +00:00
Pierre Joye
f8484b2d70 - MFB: flatten path and make them relative before extraction 2008-10-23 21:18:13 +00:00
Felipe Pena
1d92251fe1 - Fixed bug #43925 (Incorrect argument counter in prepared statements with pgsql) 2008-10-23 18:22:18 +00:00
Stanislav Malyshev
1e187d5a81 fix instantclient detection 2008-10-22 19:29:48 +00:00
Arnaud Le Blanc
2c0bf23728 Fixed bug #46360 (TCP_NODELAY constant for socket_{get,set}_option) 2008-10-22 18:58:43 +00:00
Scott MacVicar
6978fff657 Fix a stat on a null when the internal database is used. 2008-10-22 16:34:17 +00:00
Scott MacVicar
be09b491da 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 13:59:08 +00:00
Sanjay Mantoor
4d65d65ce7 New PHP testcases for array_diff_ukey function 2008-10-22 05:51:52 +00:00
Arnaud Le Blanc
51f7cc3925 initialize optional vars 2008-10-21 23:36:17 +00:00
Arnaud Le Blanc
5ef7ecafc1 initialize optional vars 2008-10-21 22:06:49 +00:00
Alexey Zakhlestin
374086f172 MFB: skip tests on systems without fnmatch() function (f.e.: old darwin) 2008-10-21 13:38:57 +00:00
Alexey Zakhlestin
37c4e3c5ac MFB: proper check for php-version 2008-10-21 13:00:29 +00:00
Alexey Zakhlestin
d8393b570c MFB: these tests work just fine on macos-x 2008-10-21 12:48:37 +00:00
Zoe Slattery
4cdeb0e808 Committing test for till 2008-10-21 09:34:39 +00:00
Scott MacVicar
df2b71d2ca 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:35:47 +00:00
Ilia Alshanetsky
42e1ad7421 MFB: Fixed bug #46343 (IPv6 address filter accepts invalid address) 2008-10-20 23:23:53 +00:00
Rob Richards
a86b196463 fix bug #46323 (compilation of simplexml for NetWare breaks) 2008-10-20 19:28:36 +00:00
Rob Richards
9f51ed8d31 fix bug #46335 (DOMText::splitText doesn't handle multibyte characters)
add test
2008-10-20 12:44:28 +00:00
Felipe Pena
3c1cd7f7f3 - Fixed test 2008-10-19 18:24:37 +00:00
Johannes Schlüter
262f89b81f Fix test 2008-10-19 18:08:19 +00:00
Etienne Kneuss
78325e3f94 Link to spl iterator 2008-10-19 17:59:39 +00:00
Johannes Schlüter
d106560958 fix mysqlnd detection 2008-10-19 12:43:10 +00:00
Johannes Schlüter
c2e0aaebb6 Don't dereference NULL-pointer 2008-10-19 12:22:49 +00:00
Johannes Schlüter
ddfa9e6297 Fix test 2008-10-19 12:20:28 +00:00
Antony Dovgal
ac589d8084 fix memleak 2008-10-17 22:09:35 +00:00
Zoe Slattery
868c69b72b Replacing explicit object ID with %d 2008-10-17 15:05:31 +00:00
Zoe Slattery
75fcb938c5 Committing for Robin Fernandes 2008-10-17 14:40:13 +00:00
Felipe Pena
c2e64169f5 - Fixed bug #45726 (PHP_Archive / Archive.php missing) 2008-10-17 01:53:26 +00:00
Ed Batutis
1af4830f82 Fix for pecl bug 14664 - problem with older gcc 2008-10-16 18:10:43 +00:00
Dmitry Stogov
987fca277d Fixed bug #42862 (IMAP toolkit crash: rfc822.c legacy routine buffer overflow) 2008-10-16 16:21:20 +00:00
Dmitry Stogov
f63e084292 ws 2008-10-16 15:49:38 +00:00
Dmitry Stogov
3a2e5da3c7 Fixed bug #43723 (SOAP not sent properly from client for <choice>) 2008-10-16 15:37:11 +00:00
Felipe Pena
4443f9d90f - Revert 2008-10-16 13:04:30 +00:00
Alexey Zakhlestin
2b7351c0e4 MFB: Fixed compilation warnings: tsrm_ls is not used here (anymore?) 2008-10-16 12:21:27 +00:00
Alexey Zakhlestin
818f03d9cd MFB: propagated const, to avoid "discards qualifiers from pointer target type" errors 2008-10-16 11:42:20 +00:00
Moriyoshi Koizumi
43e12e6bb1 - Fix bug #45722 (mb_check_encoding() crashes). 2008-10-16 01:01:05 +00:00
Felipe Pena
e6194c69f0 - 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:36:49 +00:00
Ilia Alshanetsky
9219be30f4 MFB: removed dead-code 2008-10-15 22:57:22 +00:00