Commit Graph

589 Commits

Author SHA1 Message Date
Dmitry Stogov
c96256bcaf Fixed support for static methods 2008-07-25 09:48:36 +00:00
Dmitry Stogov
013059c247 Fixed uninitialized data 2008-07-25 08:53:11 +00:00
Pierre Joye
265d2e6c5d - force static for now, broken now 2008-07-24 16:05:17 +00:00
Johannes Schlüter
ae1cd8e253 - Add mysqlnd support for PDO_mysql, fixes at least bug#41997,#42499,
pecl#12794, pecl#12401

# Running the tests:
# (Note: Doesn't work currnetly on HEAD, see:
#  http://news.php.net/php.qa/64378)
#
#  PDO_MYSQL_TEST_DSN  - DSN
#    For example: mysql:dbname=test;host=localhost;port=3306
#
#  PDO_MYSQL_TEST_HOST    - database host
#  PDO_MYSQL_TEST_DB      - database (schema) name
#  PDO_MYSQL_TEST_SOCKET  - database server socket
#  PDO_MYSQL_TEST_ENGINE  - storage engine to use
#  PDO_MYSQL_TEST_USER    - database user
#  PDO_MYSQL_TEST_PASS    - database user password
#  PDO_MYSQL_TEST_CHARSET - database charset
#
#  NOTE: if any of PDO_MYSQL_TEST_[HOST|DB|SOCKET|ENGINE|CHARSET] is
#  part of PDO_MYSQL_TEST_DSN, the values must match. That is, for example,
#  for PDO_MYSQL_TEST_DSN = mysql:dbname=test you MUST set PDO_MYSQL_TEST_DB=test.
2008-07-21 13:05:51 +00:00
Felipe Pena
fb588a3776 MFB: Added arginfo 2008-07-06 05:02:40 +00:00
Felipe Pena
61a01e1c20 - MFB: Added arginfo 2008-06-27 19:17:29 +00:00
Felipe Pena
06a7527c65 - Removed UEXPECT(F) 2008-05-27 13:16:27 +00:00
Felipe Pena
8778ef1d21 - Add check for avoid segfault when trying instantiate PDORow manually 2008-05-14 12:28:28 +00:00
Nuno Lopes
c7e53aa963 MFB 2008-04-10 18:51:54 +00:00
Felipe Pena
b859ca7770 - Fixed compilation warnings 2008-03-22 20:37:08 +00:00
Felipe Pena
26f3bd40ef Fixed compilation warnings 2008-03-22 19:29:43 +00:00
Dmitry Stogov
a0378d3514 Fixed test 2008-03-18 06:44:54 +00:00
Gwynne Raskind
29e1c1b66e Unused function in HEAD, fixes compiler warning 2008-03-10 14:35:37 +00:00
Felipe Pena
2818d4fc51 New way for check void parameters 2008-03-04 23:39:15 +00:00
Ilia Alshanetsky
18c0b63dd1 MFB: Fixed bug #44166 (Parameter handling flaw in
PDO::getAvailableDrivers())
2008-03-03 21:13:29 +00:00
Johannes Schlüter
237ad54d4c - Fix get_parent_class() of PDORow instances 2008-03-03 18:58:59 +00:00
Ilia Alshanetsky
5b5f3d1944 MFB: Better fix for bug #44189 2008-02-26 00:14:25 +00:00
Ilia Alshanetsky
f0548595b6 MFB: Fixed bug #44200 (A crash in PDO when no bound targets exists and yet
bound parameters are present)
2008-02-24 16:09:13 +00:00
Ilia Alshanetsky
287d112e72 MFB: Fixed bug #44189 (PDO setAttribute() does not properly validate values
for native numeric options)
2008-02-21 13:38:12 +00:00
Ilia Alshanetsky
51056f8985 MFB: Fixed bug #44171 (Invalid FETCH_COLUMN index does not raise an error) 2008-02-20 03:12:23 +00:00
Nuno Lopes
2657e1ee2a MFB 2008-02-19 14:46:41 +00:00
Felipe Pena
c963093b82 MFB: Fixed Bug #44159 (Crash: $pdo->setAttribute(PDO::STATEMENT_ATTR_CLASS, NULL)) 2008-02-19 12:17:42 +00:00
Dmitry Stogov
42a683d688 Imporoved PHP binary size and startup speed with GCC4 visibility control (Nuno) 2008-01-30 09:56:22 +00:00
Nuno Lopes
7955d9a8c1 MFB: move data to const segment 2008-01-25 19:58:51 +00:00
Ilia Alshanetsky
c54b89e06b MFB: Missing patch bit from the FETCH_GROUP fix 2008-01-14 18:41:48 +00:00
Ilia Alshanetsky
f4078bfc73 MFB: Fixed a bug with PDO::FETCH_COLUMN|PDO::FETCH_GROUP mode when a column
# by which to group by data is specified.
2008-01-11 01:48:19 +00:00
Ilia Alshanetsky
e86494394d MFB: Skip test for PostgreSQL driver since error is too dissimilar to other
drivers
2008-01-03 16:47:01 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Sebastian Bergmann
e54c79141b Bump copyright year, 1 of 2. 2007-12-31 07:09:33 +00:00
David Soria Parra
3178b2f2c7 Test for bug 43663 2007-12-30 17:48:24 +00:00
David Soria Parra
e33ce44214 - Fixed bug #43663 (Extending PDO class with a __call() function doesn't work). 2007-12-30 17:43:08 +00:00
Wez Furlong
8e1ef43f5b docbook based spec docs 2007-11-27 19:33:10 +00:00
Wez Furlong
2f1ee5031a test commit mail 2007-11-27 19:05:38 +00:00
Wez Furlong
004884085e This commit was generated by cvs2svn to compensate for changes in r247182,
which included commits to RCS files with non-trunk default branches.
2007-11-27 19:01:26 +00:00
Ilia Alshanetsky
d8f1520c86 MFB: Revert addition of - char support for bound param names 2007-11-26 21:10:18 +00:00
Jani Taskinen
4fc4814012 - Fixed bug #43365 (Several enums have trailing commas) 2007-11-26 10:58:28 +00:00
Ilia Alshanetsky
90f57a82b5 revert previous pdo patch 2007-11-20 23:27:56 +00:00
Ilia Alshanetsky
7b6cfe903e MFB: Fixed bug #42978 (mismatch between number of bound params and values
causes a crash in pdo_pgsql)
2007-11-20 14:22:40 +00:00
Ilia Alshanetsky
5bae3d0f3c MFB: Fixed bug #43139 PDO ignores ATTR_DEFAULT_FETCH_MODE in some cases with
fetchAll()
2007-10-31 12:58:39 +00:00
Ilia Alshanetsky
8a8c3fe038 MFB: Test not relavent for sqlite that uses built-in bound syntax 2007-10-30 23:04:01 +00:00
Ilia Alshanetsky
38c68da824 MFB: Fixed bug #43130 (Bound parameters cannot have - in their name) 2007-10-29 22:37:44 +00:00
Yiduo (David) Wang
2514bcfdec stmt->fetch.func.values is not a zval and should not be freed with FREE_ZVAL 2007-10-08 04:05:22 +00:00
Yiduo (David) Wang
95da0dc570 Added macros for managing zval refcounts and is_ref statuses 2007-10-07 05:15:07 +00:00
Dmitry Stogov
8146078f7b Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:28:44 +00:00
Stanislav Malyshev
88a97c56dd MFB: fix crash if stream is empty and reader function sets buffer as null 2007-09-12 21:27:56 +00:00
Ilia Alshanetsky
7453fe94f7 PDO is not experimental anymore 2007-08-26 17:00:47 +00:00
Ilia Alshanetsky
473758a7f2 MFB: Fixed bug #41596 (Fixed a crash inside pdo_pgsql on some
non-well-formed SQL queries).
2007-06-05 22:56:57 +00:00
Ilia Alshanetsky
cbcb1840f3 MFB 2007-05-28 23:43:24 +00:00
Ilia Alshanetsky
8e8258be1c Fixed a typo 2007-05-16 20:12:53 +00:00
Ilia Alshanetsky
09ecbca0e1 MFB: PDO:FETCH_KEY_PAIR 2007-05-16 19:58:58 +00:00
Antony Dovgal
ccd97f3a21 fix test names 2007-05-07 17:23:53 +00:00
foobar
af103577be > date: 2006/12/09 22:18:42; author: wez; state: Exp; lines: +14 -6
> merge PHP 5 pdo into HEAD.  This source compiles on both PHP 5 and PHP 6.
> If you're poking around in here, please make sure that any changes you make
> compile on both PHP 5 and 6.  Thanks!

