History log of /PHP_5_5/ext/pdo/pdo_dbh.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e9b4bca 28-Jan-2014 Bob Weinand <bobwei9@hotmail.com> Fixed arginfo of PDO::__construct() to match the docs and zend_parse_parameters definition.
/PHP_5_5/ext/pdo/pdo_dbh.c
c0d060f 03-Jan-2014 Xinchen Hui <laruence@php.net> Bump year
/PHP_5_5/ext/pdo/pdo_dbh.c
e3d9e18 05-Nov-2013 Xinchen Hui <laruence@php.net> Fixed Bug #66034 (Segmentation Fault when constructor of PDO statement throws an exception)

I know zend_call_function will initilize retval_ptr_ptr, but still set
it to NULL explict is more readable
/PHP_5_5/ext/pdo/pdo_dbh.c
d598747 22-Aug-2013 Matteo Beccati <mbeccati@php.net> Fixed other compiler warnings
/PHP_5_5/ext/pdo/pdo_dbh.c
e9a95d7 13-Jul-2013 Veres Lajos <vlajos@gmail.com> typo fixes
/PHP_5_5/ext/pdo/pdo_dbh.c
49e57a3 16-Jun-2013 Xinchen Hui <laruence@php.net> Fixed bug #63176 (Segmentation fault when instantiate 2 persistent PDO to the same db server)
/PHP_5_5/ext/pdo/pdo_dbh.c
0a7395e 01-Jan-2013 Xinchen Hui <laruence@php.net> Happy New Year
/PHP_5_5/ext/pdo/pdo_dbh.c
e4a8fa6 09-Oct-2012 Xinchen Hui <laruence@php.net> Merge branch 'PHP-5.3' into PHP-5.4
6284ef1 09-Oct-2012 Xinchen Hui <laruence@php.net> Fixed bug #63236 (Executable permission on various source files)
/PHP_5_5/ext/pdo/pdo_dbh.c
53c8612 01-Aug-2012 Xinchen Hui <laruence@php.net> Fixed bug #62685 (Wrong return datatype in PDO::inTransaction())
/PHP_5_5/ext/pdo/pdo_dbh.c
cd896d6 01-Aug-2012 Xinchen Hui <laruence@php.net> Fixed bug #62685 (Wrong return datatype in PDO::inTransaction())
/PHP_5_5/ext/pdo/pdo_dbh.c
b025b9d 27-Jun-2012 Johannes Schlüter <johannes@php.net> Fix #62432 ReflectionMethod random corrupt memory on high concurrent

