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
Kalle Sommer Nielsen
e667c25403
[DOC] Remove define_syslog_variables() and define_syslog_variables ini option
2008-10-15 18:41:18 +00:00
Felipe Pena
faadae148b
- Fixed possible efree(NULL)
2008-10-15 13:34:13 +00:00
Ilia Alshanetsky
af8866961f
MFB: Fixed bug #46271 (local_cert option is not resolved to full path)
2008-10-14 23:39:02 +00:00
Johannes Schlüter
d4f7133441
Add PDO::MYSQL_ATTR_COMPRESS connection flag
2008-10-14 19:00:11 +00:00
Felipe Pena
208e1b8a22
- Added SKIPIF
2008-10-14 17:46:28 +00:00
Felipe Pena
31314f5256
- Fixed test
2008-10-14 17:37:13 +00:00
Felipe Pena
469e58a2a1
- Fixed bug #46292 (PDO::setFetchMode() shouldn't requires the 2nd arg when using FETCH_CLASSTYPE)
2008-10-14 17:34:11 +00:00
Greg Beaver
51e82ec848
MFB: last test for cached phar copy on write (forgot this one yesterday)
2008-10-14 00:38:11 +00:00
Felipe Pena
ee5494ac9e
- Fixed bug #37100 (data is returned truncated with BINARY CURSOR)
...
Patch by Tony
2008-10-13 13:41:16 +00:00
Derick Rethans
7dd5608d9d
- Updated to version 2008.8 (2008h)
2008-10-13 11:45:32 +00:00
Greg Beaver
1838c130c9
MFB: increase code coverage
2008-10-13 04:50:45 +00:00
Greg Beaver
072f4489de
MFB: add complete tests verifying copy-on-write for cached phars
2008-10-13 04:21:19 +00:00
Greg Beaver
0315794cf4
MFB: fix faulty tests
2008-10-12 23:33:08 +00:00
Antony Dovgal
79ec5dc2b9
fix ZTS build
2008-10-12 21:09:10 +00:00
Greg Beaver
15fc837b99
MFB: fix incorrect key for Phar destructor
2008-10-12 19:45:12 +00:00
Greg Beaver
c448cb165c
MFB: 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:30 +00:00
Greg Beaver
4bd8bacde7
add missing --INI-- section
2008-10-12 18:54:13 +00:00
Greg Beaver
10d023be20
MFB: add new test for copy-on-write, fix copy-on-write for Phar/PharFileInfo methods
2008-10-12 06:53:52 +00:00
Greg Beaver
cd15c694ec
fix test files
2008-10-12 06:44:01 +00:00
Greg Beaver
5540b03782
need to re-add as binary
2008-10-12 06:43:46 +00:00
Greg Beaver
6850f3276b
increase code coverage
2008-10-12 05:41:34 +00:00
Greg Beaver
692222f12a
MFB: fix links for fseek as well
2008-10-11 22:21:07 +00:00
Greg Beaver
44cb95a53d
MFB: fix reading links from streams (works with PharFileInfo->getContent())
2008-10-11 22:12:18 +00:00
Greg Beaver
df7756f244
MFB: cosmetics/maintainability: reduce code redundancy on error conditions
2008-10-11 21:23:13 +00:00
Greg Beaver
7a04372a2d
MFB: work around crap stream filter implementation, update tests for compressed aliases in zip-based phar so they actually test the compression
2008-10-11 21:02:53 +00:00
Greg Beaver
236f646bab
MFB fix Bug #46026 : bz2.decompress/zlib.inflate filter tries to decompress after end of stream
...
MFB add concatenation option to bz2.decompress stream filter
2008-10-11 19:14:48 +00:00
Kalle Sommer Nielsen
ef464f7872
Add missing zend_parse_paramters_none() in pdo_drivers()
2008-10-10 23:37:51 +00:00
Stanislav Malyshev
1b993e8778
improve OCI detection
2008-10-10 20:05:31 +00:00
Felipe Pena
743d0d1cf1
- Added skipif (Opss :))
2008-10-10 19:52:55 +00:00
Felipe Pena
9554edb901
- New test
2008-10-10 19:49:20 +00:00
Felipe Pena
edd40fc41d
- Static'fication
2008-10-10 19:35:15 +00:00
Felipe Pena
0c71486c59
- Fixed tests
2008-10-10 16:56:28 +00:00
Felipe Pena
fc620fe30f
- Fixed bug #46139 (PDOStatement->setFetchMode() forgets FETCH_PROPS_LATE)
...
Initial patch by: chsc at peytz dot dk
MFB:
- Fixed bug #41971 (PDOStatement::fetch and PDOStatement::setFetchMode causes unexpected behavior)
- Fixed bug #42917 (PDO::FETCH_KEY_PAIR doesn't work with setFetchMode)
2008-10-10 16:46:10 +00:00
Felipe Pena
cdeea98d37
- 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:08:07 +00:00
Kalle Sommer Nielsen
470a843f8f
* Fix gcov warnings about parameters not initialized (Thanks for noticing Felipe!)
...
* Changed int to be long in mssql_num_fields
2008-10-09 18:33:25 +00:00
Felipe Pena
58b7edba10
- Fixed bug pecl#9641 (Unable to add driver specific methods to PDOStatement)
2008-10-09 12:59:47 +00:00
Felipe Pena
48b9214773
- Fix typo
2008-10-09 01:08:31 +00:00
Greg Beaver
a4f39f7fa4
MFB: fix bug #45907 : undefined reference to PHP_SHA512Init
2008-10-09 00:51:27 +00:00
Ilia Alshanetsky
b2b212bbcf
MFB: use proper macro
2008-10-08 23:04:58 +00:00
Derick Rethans
194577d7a6
- Fixed mime-type generation.
...
#- Charset markers need to be prepended with ; -- the tests were also wrong.
2008-10-08 09:44:12 +00:00
Felipe Pena
359690898e
- Fixed bug #45575 (Segfault with invalid non-string as event handler callback)
...
patch by Christian seiler
2008-10-07 18:17:44 +00:00
Felipe Pena
a417250c99
- Fixed bug #46247 (ibase_set_event_handler() is allowing to pass callback without event)
2008-10-07 15:27:06 +00:00
Felipe Pena
3e4ce566dd
- Fixed code ("Division by zero" anymore)
2008-10-07 12:49:35 +00:00
Kalle Sommer Nielsen
e659b7d6c1
* 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:18 +00:00
Felipe Pena
b1336de160
- Fixed compiler warning
2008-10-06 15:13:27 +00:00
Felipe Pena
82eaeb6bfe
- Fixed bug #45373 (php crash on query with errors in params)
2008-10-06 14:28:29 +00:00
Derick Rethans
00ac4cac45
- Updated to version 2008.7 (2008g)
2008-10-06 14:27:33 +00:00
Ilia Alshanetsky
23d4a387c2
MFB: Fixed a few signedness warnings
2008-10-06 01:19:07 +00:00
Etienne Kneuss
002e17d501
Fix #46222 (Allow indirect modifications of Arrays inside ArrayObject + fix EG(uninitialized_zval_ptr) overwrite)
2008-10-05 14:19:55 +00:00
Kalle Sommer Nielsen
0acb6c09bc
New parameter parsing API (with lots of help from Felipe)
2008-10-05 04:55:33 +00:00