Same goes for Wez. :) (pecl build broken for pdo drivers)
2007-04-25 07:47:15 +00:00
Antony Dovgal
94723e9457 fix #40727 (segfault in PDO when failed to bind parameters) 2007-03-07 09:02:18 +00:00
Nuno Lopes
699351d794 fix a bug where PHP would enter in an infinite cycle with chars with ascii value > 127
while at it, remove the lim structure parameter (it wasn't being used)
2007-01-03 22:02:43 +00:00
Nuno Lopes
5861f56dea fix PDO_DRIVER_API 2007-01-03 20:33:09 +00:00
Nuno Lopes
84f62f1133 fix lcov build 2007-01-03 20:27:49 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Nuno Lopes
168185e7a0 fix lcov/genhtml build (yes it is very picky) 2006-12-22 17:02:54 +00:00
Wez Furlong
bcb1fed3a7 merge PHP 5 pdo into HEAD. This source compiles on both PHP 5 and PHP 6.
If you're poking around in here, please make sure that any changes you make
compile on both PHP 5 and 6.  Thanks!
2006-12-09 22:18:43 +00:00
Ilia Alshanetsky
ccc4783e4a MFB: Fixed bug #39759 (Can't use stored procedures fetching multiple result
sets in pdo_mysql).
2006-12-08 19:51:29 +00:00
Ilia Alshanetsky
c8ba0f9058 MFB: Fixed bug #36798 (Error parsing named parameters with queries
containing high-ascii chars).
2006-12-05 18:05:56 +00:00
Hannes Magnusson
380439a39a MFB: fix test 2006-12-05 15:59:09 +00:00
Ilia Alshanetsky
10a8b1a152 MFB: Fixed test (user is a reserved keyword in pgsql) 2006-12-04 17:55:56 +00:00
Ilia Alshanetsky
6f6577665e MFB: Fixed bug #38319 (Remove bogus warnings from persistent PDO connections). 2006-12-04 03:08:52 +00:00
Ilia Alshanetsky
7f024a57bc MFB: Fixed bug #38252 (Incorrect PDO error message on invalid default fetch
mode).
2006-12-04 02:40:20 +00:00
Ilia Alshanetsky
ad2b0a9fef MFB: Fixed bug #39483 (Problem with handling of \ char in prepared
statements).
2006-12-04 00:39:47 +00:00
Ilia Alshanetsky
f01de45857 MFB: Added missing check for mismatching number of tokens & bound params in
prepared statement emulation.
2006-12-03 23:28:00 +00:00
Ilia Alshanetsky
b5e7220dcb MFB: Fixed bug #39527 (Failure to retrieve results when multiple unbuffered,
prepared statements are used in pdo_mysql).
2006-12-02 17:55:05 +00:00
Antony Dovgal
7499bd74b6 add test 2006-11-28 16:55:25 +00:00
Ilia Alshanetsky
2b703207d5 MFB: Fixed bug #39656 (crash when calling fetch() on a PDO statment object
after closeCursor()).
2006-11-28 16:28:07 +00:00
Ilia Alshanetsky
5d9c6b33d0 MFB: Fixed a possible crash 2006-11-23 14:41:51 +00:00
Ilia Alshanetsky
b1a4e9c49a MFB: updated generated file 2006-11-12 17:56:50 +00:00
Ilia Alshanetsky
aa3222a342 MFB: Fixed a memory leak when named & positional params are being used in
the same query.
2006-11-12 17:49:52 +00:00
Ilia Alshanetsky
b38a50bb4f MFB: Fixed bug #39398 (Booleans are not automatically translated to
integers).
2006-11-07 17:57:37 +00:00
Hannes Magnusson
4970ccfa04 MFB: Remove bogus INI entry 2006-10-14 15:07:36 +00:00
Hannes Magnusson
176b72284c Error message clean up
(patch by Matt W (php_lists -AT- realpain.com))
2006-10-08 13:34:24 +00:00
Antony Dovgal
16a298bc1d more 64bit fixes 2006-09-28 23:27:49 +00:00
Antony Dovgal
86eb8b4178 more 64bit fixes 2006-09-28 23:03:45 +00:00
Ilia Alshanetsky
8690a5a2d9 MFB:
Fixed bug #37870 (pgo_pgsql tries to de-allocate unused statements).
	Fixed bug #36681 (pdo_pgsql driver incorrectly ignored some errors).
	Fixed test for bug #38253 not to use faulty SQL that generates
	errors in PostgreSQL
