Commit Graph

16041 Commits

Author SHA1 Message Date
Ilia Alshanetsky
66125c18a3 Fixed bug #33841 (pdo sqlite driver forgets to update affected column count
on execution of prepared statments).
2005-07-23 23:34:04 +00:00
Ilia Alshanetsky
29bf2d3a09 Fixed bug in str_word_count() when charlist if specified and "word" starts
with a character found inside the charlist.
2005-07-23 19:44:13 +00:00
Pierre Joye
9859780570 - fix #33794 imagerotate rotates only CCW
introduced by transparent color patch
2005-07-23 16:41:38 +00:00
foobar
03897956b2 revert fix that did not fix anything 2005-07-22 22:00:55 +00:00
Yasuo Ohgaki
813bd67320 fix build with older postgresql 2005-07-22 18:48:14 +00:00
Marcus Boerger
d8eece2b43 - Add missing part to make colon in parameter binding optional 2005-07-22 14:31:20 +00:00
Marcus Boerger
e4b07b3ebe - Test the colon is optional in binding 2005-07-22 14:27:35 +00:00
Wez Furlong
cfe1dc3b46 this looks like a much better fix for refcounting/shutdown in lazy objects. 2005-07-22 04:33:56 +00:00
Wez Furlong
882503110d fix leak (ugh, this nuance gets me every time) 2005-07-22 02:09:19 +00:00
Wez Furlong
3560bb9c2b Fixes #33785 for me 2005-07-22 01:34:43 +00:00
Ilia Alshanetsky
3db688c6c9 Added test for PDO_FETCH_LAZY.
# This currently fails, see bug 33785
2005-07-21 19:33:48 +00:00
Derick Rethans
8a3d3aefbb - Changed the year parameter so that 0..69 maps to 2000..2069 and 70..100 maps
to 1970..2000, which was in the original code, but not in the documentation.
2005-07-21 10:09:40 +00:00
Dmitry Stogov
e4b1fb6455 Recursion protection 2005-07-21 07:18:02 +00:00
Ilia Alshanetsky
4b6d351cd3 Missing bit of the previous commits 2005-07-20 16:22:09 +00:00
Dmitry Stogov
e07d2f4803 "_local_cert" and "_passphrase" properties moved into "_stream_context".
As a result now it is possible to use certificates during access WSDL files.
2005-07-20 10:21:49 +00:00
Dmitry Stogov
3102638061 Fixed tests 2005-07-20 10:06:10 +00:00
Derick Rethans
e6c1ff254d - Fixed bug #33578 (strtotime() problem with "Oct17" format).
- Fixed problems with lone years in strtotime().
- Added functions to timelib to get a list of all abbreviations and timezone
  identifiers.
- Fixed problems with parsed dates that only have GMT offsets associated
  with them.
- Fixed a Windows compile problem.
- Added special constants for different often used date formats (DATE_ISO8601,
  DATE_RFC822, DATE_RSS etc).
- Fixed date_default_timezone_get() to return the guessed timezone if none
  was set yet with date_default_timezone_set().
- Added experimental support for Date/Timezone objects as per specifications.
2005-07-20 08:31:02 +00:00
Marcus Boerger
efcfe44299 - Use correct/complete skipif condition 2005-07-20 07:33:19 +00:00
Wez Furlong
ec50ec65b9 use pdo core test suite.
Now passes all but one test.  Volunteers that want to track down the cause
for test pdo_018.phpt not passing are welcome.
2005-07-20 05:27:27 +00:00
Wez Furlong
08891a1c1b some drivers want you to say that its ok to use NULL for these columns. 2005-07-20 05:27:00 +00:00
Ilia Alshanetsky
99d8090cb2 Fixed memory corruption (wrong order of operations of stored prep. stmt).
Optimize the max length calculation process.
2005-07-20 04:30:14 +00:00
Ilia Alshanetsky
97e8c6f4a9 Proper handling for databases that need to pre-calculate length of large
columns, which is not normally done for performance reasons.
2005-07-20 03:38:33 +00:00
Wez Furlong
79f3cb9856 Add PDO_PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT attribute, which, when set
to true, forces the driver to use PDO's own emulated prepared statement
support.

Why would you want that, considering that native prepared statements are
supposed to be the best thing ever?