This fixes the same issue in multiple extensions. This isn't needed
in later branches as 5.4 introduced object_properties_init()
/PHP_5_5/ext/pdo/pdo_dbh.c
a32a199 06-Mar-2012 Xinchen Hui <laruence@php.net> Fixed bug #61292 (Segfault while calling a method on an overloaded PDO object)
/PHP_5_5/ext/pdo/pdo_dbh.c
e4ca0ed 01-Jan-2012 Felipe Pena <felipe@php.net> - Year++
/PHP_5_5/ext/pdo/pdo_dbh.c
4e19825 01-Jan-2012 Felipe Pena <felipe@php.net> - Year++
/PHP_5_5/ext/pdo/pdo_dbh.c
cacf363 08-Nov-2011 Dmitry Stogov <dmitry@php.net> Fixed bug #60104 (Segmentation Fault in pdo_sqlite when using sqliteCreateFunction())
/PHP_5_5/ext/pdo/pdo_dbh.c
4a25a77 13-Sep-2011 Dmitry Stogov <dmitry@php.net> Fixed ZE specific compile warnings (Bug #55629)
/PHP_5_5/ext/pdo/pdo_dbh.c
34f08a3 07-Aug-2011 Ilia Alshanetsky <iliaa@php.net> Fixes for variety of issues identified by coverity scan
/PHP_5_5/ext/pdo/pdo_dbh.c
9db1c59 07-Aug-2011 Ilia Alshanetsky <iliaa@php.net> Fixes for variety of issues identified by coverity scan
/PHP_5_5/ext/pdo/pdo_dbh.c
927bf09 01-Jan-2011 Felipe Pena <felipe@php.net> - Year++
/PHP_5_5/ext/pdo/pdo_dbh.c
0203cc3 01-Jan-2011 Felipe Pena <felipe@php.net> - Year++
/PHP_5_5/ext/pdo/pdo_dbh.c
9b698db 21-Dec-2010 Gustavo André dos Santos Lopes <cataphract@php.net> - Revert of revision 306542, turns out the semantics of compare() are
different in SplMinHeap and SplMaxHeap.
/PHP_5_5/ext/pdo/pdo_dbh.c
f2df6a4 15-Sep-2010 Dmitry Stogov <dmitry@php.net> - Improved memory usage
. zend_function.pass_rest_by_reference is replaced by
ZEND_ACC_PASS_REST_BY_REFERENCE in zend_function.fn_flags
. zend_function.return_reference is replaced by ZEND_ACC_RETURN_REFERENCE
in zend_function.fn_flags
. zend_arg_info.required_num_args removed. it was needed only for internal
functions. Now the first arg_info for internal function (which has special
meaning) is represented by zend_internal_function_info structure.
. zend_op_array.size, size_var, size_literal, current_brk_cont,
backpatch_count moved into CG(context), because they are used only during
compilation.
. zend_op_array.start_op is moved into EG(start_op), because it's used
only for 'interactive' execution of single top-level op-array.
. zend_op_array.done_pass_two is replaced by ZEND_ACC_DONE_PASS_TWO in
zend_op_array.fn_flags.
. op_array.vars array is trimmed (reallocated) during pass_two.
. zend_class_entry.constants_updated is replaced by
ZEND_ACC_CONSTANTS_UPDATED in zend_class_entry.ce_flags
. the size of zend_class_entry is reduced by sharing the same memory space
by different information for internal and user classes.
See zend_class_inttry.info union.
/PHP_5_5/ext/pdo/pdo_dbh.c
24b8bc3 15-Jun-2010 Ilia Alshanetsky <iliaa@php.net> Removed the in_transaction handler for 5.3 to avoid BC break due to structure change
/PHP_5_5/ext/pdo/pdo_dbh.c
90906a9 10-Jun-2010 Ilia Alshanetsky <iliaa@php.net> Added inTransaction() method to PDO, with specialized support for Postgres
/PHP_5_5/ext/pdo/pdo_dbh.c
6ed1819 10-Jun-2010 Ilia Alshanetsky <iliaa@php.net> Added inTransaction() method to PDO, with specialized support for Postgres
/PHP_5_5/ext/pdo/pdo_dbh.c
c5237d8 24-May-2010 Dmitry Stogov <dmitry@php.net> Added caches to eliminate repeatable run-time bindings of functions, classes, constants, methods and properties
/PHP_5_5/ext/pdo/pdo_dbh.c
2bc3611 19-May-2010 Derick Rethans <derick@php.net> - Fixed name.
/PHP_5_5/ext/pdo/pdo_dbh.c
77b2e54 06-May-2010 Dmitry Stogov <dmitry@php.net> Fixed PDO objects binary incompatibility
/PHP_5_5/ext/pdo/pdo_dbh.c
dd8e59d 26-Apr-2010 Kalle Sommer Nielsen <kalle@php.net> Removed safe_mode
* Removed ini options, safe_mode*
* Removed --enable-safe-mode --with-exec-dir configure options on Unix
* Updated extensions, SAPI's and core
* php_get_current_user() is now declared in main.c, thrus no need to include safe_mode.h anymore
/PHP_5_5/ext/pdo/pdo_dbh.c
94dd837 20-Apr-2010 Dmitry Stogov <dmitry@php.net> Changed the structure of op_array.opcodes. The constant values are moved from opcode operands into a separate literal table
/PHP_5_5/ext/pdo/pdo_dbh.c
e670a3f 01-Apr-2010 Ilia Alshanetsky <iliaa@php.net> On beginTransaction() reset error state
/PHP_5_5/ext/pdo/pdo_dbh.c
c2e16d3 01-Apr-2010 Ilia Alshanetsky <iliaa@php.net> On beginTransaction() reset error state
/PHP_5_5/ext/pdo/pdo_dbh.c
9ba1e81 03-Jan-2010 Sebastian Bergmann <sebastian@php.net> sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
/PHP_5_5/ext/pdo/pdo_dbh.c
93a406a 13-Dec-2009 Felipe Pena <felipe@php.net> - Fixed bug #49174 (crash on queryString set)
/PHP_5_5/ext/pdo/pdo_dbh.c
51c17c4 20-Nov-2009 Ilia Alshanetsky <iliaa@php.net> Don't ignore the 2nd parameter to PDO's quote() method that identifies the data type
/PHP_5_5/ext/pdo/pdo_dbh.c
b394a75 12-Oct-2009 Felipe Pena <felipe@php.net> - Fixed PDORow and PDOStatement crashes when instantiating throught Reflection
/PHP_5_5/ext/pdo/pdo_dbh.c
d8f43d4 02-May-2009 Kalle Sommer Nielsen <kalle@php.net> MFH: Fix proto
/PHP_5_5/ext/pdo/pdo_dbh.c
90fb825 02-Apr-2009 Matteo Beccati <mbeccati@php.net> MFH:
- Fixed bug #44173 (PDO->query() parameter parsing/checking needs an
update)
# The changeset is longer than really needed because pdo_stmt.c was
# refactored to remove the "goto"
/PHP_5_5/ext/pdo/pdo_dbh.c
d7c4a27 26-Mar-2009 Felipe Pena <felipe@php.net> MFH: - Fixed bug #47769 (Strange extends PDO)
/PHP_5_5/ext/pdo/pdo_dbh.c
162aed0 17-Feb-2009 Johannes Schlüter <johannes@php.net> MFH: Fix #46542 Extending PDO class with a __call() function doesn't work
as expected
/PHP_5_5/ext/pdo/pdo_dbh.c
d01257f 13-Feb-2009 Felipe Pena <felipe@php.net> - Added missing void param check and arginfo
/PHP_5_5/ext/pdo/pdo_dbh.c
f0a9659 13-Feb-2009 Felipe Pena <felipe@php.net> MFH:
- Fixed bug #43831 ($this gets mangled when extending PDO with persistent connection)
- Fixed bug #45432 (PDO: persistent connection leak)
/PHP_5_5/ext/pdo/pdo_dbh.c
08659c2 31-Dec-2008 Sebastian Bergmann <sebastian@php.net> MFH: Bump copyright year, 3 of 3.
/PHP_5_5/ext/pdo/pdo_dbh.c
fafa7f2 03-Dec-2008 Matt Wilmas <mattwil@php.net> Fixed error message typo
/PHP_5_5/ext/pdo/pdo_dbh.c
7d4fd3f 27-Nov-2008 Dmitry Stogov <dmitry@php.net> Fixed bug #46409 (__invoke method called outside of object context when using array_map)
/PHP_5_5/ext/pdo/pdo_dbh.c
c810332 13-Nov-2008 Pierre Joye <pajoye@php.net> - MFH: declaration goes first...
/PHP_5_5/ext/pdo/pdo_dbh.c
9334bbd 10-Nov-2008 David Coallier <davidc@php.net> - After readying Johannes's mail, the conclusion that a "smarter" system
to find out if the return_value had the correct number of elements was
definitely needed. Simply added a difference to both dbh and stmt to
make sure that the error info always has 3 elements.