2006-09-19 15:46:25 +00:00
Antony Dovgal
a934fcb749 it's not a PEAR only issue, this happens with shared builds also 2006-08-24 16:00:35 +00:00
Antony Dovgal
7e62e16fa0 fix possible crash in free_statement() 2006-08-23 19:15:46 +00:00
Antony Dovgal
ed72b00458 typo 2006-08-21 17:11:46 +00:00
Ilia Alshanetsky
1e101793bb MFB: Fixed bug #38535 (memory corruption in pdo_pgsql driver on error
retrieval inside a failed query executed via query() method).
2006-08-21 16:54:05 +00:00
Ilia Alshanetsky
24441c81da MFB: Added skip condition for sqlite2 driver, that uses more forgiving
emulated prepared statements.
2006-08-16 14:10:16 +00:00
Ilia Alshanetsky
f148d3fa4c MFB: Fixed bug #38394 (PDO fails to recover from failed prepared statement
execution).
2006-08-09 14:46:35 +00:00
Antony Dovgal
dbe2092313 implement zend_unicode_to_string() and zend_string_to_unicode()
part #2 (of 2)
2006-08-08 16:59:11 +00:00
Ilia Alshanetsky
434704eaf0 MFB: Fixed memory leak with persistent connections 2006-08-07 17:33:20 +00:00
Ilia Alshanetsky
329a7b6301 Fixed build (added missing functions) 2006-08-01 16:37:11 +00:00
Ilia Alshanetsky
06bc5e1b46 MFB: Fixed memory leak on unused bound name parameters. 2006-08-01 15:06:12 +00:00
Ilia Alshanetsky
0af6ef771e MFB: Fixed bug #37445 (Fixed crash in pdo_mysql resulting from premature
object destruction).
2006-07-31 20:19:18 +00:00
Antony Dovgal
34cfab8e7c MFB: bug #38253 (PDO produces segfault with default fetch mode)
add test
2006-07-30 11:20:41 +00:00
Dmitry Stogov
6abfcba273 Destructors call order is changed (Fixed bug #36759 - Objects destructors are invoked in wrong order when script is finished) 2006-07-12 07:55:04 +00:00
Hartmut Holzgraefe
743deb09c9 "transaction" tests should test commit, too, not only rollback 2006-07-10 16:29:24 +00:00
Hartmut Holzgraefe
4ea4434475 two additional tests improving pdo/pdo_mysql test code coverage 2006-07-10 14:05:46 +00:00
Hartmut Holzgraefe
d2cae0ccba SHOW ENGINES is only available in PHP 4.1.2 and above (and the output
format slightly changed between 4.1 and 5.0, too),
SHOW VARIABLES LIKE 'have_%' is the more portable alternative here
2006-07-10 07:39:23 +00:00
Antony Dovgal
59e16e52de init variables 2006-06-20 13:28:02 +00:00
Dmitry Stogov
943960c324 Added automatic module globals management 2006-06-13 13:12:20 +00:00
Rasmus Lerdorf
2ef05dfd60 Remove useless RINIT/RSHUTDOWN calls 2006-06-07 21:13:33 +00:00
Ilia Alshanetsky
5b40f43faa MFB: Fixed bug #37709 (Possible crash in PDO::errorCode()). 2006-06-07 03:33:39 +00:00
Antony Dovgal
cfeff66e9a need to call zend_is_callable() if callable is known to be invalid 2006-05-30 09:46:01 +00:00