Commit Graph

582 Commits

Author SHA1 Message Date
Felipe Pena
8ecf8ede1f - Removed:
- UG(unicode) checks
       - pcre_cache_entry.unicode_mode
- Changed:
       - ZEND_STR_TYPE -> IS_UNICODE
       - convert_to_text -> convert_to_unicode
       - convert_to_text_ex -> convert_to_unicode_ex

(Felipe, Steph)
2009-03-26 20:02:53 +00:00
Felipe Pena
e96a4a7d63 - Fix typo 2009-03-26 13:54:53 +00:00
Felipe Pena
35ddc72b28 - Fixed bug #47769 (Strange extends PDO) 2009-03-26 12:51:30 +00:00
Felipe Pena
dc61f2e106 - Fixed some code to be working with unicode 2009-03-25 12:05:51 +00:00
Felipe Pena
d0c644c7bb - Synced pieces of codes
- Fixed tests
2009-03-24 19:32:06 +00:00
Felipe Pena
501a5a0d94 - MFB old changes 2009-03-23 23:58:49 +00:00
Felipe Pena
11dde4a7c5 - Fixed bug #44409 (PDO::FETCH_SERIALIZE calls __construct())
Patch by: matteo at beccati dot com
2009-03-23 23:02:06 +00:00
Andrei Zmievski
c8362a20f6 Fix copy-pasto (needs to return proper CE). 2009-03-12 16:12:44 +00:00
Marcus Boerger
d4f5b3f0a9 - This is PHP 6 - if this ... ever gets out 2009-03-10 23:40:06 +00:00
Johannes Schlüter
f6f0d58bee - Fix #46542 Extending PDO class with a __call() function doesn't work as
expected
2009-02-17 14:39:58 +00:00
Felipe Pena
9b8e2baf6b - Missing "DROP TABLE" 2009-02-16 19:48:49 +00:00
Felipe Pena
e2fa0bbf23 - Added arginfo 2009-02-13 12:54:20 +00:00
Felipe Pena
039f424f89 - Fixed bug #43831 ($this gets mangled when extending PDO with persistent connection)
- Fixed bug #45432 (PDO: persistent connection leak)
2009-02-13 02:18:04 +00:00
Felipe Pena
d2e40edc0a - Fixed bug #47297 (pdo_033.phpt fails on PgSQL)
Patch by matteo at beccati dot com
2009-02-04 16:40:13 +00:00
Sebastian Bergmann
7f4dc8702a Bump copyright year, 3 of 3. 2008-12-31 11:12:40 +00:00
Sebastian Bergmann
befd80d1c4 Bump copyright year, 2 of 3. 2008-12-31 11:10:02 +00:00
Antony Dovgal
a1775daba1 fix possible invalid read 2008-12-03 10:11:04 +00:00
Matt Wilmas
2a2653a347 MFB (1.82.2.31.2.17.2.10): "Added a warning message on pdo::exec() failure in the event of an empty query" 2008-12-03 00:08:37 +00:00
Dmitry Stogov
e5454b359a Fixed bug #46409 (__invoke method called outside of object context when using array_map) 2008-11-27 19:02:45 +00:00
Felipe Pena
43791516db - Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro (again!) 2008-11-17 11:26:25 +00:00
Felipe Pena
ed247d6d41 - Better fix 2008-11-13 18:14:31 +00:00
Pierre Joye
9c9bd52036 - declarations go first.... 2008-11-13 14:36:56 +00:00
Felipe Pena
c37e9fd8bb - Fixed invalid reads 2008-11-13 13:07:50 +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
Felipe Pena
27357e9ce5 - Fixed wrong check
- Improved test
2008-11-05 23:39:09 +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
Felipe Pena
0d97fcdaed - Improved fix 2008-11-03 23:43:51 +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
Felipe Pena
870039d58a - Fixed bug #44327 (PDORow::queryString property & numeric offsets / Crash) 2008-11-03 15:31:51 +00:00
Felipe Pena
e006a89e71 - Revert ZEND_BEGIN_ARG_INFO change 2008-11-02 21:10:13 +00:00
Felipe Pena
7eb2715464 - Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro 2008-10-24 14:34:17 +00:00
Felipe Pena
1d92251fe1 - Fixed bug #43925 (Incorrect argument counter in prepared statements with pgsql) 2008-10-23 18:22:18 +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
Kalle Sommer Nielsen
ef464f7872 Add missing zend_parse_paramters_none() in pdo_drivers() 2008-10-10 23:37:51 +00:00
Felipe Pena
edd40fc41d - Static'fication 2008-10-10 19:35:15 +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
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
f5a54a2250 - Fixed bug #46157 (PDOStatement::fetchObject prototype error) 2008-09-23 23:05:24 +00:00
Johannes Schlüter
a89387b7e3 - Fix #44425 (Extending PDO/MySQL class with a __call() function doesn't work) 2008-09-16 23:34:31 +00:00
Felipe Pena
a5f867f3d5 - Constness (Added const qualifier to several function parameters) 2008-08-12 17:15:59 +00:00
Felipe Pena
611ecc5111 - Added parameter TSRMLS_DC in zend_is_callable() 2008-08-02 04:40:45 +00:00
Jani Taskinen
3f73317c79 - Fix PDO configure dependancy: If --disable-pdo is used, disable all enabled-by-default drivers. Also error out if you try to configure a driver as static but pdo is disabled. 2008-07-25 13:38:41 +00:00
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