- Bug #44154 (pdo->errorInfo doesn't always return three elements)
- Now pdo->errorInfo() AND stmt->errorInfo() return three elements.

- [DOC] Make sure that not only the pdo->errorInfo() is returning 3 elms, but
also the PDOStatement object
/PHP_5_5/ext/pdo/pdo_dbh.c
80e3ed5 04-Nov-2008 David Coallier <davidc@php.net> - MFH
- 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 #4413: [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.
/PHP_5_5/ext/pdo/pdo_dbh.c
8d03c0d 09-Oct-2008 Felipe Pena <felipe@php.net> - MFH: Fixed bug pecl#9641 (Unable to add driver specific methods to PDOStatement) (patch by Christopher Jones)
/PHP_5_5/ext/pdo/pdo_dbh.c
2c98da2 16-Sep-2008 Johannes Schlüter <johannes@php.net> MFH Fix #44425 (Extending PDO/MySQL class with a __call() function doesn't work)
/PHP_5_5/ext/pdo/pdo_dbh.c
691d4a6 25-Jul-2008 Dmitry Stogov <dmitry@php.net> Fixed uninitialised data
/PHP_5_5/ext/pdo/pdo_dbh.c
3bcf8a3 22-Apr-2008 Ilia Alshanetsky <iliaa@php.net> Added a warning message on pdo::exec() failure in the event of an empty query
/PHP_5_5/ext/pdo/pdo_dbh.c
57f51ee 18-Mar-2008 Antony Dovgal <tony2001@php.net> remove ze1_compat leftovers
/PHP_5_5/ext/pdo/pdo_dbh.c
84a8bb0 10-Mar-2008 Felipe Pena <felipe@php.net> MFH: New way for check void parameters
/PHP_5_5/ext/pdo/pdo_dbh.c
1a3f7f6 03-Mar-2008 Ilia Alshanetsky <iliaa@php.net> Fixed bug #44166 (Parameter handling flaw in PDO::getAvailableDrivers())
/PHP_5_5/ext/pdo/pdo_dbh.c
2fc9f59 21-Feb-2008 Ilia Alshanetsky <iliaa@php.net> Fixed bug #44189 (PDO setAttribute() does not properly validate values for
native numeric options)
/PHP_5_5/ext/pdo/pdo_dbh.c
6e712e0 19-Feb-2008 Felipe Pena <felipe@php.net> MFB: Fixed Bug #44159 (Crash: $pdo->setAttribute(PDO::STATEMENT_ATTR_CLASS, NULL))
/PHP_5_5/ext/pdo/pdo_dbh.c
d1dded8 31-Dec-2007 Sebastian Bergmann <sebastian@php.net> MFH: Bump copyright year, 2 of 2.
/PHP_5_5/ext/pdo/pdo_dbh.c
07487ad 30-Dec-2007 David Soria Parra <dsp@php.net> - Fixed bug #43663 (Extending PDO class with a __call() function doesn't work).
CVS
/PHP_5_5/ext/pdo/pdo_dbh.c
4b4d634 07-Oct-2007 Yiduo (David) Wang <davidw@php.net> MFH: Added macros for managing zval refcounts and is_ref statuses
/PHP_5_5/ext/pdo/pdo_dbh.c
6c810b0 27-Sep-2007 Dmitry Stogov <dmitry@php.net> Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
/PHP_5_5/ext/pdo/pdo_dbh.c
910850b 12-Sep-2007 Ilia Alshanetsky <iliaa@php.net> Fixed bug #42643 (CLI segfaults if using ATTR_PERSISTENT).
/PHP_5_5/ext/pdo/pdo_dbh.c
2fc92c9 30-Aug-2007 Hannes Magnusson <bjori@php.net> - Fixed bug #42452 (PDO classes do not expose Reflection API information)
- Fixed tests
/PHP_5_5/ext/pdo/pdo_dbh.c
39c1705 16-Jul-2007 Ilia Alshanetsky <iliaa@php.net> Fixed a possible crash inside the constructor
/PHP_5_5/ext/pdo/pdo_dbh.c
d34bfe5 28-Jun-2007 Ilia Alshanetsky <iliaa@php.net> When working with persistent connections re-initialize options on each
connection. Flags like error reporting may differ.
/PHP_5_5/ext/pdo/pdo_dbh.c
37d1bfe 28-Jun-2007 Ilia Alshanetsky <iliaa@php.net> Added support for ATTR_TIMEOUT inside pdo_pgsql driver.
Fixed a bug inside PDO's "use persistent" connection detection mechanism
that would trigger connections on "" and "0" values
/PHP_5_5/ext/pdo/pdo_dbh.c
abffe87 27-Jun-2007 Ilia Alshanetsky <iliaa@php.net> Fixed a crash inside PDO when there is more then one instance of a
persistent connection inside a script and PDO object is extended by class
with a destructor
/PHP_5_5/ext/pdo/pdo_dbh.c
efd7846 16-May-2007 Ilia Alshanetsky <iliaa@php.net> [DOC] Added PDO::FETCH_KEY_PAIR mode that will fetch a 2 column result set
into an associated array.
/PHP_5_5/ext/pdo/pdo_dbh.c
7810fc8 29-Apr-2007 Ilia Alshanetsky <iliaa@php.net> Fixed bug #41215 (setAttribute return code reversed).
/PHP_5_5/ext/pdo/pdo_dbh.c
4223aa4 01-Jan-2007 Sebastian Bergmann <sebastian@php.net> MFH: Bump year.
/PHP_5_5/ext/pdo/pdo_dbh.c
44045f8 04-Dec-2006 Ilia Alshanetsky <iliaa@php.net> Fixed bug #38252 (Incorrect PDO error message on invalid default fetch mode).
/PHP_5_5/ext/pdo/pdo_dbh.c
8d770ee 21-Aug-2006 Ilia Alshanetsky <iliaa@php.net> Fixed bug #38535 (memory corruption in pdo_pgsql driver on error retrieval
inside a failed query executed via query() method).
/PHP_5_5/ext/pdo/pdo_dbh.c
194b309 07-Aug-2006 Ilia Alshanetsky <iliaa@php.net> Fixed memory leak with persistent connections
/PHP_5_5/ext/pdo/pdo_dbh.c
c6ace95 31-Jul-2006 Ilia Alshanetsky <iliaa@php.net> Fixed bug #37445 (Fixed crash in pdo_mysql resulting from premature object
destruction).
/PHP_5_5/ext/pdo/pdo_dbh.c
97ef557 27-Jul-2006 Antony Dovgal <tony2001@php.net> initialize var
/PHP_5_5/ext/pdo/pdo_dbh.c
a9c6e4b 07-Jun-2006 Ilia Alshanetsky <iliaa@php.net> Fixed bug #37709 (Possible crash in PDO::errorCode()).
/PHP_5_5/ext/pdo/pdo_dbh.c
e5c8f8c 06-Jun-2006 Antony Dovgal <tony2001@php.net> yet another dummy clone_obj handler to fix problems created by ze1 compat mode
/PHP_5_5/ext/pdo/pdo_dbh.c
7bbab02 11-May-2006 Marcus Boerger <helly@php.net> - MFH
. Fix iterator based access
. Add new attribute ATTR_DEFAULT_FETCH_MODE: $bdh->setAttribute()
. Add new fetch mode: FETCH_PROPS_LATE, this fills object member
variables after calling the constructor (fixes #36428).
/PHP_5_5/ext/pdo/pdo_dbh.c
91999f1 03-May-2006 Sara Golemon <pollita@php.net> mfh(r-1.129) Expose PARAM_EVT_* constants
/PHP_5_5/ext/pdo/pdo_dbh.c
687e6ff 09-Apr-2006 Wez Furlong <wez@php.net> Add "ATTR_EMULATE_PREPARES" general attribute to replace the custom
attributes employed by mysql and postgres drivers.
No functional change.
/PHP_5_5/ext/pdo/pdo_dbh.c
1ad4dd8 23-Mar-2006 Antony Dovgal <tony2001@php.net> return FALSE if driver doesn't support quoting (this is what docu says)
also fixed PECL bug #6365
/PHP_5_5/ext/pdo/pdo_dbh.c
6e93f3e 06-Mar-2006 Marcus Boerger <helly@php.net> - MFH Proto fixes
/PHP_5_5/ext/pdo/pdo_dbh.c
6f66a63 31-Jan-2006 Ilia Alshanetsky <iliaa@php.net> Fixed bug #36222 (errorInfo in PDOException is always NULL).
/PHP_5_5/ext/pdo/pdo_dbh.c
5bd9322 01-Jan-2006 foobar <sniper@php.net> bump year and license version
/PHP_5_5/ext/pdo/pdo_dbh.c
2e50763 24-Dec-2005 Ilia Alshanetsky <iliaa@php.net> Fixed memory corruption that affected pdo_sqlite2.
/PHP_5_5/ext/pdo/pdo_dbh.c
24af85d 07-Dec-2005 Ilia Alshanetsky <iliaa@php.net> Fixed memory leak
/PHP_5_5/ext/pdo/pdo_dbh.c
3e669bc 06-Dec-2005 foobar <sniper@php.net> MFH: nuke php3 legacy
/PHP_5_5/ext/pdo/pdo_dbh.c
f58f7f4 05-Dec-2005 foobar <sniper@php.net> MFH: fix typo
/PHP_5_5/ext/pdo/pdo_dbh.c
66832de 05-Dec-2005 foobar <sniper@php.net> MFH
/PHP_5_5/ext/pdo/pdo_dbh.c
d72347f 04-Dec-2005 Antony Dovgal <tony2001@php.net> MFH: fix #35543 (php crash when calling non existing method of a class that extends PDO)
/PHP_5_5/ext/pdo/pdo_dbh.c
d0ea27b 28-Nov-2005 Wez Furlong <wez@php.net> API for connection dependent objects to add/del refs to dbh's.
/PHP_5_5/ext/pdo/pdo_dbh.c
bb2f034 25-Nov-2005 Wez Furlong <wez@php.net> well, what do you know, it does do something.
/PHP_5_5/ext/pdo/pdo_dbh.c
dfdd1e4 24-Nov-2005 Wez Furlong <wez@php.net> CLASSTYPE is an internal flag.
Closes PECL #5640.
/PHP_5_5/ext/pdo/pdo_dbh.c
8e49bac 24-Nov-2005 Ilia Alshanetsky <iliaa@php.net> Fixed bug #35358 (Incorrect error messages for PDO class constants).
/PHP_5_5/ext/pdo/pdo_dbh.c
4020933 20-Nov-2005 Ilia Alshanetsky <iliaa@php.net> Fixed bug #35303 (PDO prepare() crashes with invalid parameters).
/PHP_5_5/ext/pdo/pdo_dbh.c
493c9fc 19-Nov-2005 Antony Dovgal <tony2001@php.net> MFH: fix #35293 (PDO segfaults when using persistent connections)
/PHP_5_5/ext/pdo/pdo_dbh.c
dcd7879 27-Oct-2005 Wez Furlong <wez@php.net> fixes PECL Bug #5589
/PHP_5_5/ext/pdo/pdo_dbh.c
ea544cf 23-Oct-2005 Wez Furlong <wez@php.net> Closes PECL Bug #5750; uri: dsn is not handled correctly.
Patch from curt@php.net
/PHP_5_5/ext/pdo/pdo_dbh.c
ffe605f 03-Oct-2005 Antony Dovgal <tony2001@php.net> free cls_methods correctly and fix segfault on shutdown
(no bug entry and MFB, though..)
/PHP_5_5/ext/pdo/pdo_dbh.c
9a0bed9 03-Oct-2005 Ilia Alshanetsky <iliaa@php.net> MFH: Fixed memory leak.
/PHP_5_5/ext/pdo/pdo_dbh.c
612dab6 03-Oct-2005 Wez Furlong <wez@php.net> fix type
/PHP_5_5/ext/pdo/pdo_dbh.c
a750f19 02-Oct-2005 Wez Furlong <wez@php.net> Fix Bug #34687; error information from query() not passed back
/PHP_5_5/ext/pdo/pdo_dbh.c
991a29c 02-Oct-2005 Marcus Boerger <helly@php.net> - MFH PDOException base
/PHP_5_5/ext/pdo/pdo_dbh.c
ca9dd7d 02-Oct-2005 Marcus Boerger <helly@php.net> - Add PDO::setAttribute(PDO::ATTR_STATEMENT_CLASS)
/PHP_5_5/ext/pdo/pdo_dbh.c
932346c 01-Oct-2005 Wez Furlong <wez@php.net> Allow compilation with PHP 5.0.x
Closes PECL #5514
/PHP_5_5/ext/pdo/pdo_dbh.c
4dff36f 20-Sep-2005 Ilia Alshanetsky <iliaa@php.net> MFH: Allow overloading of PDO constructor.
/PHP_5_5/ext/pdo/pdo_dbh.c
bfe844e 20-Sep-2005 Ilia Alshanetsky <iliaa@php.net> MFH: Make PDO use class constants
/PHP_5_5/ext/pdo/pdo_dbh.c
7e76298 18-Sep-2005 Wez Furlong <wez@php.net> move pdo_drivers -> PDO::getAvailableDrivers as part of namespacing sweep.
/PHP_5_5/ext/pdo/pdo_dbh.c
efe24c0 10-Sep-2005 Wez Furlong <wez@php.net> add __sleep and __wakeup functions to prevent serialize/deserialize from being used on PDO objects. Refs PECL #5217
/PHP_5_5/ext/pdo/pdo_dbh.c
664ebfa 12-Jul-2005 Wez Furlong <wez@php.net> expand oracle null handling compatability by offering the ability to convert
NULLs into empty strings as well as the other way around. It still doesn't
help a great deal in the long run, but at least the option is there.

Make sure hash tables are nulled out to avoid double freeing them.
/PHP_5_5/ext/pdo/pdo_dbh.c
5fe5da9 09-Jul-2005 Ilia Alshanetsky <iliaa@php.net> Safer way of allowing 'blank' user/pass.

# Thanks Wez.
/PHP_5_5/ext/pdo/pdo_dbh.c
0b1931a 08-Jul-2005 Ilia Alshanetsky <iliaa@php.net> Fix needed for PostgreSQL driver to allow $user & $pass to be supplied via
DSN as NULL.
/PHP_5_5/ext/pdo/pdo_dbh.c
49c1882 08-Jul-2005 Wez Furlong <wez@php.net> Add a PDO_ATTR_STRINGIFY_FETCHES attribute, which is used to convert integer or
floating point values into strings during fetch. This is a compatibility hack
for drivers that return native types rather than string representations.

We use this flag in the test suite to persuade postgres tests to pass.
/PHP_5_5/ext/pdo/pdo_dbh.c
da7d537 07-Jul-2005 Wez Furlong <wez@php.net> populate the new dbh->driver field.
Implement PDO_ATTR_DRIVER_NAME.
/PHP_5_5/ext/pdo/pdo_dbh.c
0eb0b78 07-Jul-2005 Dmitry Stogov <dmitry@php.net> Fixed memory leaks
/PHP_5_5/ext/pdo/pdo_dbh.c
13ac716 11-Jun-2005 Wez Furlong <wez@php.net> and the lesson is, test everything before you commit at 2am
/PHP_5_5/ext/pdo/pdo_dbh.c
f124c20 11-Jun-2005 Wez Furlong <wez@php.net> couple of conceptual errors here
/PHP_5_5/ext/pdo/pdo_dbh.c
49e7b3d 10-Jun-2005 Wez Furlong <wez@php.net> Fix a dumb bug that would effecively ignore persistent connections and create a
new one each time.

Add a hook for persistent connections: it is called when the object goes out of
scope, and offers the driver an opportunity to release per-request scoped data
at the right time.

This hook is used by pdo_sqlite to unregister UDFs, which are dangerous to keep
registered between requests.
/PHP_5_5/ext/pdo/pdo_dbh.c
5c16028 10-Jun-2005 Wez Furlong <wez@php.net> initialize type of function
/PHP_5_5/ext/pdo/pdo_dbh.c
9b3929a 26-May-2005 Marcus Boerger <helly@php.net> - Need to make PDO::__construct() final to prevent SEGV it isn't called 1st
/PHP_5_5/ext/pdo/pdo_dbh.c
3be5038 28-Apr-2005 Ilia Alshanetsky <iliaa@php.net> Allocation checks around persistent allocs that can fail.
/PHP_5_5/ext/pdo/pdo_dbh.c
c9108bb 21-Mar-2005 Marcus Boerger <helly@php.net> - Simplify code (only implement handlers that are necessary)
- Fix handling of read only property 'queryString'
- Fix overloading
- Move class init code to their defining .c files for simplification
- Mark class PDORow as final until there's a need to inherit this and
someone implements the handlers correct then.
/PHP_5_5/ext/pdo/pdo_dbh.c
f7ebff8 09-Mar-2005 Wez Furlong <wez@php.net> "thou shalt not throw exceptions except in really exceptional circumstances."

The only allowed places to throw them directly are from within the PDO class
constructors or when dealing with transaction level attributes, where
"hard-failure" is a feature.

All other errors should use the PDO error handling mechanism and respect the
users selected error mode.
/PHP_5_5/ext/pdo/pdo_dbh.c
de1d8b9 09-Mar-2005 Wez Furlong <wez@php.net> prep package file for release.
fix my favourite typo.
fix compile warnings
/PHP_5_5/ext/pdo/pdo_dbh.c
eb330a9 28-Feb-2005 Marcus Boerger <helly@php.net> - Fix warning
/PHP_5_5/ext/pdo/pdo_dbh.c
d072f6d 28-Feb-2005 Marcus Boerger <helly@php.net> - Changing handler table definitively results in SEGVs
/PHP_5_5/ext/pdo/pdo_dbh.c
bc1c0c2 28-Feb-2005 Joe Orton <jorton@php.net> Fix type mismatch.
/PHP_5_5/ext/pdo/pdo_dbh.c
2c5b2fc 26-Feb-2005 Wez Furlong <wez@php.net> Alan: moved your fields away, but reserved you a pointer.

Changed PDO::lastInsertId() to have following proto:

string PDO::lastInsertId([string name])

this allows arbitrary unique identitifers to be returned from the driver.

The optional name parameter is for databases that require additional contextual
information to be able to return the correct identifier. None currently use
it, but pgsql will be on the list of drivers that do.
/PHP_5_5/ext/pdo/pdo_dbh.c
b786b93 23-Feb-2005 Marcus Boerger <helly@php.net> - Delay ctor call so that it can overwrite everything and the data can
already be accessed from the ctor.
/PHP_5_5/ext/pdo/pdo_dbh.c
77cf78c 23-Feb-2005 Marcus Boerger <helly@php.net> - Make ctor args optional
/PHP_5_5/ext/pdo/pdo_dbh.c
994006a 22-Feb-2005 Marcus Boerger <helly@php.net> - Need to also revert operator
/PHP_5_5/ext/pdo/pdo_dbh.c
d235a2b 22-Feb-2005 Marcus Boerger <helly@php.net> - Put this back in (forgot to revert)
/PHP_5_5/ext/pdo/pdo_dbh.c
cb9658f 22-Feb-2005 Marcus Boerger <helly@php.net> - Revert signature of PDO:prepare()
old: proto object PDO::prepare(string statment [, array driver_options [, string classname ]])
now: proto object PDO::prepare(string statment [, array options])
param 'classname' and and 'ctor_args' are now set through options
using index PDO_ATTR_STATEMENT_CLASS
- Change all deriver_options parameters to 'options' to reflect the fact
that they may contain statement as well as driver specific flags
/PHP_5_5/ext/pdo/pdo_dbh.c
3c743e3 22-Feb-2005 Marcus Boerger <helly@php.net> - Allow to derive PDOStatement
- Verify fetch modes
- Add last fetch mode PDO_FETCH_FUNC (only valid inside fetchAll()) that
allows to completley customize the way data is treated on the fly
/PHP_5_5/ext/pdo/pdo_dbh.c
18985ac 22-Feb-2005 Marcus Boerger <helly@php.net> - Call dtor
/PHP_5_5/ext/pdo/pdo_dbh.c
1051e70 13-Feb-2005 Wez Furlong <wez@php.net> Fixes the crash part of PECL Bug #3434.
/PHP_5_5/ext/pdo/pdo_dbh.c
91eab3e 11-Feb-2005 Wez Furlong <wez@php.net> typo
/PHP_5_5/ext/pdo/pdo_dbh.c
ccd2426 11-Feb-2005 Wez Furlong <wez@php.net> Fix PDO::query() for drivers that emulate bound parameters.
/PHP_5_5/ext/pdo/pdo_dbh.c
94d5261 09-Feb-2005 Wez Furlong <wez@php.net> cosmetic changes
/PHP_5_5/ext/pdo/pdo_dbh.c
902ca8c 09-Feb-2005 Wez Furlong <wez@php.net> Expose the quoter method of the driver as PDO::quote().
Closes PECL Bug #3393
/PHP_5_5/ext/pdo/pdo_dbh.c
e3ba31e 06-Feb-2005 Wez Furlong <wez@php.net> better handling of pdo-level errors
/PHP_5_5/ext/pdo/pdo_dbh.c
ca4dc03 06-Feb-2005 Wez Furlong <wez@php.net> this one too
/PHP_5_5/ext/pdo/pdo_dbh.c
9ba8436 06-Feb-2005 Wez Furlong <wez@php.net> handle some generic attributes here
/PHP_5_5/ext/pdo/pdo_dbh.c
7a137a5 21-Jan-2005 Wez Furlong <wez@php.net> fix leak
/PHP_5_5/ext/pdo/pdo_dbh.c
dcd3d84 21-Jan-2005 Wez Furlong <wez@php.net> Eliminate unused parameter
/PHP_5_5/ext/pdo/pdo_dbh.c
a536e31 19-Jan-2005 Wez Furlong <wez@php.net> leak/segv less
/PHP_5_5/ext/pdo/pdo_dbh.c
37ea5fb 17-Jan-2005 Wez Furlong <wez@php.net> Tidy up driver specific method handling
/PHP_5_5/ext/pdo/pdo_dbh.c
dd842e4 12-Jan-2005 Wez Furlong <wez@php.net> API support for scrollable cursors
/PHP_5_5/ext/pdo/pdo_dbh.c
1875caf 08-Jan-2005 Marcus Boerger <helly@php.net> - Fix warning
- Fix tsrm usage
/PHP_5_5/ext/pdo/pdo_dbh.c
6e0d8dd 07-Jan-2005 Wez Furlong <wez@php.net> implement SQLSTATE style error codes.
Allow drivers to add methods to dbh and stmt objects
(note that we can't use a class, because the use only sees the PDO class).
Clarify the api slightly:
PDO::exec() is used for one-shot queries that don't return rows
PDO::query() is a convenience function for returning a rowset without
having to go through the steps of preparing and executing.
/PHP_5_5/ext/pdo/pdo_dbh.c
b44785e 26-Dec-2004 Wez Furlong <wez@php.net> don't blow up under HEAD
/PHP_5_5/ext/pdo/pdo_dbh.c
35b00ff 27-Oct-2004 Wez Furlong <wez@php.net> Synopsis:

PDOStatement::setFetchMode()
reset default fetch() mode for a statement to PDO_FETCH_BOTH

PDOStatement::setFetchMode(PDO_FETCH_NUM)
PDOStatement::setFetchMode(PDO_FETCH_ASSOC)
PDOStatement::setFetchMode(PDO_FETCH_BOTH)
PDOStatement::setFetchMode(PDO_FETCH_OBJ)
set default fetch() mode for a statement.

PDOStatement::setFetchMode(PDO_FETCH_COLUMN, int colno)
set default fetch() mode to retrieve colno-th column on each fetch() call.

PDOStatement::setFetchMode(PDO_FETCH_CLASS, string classname [, array ctor args])
set default fetch() mode to create an instance of classname,
calling it's ctor, passing the optional ctor args.
The names of the columns in the result set will be used as property names on
the object instance. PPP rules apply.

[NOTE: calling ctor is not yet implemented]
[TODO: this might crash PHP for persistent PDO handles]

PDOStatement::setFetchMode(PDO_FETCH_INTO, object obj)
Similar to PDO_FETCH_CLASS, except that each iteration will update the
supplied object properties.

[TODO: this might crash PHP for persistent PDO handles]

The default fetch() mode is used when no parameters are passed to
PDOStatement::fetch(). When using a statement in an iterator context,
PDOStatement::fetch() is called implicitly on each iteration.

object PDO::queryAndIterate(string sql, <PDOStatement::setFetchMode args>)
This is semantically equivalent to:

$stmt = $pdo->prepare($sql);
$stmt->execute();
$stmt->setFetchMode($args);
return $stmt;


Example/Intended usage:

/* fetch an array with numeric and string keys */
foreach ($pdo->queryAndIterate("select NAME, VALUE from test") as $row) {
debug_zval_dump($row);
}

/* fetch the value of column 1 into $row on each iteration */
foreach ($pdo->queryAndIterate("select NAME, VALUE from test",
PDO_FETCH_COLUMN, 1) as $row) {
debug_zval_dump($row); // string(3) "foo"
}

/* create a new instance of class Foo on each iteration */
foreach ($pdo->queryAndIterate("select NAME, VALUE from test",
PDO_FETCH_CLASS, 'Foo') as $row) {
debug_zval_dump($row);
/*
Object(Foo)#4 (2) refcount(2){
["NAME"]=>
string(12) "foo220051429" refcount(2)
["VALUE"]=>
string(12) "bar789825748" refcount(2)
}
*/
}

etc.
/PHP_5_5/ext/pdo/pdo_dbh.c
eb0cd48 26-Sep-2004 Wez Furlong <wez@php.net> Add rough cut at fetching meta data.
/PHP_5_5/ext/pdo/pdo_dbh.c
2416481 24-Sep-2004 Wez Furlong <wez@php.net> More sensible error codes in the exceptions we throw for broken transactions
/PHP_5_5/ext/pdo/pdo_dbh.c
7937f0a 23-Sep-2004 Wez Furlong <wez@php.net> Implement persistent connections
$dbh->exec --> $dbh->query
/PHP_5_5/ext/pdo/pdo_dbh.c
ceb5510 19-Sep-2004 Wez Furlong <wez@php.net> Add support for:

$d = new PDO('foobar'); // name has no : character

This will indirect via the entry "pdo.dsn.foobar" from the php.ini file,
so if you have:

pdo.dsn.foobar=sqlite::memory:

the above is equivalent to this:

$d = new PDO('sqlite::memory:');

which creates an in-memory sqlite db.
/PHP_5_5/ext/pdo/pdo_dbh.c
797303d 19-Sep-2004 Wez Furlong <wez@php.net> un-bogusify uri: stuff...
/PHP_5_5/ext/pdo/pdo_dbh.c
34d1093 19-Sep-2004 Wez Furlong <wez@php.net> Add "no permission" error code.

Add a uri: psuedo driver; it specifies the name of a resource that contains,
as its first line, the actual data source to connect to.
The resource can be a local file, or it can be any resource for which PHP
has a wrapper.

// loads connection data from the file "myapp"
$d = new PDO('uri:myapp');

// lets say that public.db.com has a read-only db open for the public
// their connection data is also published via the web:
// (not so great to resolve this on each request though...)
$d = new PDO('uri:http://public.db.com/pdo-connection-data');
/PHP_5_5/ext/pdo/pdo_dbh.c
fdb29f9 29-Aug-2004 Antony Dovgal <tony2001@php.net> fix leak
/PHP_5_5/ext/pdo/pdo_dbh.c
af900cb 28-Jul-2004 Marcus Boerger <helly@php.net> - Fix SEGV in case ctor failed
/PHP_5_5/ext/pdo/pdo_dbh.c
c7b7791 26-Jul-2004 George Schlossnagle <gschlossnagle@php.net> allow pdo to be functionally inherited from.
/PHP_5_5/ext/pdo/pdo_dbh.c
0d00266 19-Jul-2004 Wez Furlong <wez@php.net> Implement empty-string-to-null conversion option for oracle compat.
This can be enabled using:
$dbh->setAttribute(PDO_ATTR_ORACLE_NULLS, true);
/PHP_5_5/ext/pdo/pdo_dbh.c
2ba792c 05-Jul-2004 Ilia Alshanetsky <iliaa@php.net> Don't use alloca() where it can reached by the users.
/PHP_5_5/ext/pdo/pdo_dbh.c
9e18741 23-Jun-2004 George Schlossnagle <gschlossnagle@php.net> fix for inheritability
/PHP_5_5/ext/pdo/pdo_dbh.c
18cd69e 23-Jun-2004 Ard Biesheuvel <abies@php.net> Fixed some int-long issues
/PHP_5_5/ext/pdo/pdo_dbh.c
d2a8d5a 25-May-2004 Wez Furlong <wez@php.net> get/set attributes for statements
/PHP_5_5/ext/pdo/pdo_dbh.c
7a87af3 25-May-2004 Wez Furlong <wez@php.net> Some definitions for cursors.
Define a mechanism for driver-specific attributes.
Use a refcount for the stmt structure.
/PHP_5_5/ext/pdo/pdo_dbh.c
b7ecaca 25-May-2004 Ilia Alshanetsky <iliaa@php.net> More leak fixes.
/PHP_5_5/ext/pdo/pdo_dbh.c
d782abf 25-May-2004 Ilia Alshanetsky <iliaa@php.net> More leak fixes.
/PHP_5_5/ext/pdo/pdo_dbh.c
ce38913 25-May-2004 Ilia Alshanetsky <iliaa@php.net> Fixed memory leak.
/PHP_5_5/ext/pdo/pdo_dbh.c
37d8a82 21-May-2004 Ilia Alshanetsky <iliaa@php.net> Fixed compiler warning.
/PHP_5_5/ext/pdo/pdo_dbh.c
bf48daa 21-May-2004 Wez Furlong <wez@php.net> Version 1 of PDO_FETCH_LAZY
/PHP_5_5/ext/pdo/pdo_dbh.c
f0a001a 20-May-2004 Wez Furlong <wez@php.net> Implement case folding of column names as a portability option.
/PHP_5_5/ext/pdo/pdo_dbh.c
43a04be 20-May-2004 Ilia Alshanetsky <iliaa@php.net> Make username & password parameters optional.
/PHP_5_5/ext/pdo/pdo_dbh.c
5023a7c 20-May-2004 Wez Furlong <wez@php.net> Enable setting the different error modes via PDO::setAttribute()
/PHP_5_5/ext/pdo/pdo_dbh.c
726e188 20-May-2004 Ilia Alshanetsky <iliaa@php.net> Fixed typo.
/PHP_5_5/ext/pdo/pdo_dbh.c
e596466 20-May-2004 Ilia Alshanetsky <iliaa@php.net> Added getAttribute() method.
/PHP_5_5/ext/pdo/pdo_dbh.c
cf33729 20-May-2004 Ilia Alshanetsky <iliaa@php.net> Better error message.
/PHP_5_5/ext/pdo/pdo_dbh.c
04ccc01 20-May-2004 Wez Furlong <wez@php.net> Add methods for error handling
/PHP_5_5/ext/pdo/pdo_dbh.c
fbbb41a 20-May-2004 Ilia Alshanetsky <iliaa@php.net> Fixed typo.
/PHP_5_5/ext/pdo/pdo_dbh.c
e770b2b 20-May-2004 Ilia Alshanetsky <iliaa@php.net> Fixed compiler warnings.
/PHP_5_5/ext/pdo/pdo_dbh.c
e7c72f8 20-May-2004 Wez Furlong <wez@php.net> First cut at a "unified" error handling API. The main thing that is missing
currently is a switch in the dbh to indicate what to do with the errors.
/PHP_5_5/ext/pdo/pdo_dbh.c
1299972 19-May-2004 George Schlossnagle <gschlossnagle@php.net> exec() now returns row count
/PHP_5_5/ext/pdo/pdo_dbh.c
7c5c0fb 19-May-2004 Frank M. Kromann <fmk@php.net> Set correct Win32 line endings and fix ZTS compilation
/PHP_5_5/ext/pdo/pdo_dbh.c
074ba3f 19-May-2004 Ilia Alshanetsky <iliaa@php.net> Added lastInsertId() method for retrieving last insert id.
Made affectedRows() work for MySQL.
Populate error value in MySQL on error.
/PHP_5_5/ext/pdo/pdo_dbh.c
fd6b885 19-May-2004 Wez Furlong <wez@php.net> Revise $dbh->exec().
The driver doer() method should populate dbh->affected_rows if it can determine its value.
/PHP_5_5/ext/pdo/pdo_dbh.c
6cd27ff 19-May-2004 Wez Furlong <wez@php.net> Add $dbh->exec() method.
Rename $dbh->beginWork() to $dbh->beginTransaction().
/PHP_5_5/ext/pdo/pdo_dbh.c
4116d9f 19-May-2004 Wez Furlong <wez@php.net> Expand the prepare() prototype to accept additional options.
/PHP_5_5/ext/pdo/pdo_dbh.c
a97e1a6 18-May-2004 George Schlossnagle <gschlossnagle@php.net> handle binding/quoting of queries for drivers with emulated prepares
/PHP_5_5/ext/pdo/pdo_dbh.c
79c513d 17-May-2004 Wez Furlong <wez@php.net> Some pedantic fixes for gcc.
/PHP_5_5/ext/pdo/pdo_dbh.c
684be9c 17-May-2004 Wez Furlong <wez@php.net> Hello PDO.

Still more to come. Give it a couple of days before starting to write drivers
for the other databases; a few things might change, so I'd like to coordinate
that, but in a couple of days.
/PHP_5_5/ext/pdo/pdo_dbh.c