"Often postgresql will have to plan the query without knowing the parameters -
and it will choose a bad plan.  In some cases it will plan based on the first
parameters you send. "

Ugh.  So now we have a way to let you decide that you know better than the
pgsql query planner.
2005-07-20 02:37:57 +00:00
Ilia Alshanetsky
9438584d76 Only set attribute if result set contains some columns. 2005-07-20 02:36:34 +00:00
Ilia Alshanetsky
1e1d2e2b0d clean up 2005-07-20 02:19:20 +00:00
Wez Furlong
8adbc92d4b this hack can and does segv; let's remove it. 2005-07-20 01:59:14 +00:00
foobar
40a049b27e Skip tests in 64bit systems 2005-07-20 00:18:24 +00:00
Wez Furlong
3b5af6d43f Remove stale #ifdefs (this is PHP 5 only code).
Add a stream_context option to the SoapClient constructor; this allows
generic stream context options to be set without having to add code to the
SoapClient every time a context option is added.
2005-07-19 19:48:02 +00:00
Wez Furlong
d4348d11dd try to make the test a bit more portable 2005-07-19 16:55:48 +00:00
Wez Furlong
3ebfbe6bd2 this should always be a string here, but just in case, convert it. 2005-07-19 16:55:22 +00:00
Wez Furlong
6e7a8f10d1 if we didn't detect an error, don't return -1 rows, as that means that we found an error 2005-07-19 16:54:51 +00:00
Wez Furlong
43c1a1b73c Closes #33533 by implementing proper dynamic fetching of long text columns. 2005-07-19 15:26:16 +00:00
Wez Furlong
e568ea3277 Limit the size of columns to 64K, so we don't try to allocate 2GB for each text
column coming out of informix.

Refs Bug #33533.

Not totally closed yet; still need to cater for text fields longer than 64k in a sane manner.
2005-07-19 03:39:49 +00:00
Brad House
96a273a10d \#if BRAD_0'd latest changes as requested until 5.1.0 release 2005-07-19 00:34:39 +00:00
foobar
db138c59d4 MFB4_4: Fix compile problem with --regex=system on some systems 2005-07-18 23:17:24 +00:00
Brad House
936e199d38 sync missing functions from libmonetra-5 2005-07-18 20:10:07 +00:00
Dmitry Stogov
70bd938bbd Fixed bug in new module statrup mechanism 2005-07-18 16:20:08 +00:00
foobar
e63d1706cf touch with working re2c 2005-07-18 16:08:37 +00:00
Wez Furlong
be88f5a960 make a start on a debugging function. 2005-07-18 14:46:55 +00:00
Wez Furlong
d9826ec143 touch generated file 2005-07-18 14:44:56 +00:00
Wez Furlong
7f053e062c avoid :: when looking for named parameters.
Refs Bug #33736.
2005-07-18 14:44:14 +00:00
Wez Furlong
4854dd71de this needs to be the column count, otherwise a db->query() that returns 0 rows
will fail rather than returning a statement with no rows.
2005-07-18 14:40:49 +00:00
Ilia Alshanetsky
a6931b3923 Cleanup buffers on handle re-use. 2005-07-18 13:47:33 +00:00
Frank M. Kromann
890b1602fb Make sure we build with SWFPrebuilt. 2005-07-18 00:42:48 +00:00
Marcus Boerger
503330fb88 - Provide distinction and distinct tests 2005-07-18 00:14:54 +00:00
Marcus Boerger
70ec0f41ac - Compatibility with ming 0.2a and 0.3a 2005-07-17 23:58:40 +00:00
Marcus Boerger
62c47d1778 - Write temp file in test dir 2005-07-17 23:58:02 +00:00
Marcus Boerger
dfeddbe539 - If you ask me both (expat and libxml) are not really accurate about byte
positions and columns...however the line number information is now
  correct for both so for the moment we live with the situation that they
  return different byte and column information.
2005-07-17 17:38:16 +00:00
Ilia Alshanetsky
2889c497f5 Added 2 missing cURL options available in all versions. 2005-07-16 18:33:09 +00:00
George Schlossnagle
d0ec239661 Darwin seems to like this much better. 2005-07-15 16:47:48 +00:00