History log of /PHP_TRUNK/ext/pdo/pdo_stmt.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6cceb54 03-Sep-2014 Nikita Popov <nikic@php.net> Fix a number of format issues
/php-src/ext/pdo/pdo_stmt.c
af59e92 25-Aug-2014 Anatol Belski <ab@php.net> master renames phase 7
/php-src/ext/pdo/pdo_stmt.c
4d997f6 25-Aug-2014 Anatol Belski <ab@php.net> master renames phase 3
/php-src/ext/pdo/pdo_stmt.c
6f9f0bf 25-Aug-2014 Anatol Belski <ab@php.net> master renames phase 2
/php-src/ext/pdo/pdo_stmt.c
c3e3c98 25-Aug-2014 Anatol Belski <ab@php.net> master renames phase 1
/php-src/ext/pdo/pdo_stmt.c
70de618 24-Aug-2014 Anatol Belski <ab@php.net> fixes to %pd format usage
/php-src/ext/pdo/pdo_stmt.c
b315af1 21-Aug-2014 Anatol Belski <ab@php.net> fix zpp
/php-src/ext/pdo/pdo_stmt.c
cd18b58 20-Aug-2014 Anatol Belski <ab@php.net> Merge remote-tracking branch 'php/master'
8cda420 20-Aug-2014 Dmitry Stogov <dmitry@zend.com> Fixed ext/pdo_*/tests/pdo_005.phpt tests failure
/php-src/ext/pdo/pdo_stmt.c
92269d2 19-Aug-2014 Anatol Belski <ab@php.net> ported pdo and pdo_sqlite
/php-src/ext/pdo/pdo_stmt.c
63d3f0b 19-Aug-2014 Anatol Belski <ab@php.net> basic macro replacements, all at once
/php-src/ext/pdo/pdo_stmt.c
2ed8a17 07-Jul-2014 Dmitry Stogov <dmitry@zend.com> Refactored run_time_cache usage in object handlers
/php-src/ext/pdo/pdo_stmt.c
2a06902 23-Jun-2014 Xinchen Hui <laruence@php.net> Fixed compiler warning
/php-src/ext/pdo/pdo_stmt.c
c135ca0 23-Jun-2014 Xinchen Hui <laruence@php.net> Actually, I don't know how it works. (maybe I should re-start again :<)
/php-src/ext/pdo/pdo_stmt.c
80108a1 20-Jun-2014 Xinchen Hui <laruence@php.net> Fixed PDO_PARAM_ZVAL
/php-src/ext/pdo/pdo_stmt.c
9fa9da4 26-May-2014 Xinchen Hui <laruence@php.net> Finished persistent PDO implement
/php-src/ext/pdo/pdo_stmt.c
a4a1fc5 17-May-2014 Xinchen Hui <laruence@php.net> Fixed signed
/php-src/ext/pdo/pdo_stmt.c
28e6a2b 08-May-2014 Xinchen Hui <laruence@php.net> Revert "ext/pdo_mysql/tests/pdo_mysql_attr_oracle_nulls.phpt fails in trunk as well while building with libmysql"

This reverts commit 29b35292923596413a0fbf49890a2cbb16cbf8b4.
/php-src/ext/pdo/pdo_stmt.c
29b3529 08-May-2014 Xinchen Hui <laruence@php.net> ext/pdo_mysql/tests/pdo_mysql_attr_oracle_nulls.phpt fails in trunk as well while building with libmysql
/php-src/ext/pdo/pdo_stmt.c
5f46c8f 08-May-2014 Xinchen Hui <laruence@php.net> Fixed bugs in pdo_mysql
/php-src/ext/pdo/pdo_stmt.c
2d0c969 07-May-2014 Xinchen Hui <laruence@php.net> Refactor pdo_mysql(incompleted, some tests failed due to no mysqlnd)
/php-src/ext/pdo/pdo_stmt.c
8915ad6 06-May-2014 Dmitry Stogov <dmitry@zend.com> Fixed memory leaks
/php-src/ext/pdo/pdo_stmt.c
c73c652 05-May-2014 Xinchen Hui <laruence@php.net> clean up
/php-src/ext/pdo/pdo_stmt.c
d8651fb 03-May-2014 Xinchen Hui <laruence@gmail.com> Make they are in the same style of Z_ISREF
/php-src/ext/pdo/pdo_stmt.c
17d027e 30-Apr-2014 Dmitry Stogov <dmitry@zend.com> Split IS_BOOL into IS_FALSE and IS_TRUE
/php-src/ext/pdo/pdo_stmt.c
f9927a6 25-Apr-2014 Dmitry Stogov <dmitry@zend.com> Merge mainstream 'master' branch into refactoring
During merge I had to revert:
Nikita's patch for php_splice() (it probably needs to be applyed again)
Bob Weinand's patches related to constant expression handling (we need to review them carefully)
I also reverted all our attempts to support sapi/phpdbg (we didn't test it anyway)

Conflicts:
Zend/zend.h
Zend/zend_API.c
Zend/zend_ast.c
Zend/zend_compile.c
Zend/zend_compile.h
Zend/zend_constants.c
Zend/zend_exceptions.c
Zend/zend_execute.c
Zend/zend_execute.h
Zend/zend_execute_API.c
Zend/zend_hash.c
Zend/zend_highlight.c
Zend/zend_language_parser.y
Zend/zend_language_scanner.c
Zend/zend_language_scanner_defs.h
Zend/zend_variables.c
Zend/zend_vm_def.h
Zend/zend_vm_execute.h
ext/date/php_date.c
ext/dom/documenttype.c
ext/hash/hash.c
ext/iconv/iconv.c
ext/mbstring/tests/zend_multibyte-10.phpt
ext/mbstring/tests/zend_multibyte-11.phpt
ext/mbstring/tests/zend_multibyte-12.phpt
ext/mysql/php_mysql.c
ext/mysqli/mysqli.c
ext/mysqlnd/mysqlnd_reverse_api.c
ext/mysqlnd/php_mysqlnd.c
ext/opcache/ZendAccelerator.c
ext/opcache/zend_accelerator_util_funcs.c
ext/opcache/zend_persist.c
ext/opcache/zend_persist_calc.c
ext/pcre/php_pcre.c
ext/pdo/pdo_dbh.c
ext/pdo/pdo_stmt.c
ext/pdo_pgsql/pgsql_driver.c
ext/pgsql/pgsql.c
ext/reflection/php_reflection.c
ext/session/session.c
ext/spl/spl_array.c
ext/spl/spl_observer.c
ext/standard/array.c
ext/standard/basic_functions.c
ext/standard/html.c
ext/standard/mail.c
ext/standard/php_array.h
ext/standard/proc_open.c
ext/standard/streamsfuncs.c
ext/standard/user_filters.c
ext/standard/var_unserializer.c
ext/standard/var_unserializer.re
main/php_variables.c
sapi/phpdbg/phpdbg.c
sapi/phpdbg/phpdbg_bp.c
sapi/phpdbg/phpdbg_frame.c
sapi/phpdbg/phpdbg_help.c
sapi/phpdbg/phpdbg_list.c
sapi/phpdbg/phpdbg_print.c
sapi/phpdbg/phpdbg_prompt.c
2178612 25-Apr-2014 Xinchen Hui <laruence@gmail.com> Fixed fetch into refcount hanlding (now 3 test fails)
/php-src/ext/pdo/pdo_stmt.c
c5f9b86 25-Apr-2014 Xinchen Hui <laruence@gmail.com> Fixed bindColumn
/php-src/ext/pdo/pdo_stmt.c
868c2f9 25-Apr-2014 Xinchen Hui <laruence@gmail.com> Fixed reference handling in bindCloumn
/php-src/ext/pdo/pdo_stmt.c
67f27bc 25-Apr-2014 Xinchen Hui <laruence@gmail.com> Fixed register bound parameters in execute
/php-src/ext/pdo/pdo_stmt.c
36e214c 25-Apr-2014 Xinchen Hui <laruence@gmail.com> Fixed refcount of dbh (we don't need another refcount anymore)
/php-src/ext/pdo/pdo_stmt.c
9fe8531 24-Apr-2014 Xinchen Hui <laruence@gmail.com> Various bugs fixed
/php-src/ext/pdo/pdo_stmt.c
bd9f575 23-Apr-2014 Xinchen Hui <laruence@gmail.com> Clean up (use zend_string and foreach macros)
/php-src/ext/pdo/pdo_stmt.c
bdfef93 22-Apr-2014 Xinchen Hui <laruence@gmail.com> Refactor PDO (only compilable now)
/php-src/ext/pdo/pdo_stmt.c
050d7e3 15-Apr-2014 Dmitry Stogov <dmitry@zend.com> Cleanup (1-st round)
/php-src/ext/pdo/pdo_stmt.c
eaf44ec 07-Apr-2014 Nikita Popov <nikic@php.net> Remove some usages of hashtable internals
/php-src/ext/pdo/pdo_stmt.c
f4cfaf3 10-Feb-2014 Dmitry Stogov <dmitry@zend.com> Use better data structures (incomplete)
/php-src/ext/pdo/pdo_stmt.c
c081ce6 03-Jan-2014 Xinchen Hui <laruence@php.net> Bump year
/php-src/ext/pdo/pdo_stmt.c
908da14 22-Aug-2013 Matteo Beccati <mbeccati@php.net> Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
Fixed other compiler warnings
d598747 22-Aug-2013 Matteo Beccati <mbeccati@php.net> Fixed other compiler warnings
/php-src/ext/pdo/pdo_stmt.c
268c288 20-Aug-2013 Christopher Jones <sixd@php.net> Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
Quash compile warning "warning: 'flags' may be used uninitialized in this function"
e9b12be 20-Aug-2013 Christopher Jones <sixd@php.net> Quash compile warning "warning: 'flags' may be used uninitialized in this function"
/php-src/ext/pdo/pdo_stmt.c
fcc6611 16-Feb-2013 Nikita Popov <nikic@php.net> Add support for non-scalar Iterator keys in foreach

RFC: https://wiki.php.net/rfc/foreach-non-scalar-keys
/php-src/ext/pdo/pdo_stmt.c
e6bde1f 22-Jan-2013 Xinchen Hui <laruence@php.net> Fix test related to change for #bug64007 and also fix in newInstanceArgs
/php-src/ext/pdo/pdo_stmt.c
a666285 01-Jan-2013 Xinchen Hui <laruence@php.net> Happy New Year
/php-src/ext/pdo/pdo_stmt.c
0a7395e 01-Jan-2013 Xinchen Hui <laruence@php.net> Happy New Year
/php-src/ext/pdo/pdo_stmt.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-src/ext/pdo/pdo_stmt.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-src/ext/pdo/pdo_stmt.c
e4ca0ed 01-Jan-2012 Felipe Pena <felipe@php.net> - Year++
/php-src/ext/pdo/pdo_stmt.c
4e19825 01-Jan-2012 Felipe Pena <felipe@php.net> - Year++
/php-src/ext/pdo/pdo_stmt.c
127d7bc 25-Sep-2011 Johannes Schlüter <johannes@php.net> - Fix bug #55776 (PDORow to session bug)
/php-src/ext/pdo/pdo_stmt.c
9da3e6c 25-Sep-2011 Johannes Schlüter <johannes@php.net> - Fix bug #55776 (PDORow to session bug)
/php-src/ext/pdo/pdo_stmt.c
292c439 13-Sep-2011 Ilia Alshanetsky <iliaa@php.net> Improve parameter handling cod
/php-src/ext/pdo/pdo_stmt.c
4a25a77 13-Sep-2011 Dmitry Stogov <dmitry@php.net> Fixed ZE specific compile warnings (Bug #55629)
/php-src/ext/pdo/pdo_stmt.c
ebf9db5 18-Jun-2011 Felipe Pena <felipe@php.net> - Added missing arginfos for void params and void param checks
/php-src/ext/pdo/pdo_stmt.c
2b309c8 18-Jun-2011 Felipe Pena <felipe@php.net> - Added missing arginfos for void params and void param checks
/php-src/ext/pdo/pdo_stmt.c
83d01bd 01-Jun-2011 Ilia Alshanetsky <iliaa@php.net> Fixed bug #52104 (bindColumn creates Warning regardless of ATTR_ERRMODE settings).
/php-src/ext/pdo/pdo_stmt.c
a8b8fe1 01-Jun-2011 Ilia Alshanetsky <iliaa@php.net> Fixed bug #52104 (bindColumn creates Warning regardless of ATTR_ERRMODE settings).
/php-src/ext/pdo/pdo_stmt.c
f15452a 22-Feb-2011 Ilia Alshanetsky <iliaa@php.net> Fixed compiler warning
/php-src/ext/pdo/pdo_stmt.c
927bf09 01-Jan-2011 Felipe Pena <felipe@php.net> - Year++
/php-src/ext/pdo/pdo_stmt.c
0203cc3 01-Jan-2011 Felipe Pena <felipe@php.net> - Year++
/php-src/ext/pdo/pdo_stmt.c
73c4903 23-Dec-2010 Ilia Alshanetsky <iliaa@php.net> Fixed compiler warning
/php-src/ext/pdo/pdo_stmt.c
3cace9c 15-Nov-2010 Felipe Pena <felipe@php.net> - Fix wrong argument to read_property call
/php-src/ext/pdo/pdo_stmt.c
e6de920 15-Nov-2010 Felipe Pena <felipe@php.net> - Fix wrong argument to read_property call
/php-src/ext/pdo/pdo_stmt.c
8fba11c 25-Aug-2010 Felipe Pena <felipe@php.net> - Fixed bug #52699 (PDO bindValue writes long int 32bit enum)
/php-src/ext/pdo/pdo_stmt.c
cbe9f57 25-Aug-2010 Felipe Pena <felipe@php.net> - Fixed bug #52699 (PDO bindValue writes long int 32bit enum)
/php-src/ext/pdo/pdo_stmt.c
7b9fe96 29-Jul-2010 Felipe Pena <felipe@php.net> - Fixed bug #52487 (PDO::FETCH_INTO leaks memory)
/php-src/ext/pdo/pdo_stmt.c
e3ddef5 29-Jul-2010 Felipe Pena <felipe@php.net> - Fixed bug #52487 (PDO::FETCH_INTO leaks memory)
/php-src/ext/pdo/pdo_stmt.c
a721000 16-Jun-2010 Felipe Pena <felipe@php.net> - Fix crash when calling a method of a class that inherits PDOStatement if instantiated directly
/php-src/ext/pdo/pdo_stmt.c
d596ea7 16-Jun-2010 Felipe Pena <felipe@php.net> - Fix crash when calling a method of a class that inherits PDOStatement if instantiated directly
/php-src/ext/pdo/pdo_stmt.c
9f67894 02-Jun-2010 Felipe Pena <felipe@php.net> - Removed clone_obj from PDORow object handlers, as zend_objects_store_clone_obj requires a clone handler (ce->clone == NULL -> error) and it is not supplied, hence it is being useless and leading ReflectionClass::isCloneable() to give false positive information
/php-src/ext/pdo/pdo_stmt.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-src/ext/pdo/pdo_stmt.c
77b2e54 06-May-2010 Dmitry Stogov <dmitry@php.net> Fixed PDO objects binary incompatibility
/php-src/ext/pdo/pdo_stmt.c
8f128b2 27-Apr-2010 Pierrick Charron <pierrick@php.net> Fixed bug #51670 getColumnMeta causes segfault when re-executing query after calling nextRowset
/php-src/ext/pdo/pdo_stmt.c
1892d92 27-Apr-2010 Pierrick Charron <pierrick@php.net> Fixed bug #51670 getColumnMeta causes segfault when re-executing query after calling nextRowset
/php-src/ext/pdo/pdo_stmt.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-src/ext/pdo/pdo_stmt.c
ed03634 11-Feb-2010 Johannes Schlüter <johannes@php.net> Revert 290786: Fixed bug #49521 (PDO fetchObject sets values before calling
constructor)
/php-src/ext/pdo/pdo_stmt.c
9ba1e81 03-Jan-2010 Sebastian Bergmann <sebastian@php.net> sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
/php-src/ext/pdo/pdo_stmt.c
286f36e 14-Dec-2009 Felipe Pena <felipe@php.net> - Fixed memory leak when E_STRICT message is getted
/php-src/ext/pdo/pdo_stmt.c
7d46431 14-Dec-2009 Pierrick Charron <pierrick@php.net> - Fixed bug #50458 (PDO::FETCH_FUNC fails with Closures)
/php-src/ext/pdo/pdo_stmt.c
5eae703 11-Dec-2009 Felipe Pena <felipe@php.net> - Fixed bug #50445 (PDO-ODBC stored procedure call from Solaris 64-bit causes seg fault).
(Original patch by davbrown4 at yahoo dot com)
/php-src/ext/pdo/pdo_stmt.c
a94558c 08-Dec-2009 Felipe Pena <felipe@php.net> - Added MAKE_COPY_ZVAL(ppzv, pzv) macro
/php-src/ext/pdo/pdo_stmt.c
e2efe4b 03-Dec-2009 Pierrick Charron <pierrick@php.net> Fixed bug #45120 (PDOStatement->execute() returns true then false for same statement).
/php-src/ext/pdo/pdo_stmt.c
4bafbf5 15-Nov-2009 Felipe Pena <felipe@php.net> - Fixed bug #49521 (PDO fetchObject sets values before calling constructor)
(patch by Pierrick)
/php-src/ext/pdo/pdo_stmt.c
b394a75 12-Oct-2009 Felipe Pena <felipe@php.net> - Fixed PDORow and PDOStatement crashes when instantiating throught Reflection
/php-src/ext/pdo/pdo_stmt.c
2adf42f 16-Jul-2009 Felipe Pena <felipe@php.net> - Removed trailing zeros on double to string conversion (noticed on #48924)
/php-src/ext/pdo/pdo_stmt.c
0b576f6 23-Apr-2009 Matteo Beccati <mbeccati@php.net> MFH:
- Reverted previous fix for bug #46274 and properly fixed it
- Fixed bug #48060
# Also added tests for pdo_oci as it's the only other driver currently
# using streams: no regression found
/php-src/ext/pdo/pdo_stmt.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-src/ext/pdo/pdo_stmt.c
861d512 23-Mar-2009 Felipe Pena <felipe@php.net> MFH:
- Fixed bug #44409 (PDO::FETCH_SERIALIZE calls __construct())
Patch by: matteo at beccati dot com
/php-src/ext/pdo/pdo_stmt.c
cc34210 12-Mar-2009 Andrei Zmievski <andrei@php.net> MFH
/php-src/ext/pdo/pdo_stmt.c
08659c2 31-Dec-2008 Sebastian Bergmann <sebastian@php.net> MFH: Bump copyright year, 3 of 3.
/php-src/ext/pdo/pdo_stmt.c
f2f7ed4 12-Dec-2008 Nuno Lopes <nlopess@php.net> we do not need the strndup() now that php_stream_printf() handles non-null terminated strings correctly
/php-src/ext/pdo/pdo_stmt.c
0594dd9 11-Dec-2008 Ilia Alshanetsky <iliaa@php.net> Fixed a possible corruption inside PDOStatement::debugDumpParams()
/php-src/ext/pdo/pdo_stmt.c
b9653b8 03-Dec-2008 Antony Dovgal <tony2001@php.net> MFH
/php-src/ext/pdo/pdo_stmt.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-src/ext/pdo/pdo_stmt.c
fc2fb50 17-Nov-2008 Felipe Pena <felipe@php.net> - MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro
/php-src/ext/pdo/pdo_stmt.c
c810332 13-Nov-2008 Pierre Joye <pajoye@php.net> - MFH: declaration goes first...
/php-src/ext/pdo/pdo_stmt.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-src/ext/pdo/pdo_stmt.c
a912d80 05-Nov-2008 Felipe Pena <felipe@php.net> MFH:
- Fixed wrong check
- Improved test
/php-src/ext/pdo/pdo_stmt.c
a5e72fd 03-Nov-2008 Felipe Pena <felipe@php.net> - MFH: Improved fix
/php-src/ext/pdo/pdo_stmt.c
27965c9 03-Nov-2008 Felipe Pena <felipe@php.net> MFH:
- Fixed endless loop in PDOStatement::debugDumpParams()
patch by: Jonah H. Harris <jonah.harris at gmail dot com>
/php-src/ext/pdo/pdo_stmt.c
e0feded 03-Nov-2008 Felipe Pena <felipe@php.net> - MFH: Fixed bug #44327 (PDORow::queryString property & numeric offsets / Crash)
/php-src/ext/pdo/pdo_stmt.c
7a37fa2 02-Nov-2008 Felipe Pena <felipe@php.net> - Revert ZEND_BEGIN_ARG_INFO change
/php-src/ext/pdo/pdo_stmt.c
df10005 24-Oct-2008 Felipe Pena <felipe@php.net> - MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro
/php-src/ext/pdo/pdo_stmt.c
84be2eb 14-Oct-2008 Felipe Pena <felipe@php.net> - MFH: Fixed bug #46292 (PDO::setFetchMode() shouldn't requires the 2nd arg when using FETCH_CLASSTYPE)
/php-src/ext/pdo/pdo_stmt.c
e90d487 12-Oct-2008 Felipe Pena <felipe@php.net> - Removed unnecessary strcmp call (thanks Tony)
/php-src/ext/pdo/pdo_stmt.c
d2d4e04 12-Oct-2008 Felipe Pena <felipe@php.net> - Complete the fix for #46274, and tests
/php-src/ext/pdo/pdo_stmt.c
86f0b45 10-Oct-2008 Felipe Pena <felipe@php.net> - MFH: Static'fication
/php-src/ext/pdo/pdo_stmt.c
a3c8772 10-Oct-2008 Felipe Pena <felipe@php.net> MFH:
- Fixed bug #46139 (PDOStatement->setFetchMode() forgets FETCH_PROPS_LATE)
Initial patch by: chsc at peytz dot dk
/php-src/ext/pdo/pdo_stmt.c
6bc9869 23-Sep-2008 Felipe Pena <felipe@php.net> - MFH: Fixed bug #46157 (PDOStatement::fetchObject prototype error)
/php-src/ext/pdo/pdo_stmt.c
cf7384a 12-Aug-2008 Felipe Pena <felipe@php.net> - MFH: Constness (Added const qualifier to several function parameters)
/php-src/ext/pdo/pdo_stmt.c
e304515 02-Aug-2008 Felipe Pena <felipe@php.net> - MFH: Added parameter TSRMLS_DC in zend_is_callable()
/php-src/ext/pdo/pdo_stmt.c
ac68c41 25-Jul-2008 Dmitry Stogov <dmitry@php.net> Fixed support for static methods
/php-src/ext/pdo/pdo_stmt.c
a46319d 25-Jul-2008 Antony Dovgal <tony2001@php.net> fix typos
/php-src/ext/pdo/pdo_stmt.c
691d4a6 25-Jul-2008 Dmitry Stogov <dmitry@php.net> Fixed uninitialised data
/php-src/ext/pdo/pdo_stmt.c
be0793d 21-Jul-2008 Johannes Schlüter <johannes@php.net> MFH: 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.
/php-src/ext/pdo/pdo_stmt.c
f6cc283 14-May-2008 Felipe Pena <felipe@php.net> - MFH: Add check for avoid segfault when trying instantiate PDORow manually
/php-src/ext/pdo/pdo_stmt.c
84a8bb0 10-Mar-2008 Felipe Pena <felipe@php.net> MFH: New way for check void parameters
/php-src/ext/pdo/pdo_stmt.c
1aa32af 03-Mar-2008 Johannes Schlüter <johannes@php.net> MFH: Fix get_parent_class() of PDORow instances
/php-src/ext/pdo/pdo_stmt.c
43bcf75 26-Feb-2008 Ilia Alshanetsky <iliaa@php.net> Better fix for bug #44189
/php-src/ext/pdo/pdo_stmt.c
e0388c5 24-Feb-2008 Ilia Alshanetsky <iliaa@php.net> Fixed bug #44200 (A crash in PDO when no bound targets exists and yet
bound parameters are present)
/php-src/ext/pdo/pdo_stmt.c
3101edf 20-Feb-2008 Ilia Alshanetsky <iliaa@php.net> Fixed bug #44171 (Invalid FETCH_COLUMN index does not raise an error)
/php-src/ext/pdo/pdo_stmt.c
40dc004 14-Jan-2008 Ilia Alshanetsky <iliaa@php.net> Missing patch bit from the FETCH_GROUP fix
/php-src/ext/pdo/pdo_stmt.c
fa1e1d2 11-Jan-2008 Ilia Alshanetsky <iliaa@php.net> Fixed a bug with PDO::FETCH_COLUMN|PDO::FETCH_GROUP mode when a column # by
which to group by data is specified.
/php-src/ext/pdo/pdo_stmt.c
d1dded8 31-Dec-2007 Sebastian Bergmann <sebastian@php.net> MFH: Bump copyright year, 2 of 2.
/php-src/ext/pdo/pdo_stmt.c
204f9e1 20-Nov-2007 Ilia Alshanetsky <iliaa@php.net> Adjusted fix for bug #42978
/php-src/ext/pdo/pdo_stmt.c
48878f2 20-Nov-2007 Ilia Alshanetsky <iliaa@php.net> Fixed bug #42978 (mismatch between number of bound params and values causes
a crash in pdo_pgsql)
/php-src/ext/pdo/pdo_stmt.c
548c25e 31-Oct-2007 Ilia Alshanetsky <iliaa@php.net> Fixed bug #43139 PDO ignores ATTR_DEFAULT_FETCH_MODE in some cases with fetchAll()
/php-src/ext/pdo/pdo_stmt.c
3762dfc 11-Oct-2007 Ilia Alshanetsky <iliaa@php.net> Fixed bug #42917 (PDO::FETCH_KEY_PAIR doesn't work with setFetchMode)
/php-src/ext/pdo/pdo_stmt.c
1042901 08-Oct-2007 Yiduo (David) Wang <davidw@php.net> MFH: stmt->fetch.func.values is not a zval and should not be freed with FREE_ZVAL
/php-src/ext/pdo/pdo_stmt.c
4b4d634 07-Oct-2007 Yiduo (David) Wang <davidw@php.net> MFH: Added macros for managing zval refcounts and is_ref statuses
/php-src/ext/pdo/pdo_stmt.c
6c810b0 27-Sep-2007 Dmitry Stogov <dmitry@php.net> Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
/php-src/ext/pdo/pdo_stmt.c
1f45d49 12-Sep-2007 Stanislav Malyshev <stas@php.net> fix crash if stream is empty and reader function sets buffer as null
/php-src/ext/pdo/pdo_stmt.c
2fc92c9 30-Aug-2007 Hannes Magnusson <bjori@php.net> - Fixed bug #42452 (PDO classes do not expose Reflection API information)
- Fixed tests
/php-src/ext/pdo/pdo_stmt.c
c72d39f 31-Jul-2007 Ilia Alshanetsky <iliaa@php.net> Fixed bug #41971 (PDOStatement::fetch and PDOStatement::setFetchMode causes
unexpected behavior).
/php-src/ext/pdo/pdo_stmt.c
20c4198 22-Jul-2007 Ilia Alshanetsky <iliaa@php.net> Added test for KEY_PAIR code and fixed KEY_PAIR detection code
/php-src/ext/pdo/pdo_stmt.c
285316f 22-Jul-2007 Ilia Alshanetsky <iliaa@php.net> Fixed PDO_FETCH_KEY_PAIR implementation for fetchAll()
/php-src/ext/pdo/pdo_stmt.c
dc1c6f7 26-Jun-2007 Ilia Alshanetsky <iliaa@php.net> Fixed bug #41698 (float parameters truncated to integer in prepared
statements).
/php-src/ext/pdo/pdo_stmt.c
5e7b464 16-May-2007 Antony Dovgal <tony2001@php.net> typofix
/php-src/ext/pdo/pdo_stmt.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-src/ext/pdo/pdo_stmt.c
9ab23a7 17-Apr-2007 Antony Dovgal <tony2001@php.net> fix leaks in row_get_properties()
thanks to Kellen Bombardier for noticing
/php-src/ext/pdo/pdo_stmt.c
c73225a 07-Mar-2007 Antony Dovgal <tony2001@php.net> MFH: fix #40727 (segfault in PDO when failed to bind parameters)
/php-src/ext/pdo/pdo_stmt.c
58e96c4 27-Jan-2007 Antony Dovgal <tony2001@php.net> nullify param.parameter and avoid destroying it twice
/php-src/ext/pdo/pdo_stmt.c
4223aa4 01-Jan-2007 Sebastian Bergmann <sebastian@php.net> MFH: Bump year.
/php-src/ext/pdo/pdo_stmt.c
b7b0f4d 08-Dec-2006 Ilia Alshanetsky <iliaa@php.net> Fixed bug #39759 (Can't use stored procedures fetching multiple result
sets in pdo_mysql).
/php-src/ext/pdo/pdo_stmt.c
7fb3715 04-Dec-2006 Ilia Alshanetsky <iliaa@php.net> Fixed bug #38319 (Remove bogus warnings from persistent PDO connections).
/php-src/ext/pdo/pdo_stmt.c
2d4b8e1 28-Nov-2006 Ilia Alshanetsky <iliaa@php.net> Fixed bug #39656 (crash when calling fetch() on a PDO statment object
after closeCursor()).
/php-src/ext/pdo/pdo_stmt.c
887b348 07-Nov-2006 Ilia Alshanetsky <iliaa@php.net> Fixed bug #39398 (Booleans are not automatically translated to integers).
/php-src/ext/pdo/pdo_stmt.c
b7f2d8f 23-Aug-2006 Antony Dovgal <tony2001@php.net> MFH: fix possible crash in free_statement()
/php-src/ext/pdo/pdo_stmt.c
43fca8a 09-Aug-2006 Ilia Alshanetsky <iliaa@php.net> Fixed bug #38394 (PDO fails to recover from failed prepared statement
execution).
/php-src/ext/pdo/pdo_stmt.c
2b5a53d 01-Aug-2006 Ilia Alshanetsky <iliaa@php.net> Fixed memory leak on unused bound name parameters.
/php-src/ext/pdo/pdo_stmt.c
c6ace95 31-Jul-2006 Ilia Alshanetsky <iliaa@php.net> Fixed bug #37445 (Fixed crash in pdo_mysql resulting from premature object
destruction).
/php-src/ext/pdo/pdo_stmt.c
168f53b 30-Jul-2006 Antony Dovgal <tony2001@php.net> fix bug #38253 (PDO produces segfault with default fetch mode)
add test
/php-src/ext/pdo/pdo_stmt.c
3ff986e 20-Jun-2006 Antony Dovgal <tony2001@php.net> init vatiables
/php-src/ext/pdo/pdo_stmt.c
e4a3732 30-May-2006 Antony Dovgal <tony2001@php.net> no need to call zend_is_callable() if callable is known to be invalid
free fname on failure and plug possible leak
/php-src/ext/pdo/pdo_stmt.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-src/ext/pdo/pdo_stmt.c
ea53739 22-Apr-2006 Antony Dovgal <tony2001@php.net> MFB: don't segfault if an exception has been thrown from the fetch handler
/php-src/ext/pdo/pdo_stmt.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-src/ext/pdo/pdo_stmt.c
08e6fde 28-Mar-2006 Antony Dovgal <tony2001@php.net> prevent possible NULL dereference
/php-src/ext/pdo/pdo_stmt.c
fb7d5bd 27-Mar-2006 Wez Furlong <wez@php.net> The fix for #35332 caused #35671 (and thus PECL #6504).

Partially back out that fix and introduce an extra optional step for drivers to
canonicalize the "name" that is used for registering parameters.
/php-src/ext/pdo/pdo_stmt.c
4ccd89d 19-Mar-2006 Ilia Alshanetsky <iliaa@php.net> Properly calculate the size of the result array.
/php-src/ext/pdo/pdo_stmt.c
5c7c11c 18-Mar-2006 Antony Dovgal <tony2001@php.net> MFH: check stream for NULL before writing to it
remove unnecessary semicolons
/php-src/ext/pdo/pdo_stmt.c
92ba7cc 15-Mar-2006 Ilia Alshanetsky <iliaa@php.net> Fixed memory leak on unused bind var.
/php-src/ext/pdo/pdo_stmt.c
1d461a6 22-Jan-2006 Marcus Boerger <helly@php.net> - MFH
/php-src/ext/pdo/pdo_stmt.c
64a7e46 01-Jan-2006 Ilia Alshanetsky <iliaa@php.net> Fixed bug #35797 (segfault on PDOStatement::execute() with
zend.ze1_compatibility_mode = On).
/php-src/ext/pdo/pdo_stmt.c
5bd9322 01-Jan-2006 foobar <sniper@php.net> bump year and license version
/php-src/ext/pdo/pdo_stmt.c
b83a0eb 17-Dec-2005 Ilia Alshanetsky <iliaa@php.net> Fixed memory corruption when FETCH_LAZY mode is being used.
/php-src/ext/pdo/pdo_stmt.c
bdf9c4d 15-Dec-2005 Ilia Alshanetsky <iliaa@php.net> Fixed bug #35694 (Improved error message for invalid fetch mode).
/php-src/ext/pdo/pdo_stmt.c
3e669bc 06-Dec-2005 foobar <sniper@php.net> MFH: nuke php3 legacy
/php-src/ext/pdo/pdo_stmt.c
06c57b7 01-Dec-2005 Antony Dovgal <tony2001@php.net> tweak fix a bit
(by request of Wez)
/php-src/ext/pdo/pdo_stmt.c
59087fe 01-Dec-2005 Antony Dovgal <tony2001@php.net> MFH: fix #35508 (PDO fails when unknown fetch mode specified)
/php-src/ext/pdo/pdo_stmt.c
63dae4e 27-Nov-2005 Wez Furlong <wez@php.net> Fix #35431; LAZY fetch and fetchAll == crash.
Lazy makes no sense with fetchAll; disallow it.
/php-src/ext/pdo/pdo_stmt.c
6543134 27-Nov-2005 Antony Dovgal <tony2001@php.net> MFH: fix #35430 (PDO crashes on incorrect FETCH_FUNC use)
/php-src/ext/pdo/pdo_stmt.c
426fb96 26-Nov-2005 Wez Furlong <wez@php.net> Doh, need to canonicalize parameter names (by prefixing with :) before
attempting to remap them to positional args.
/php-src/ext/pdo/pdo_stmt.c
2618322 25-Nov-2005 Wez Furlong <wez@php.net> Bug: when stringify fetch mode is on, and the driver returns a string instead
of a stream for a LOB parameter, PDO would incorrectly return NULL for that
column.
/php-src/ext/pdo/pdo_stmt.c
c2d5371 25-Nov-2005 Wez Furlong <wez@php.net> Fix for #35332.
The problem is caused by the user mixing positional and named parameters.
PDO was blindly adding the parameters, unaware that the same parameters were
already allocated by position.

What we do now is register the parameter with the driver before adding it to
any hash. This gives the driver an opportunity to normalize the name and
parameter number. PDO can then ensure that only one entry is occupied in the
hash for a given parameter.
/php-src/ext/pdo/pdo_stmt.c
8e49bac 24-Nov-2005 Ilia Alshanetsky <iliaa@php.net> Fixed bug #35358 (Incorrect error messages for PDO class constants).
/php-src/ext/pdo/pdo_stmt.c
0bd9518 16-Nov-2005 Wez Furlong <wez@php.net> Closes PECL #5944; binding an invalid parameter can lead to segfaults.
Modified patch provided by curt@php.net.
/php-src/ext/pdo/pdo_stmt.c
8e2de51 07-Nov-2005 Ilia Alshanetsky <iliaa@php.net> Fixed bug #35135 (PDOStatment without related PDO object may crash).
/php-src/ext/pdo/pdo_stmt.c
24a80c3 31-Oct-2005 Marcus Boerger <helly@php.net> - Fix remaining memleaks
# all tests pass for me now for the first time in:
# pgsql, mysql, sqlite, sqlite2
/php-src/ext/pdo/pdo_stmt.c
b74698f 31-Oct-2005 Wez Furlong <wez@php.net> fix misinterpretation of data when overriding types via bindColumn.
Very slightly modified patch from Marcus.
/php-src/ext/pdo/pdo_stmt.c
40c24a6 31-Oct-2005 Wez Furlong <wez@php.net> improve test portability.
improve infrastructure for LOB support.
/php-src/ext/pdo/pdo_stmt.c
e7494a7 30-Oct-2005 Marcus Boerger <helly@php.net> - Fix memleak
/php-src/ext/pdo/pdo_stmt.c
0139cd0 29-Oct-2005 Wez Furlong <wez@php.net> Closes PECL Bug #5772; FETCH_FUNC broken for mixed case function names
/php-src/ext/pdo/pdo_stmt.c
7af8089 29-Oct-2005 Wez Furlong <wez@php.net> Closes PECL #5809; PDOStatement::execute(array(...)) would modify its args.
It should behave like bindValue() not bindParam().
/php-src/ext/pdo/pdo_stmt.c
6b46a44 25-Oct-2005 Ilia Alshanetsky <iliaa@php.net> Fixed compiler warning
/php-src/ext/pdo/pdo_stmt.c
a5fe980 10-Oct-2005 Ilia Alshanetsky <iliaa@php.net> MFH: Fixed bug #34809 (FETCH_INTO in PDO crashes without a destination object).
/php-src/ext/pdo/pdo_stmt.c
f3c44f6 21-Sep-2005 Marcus Boerger <helly@php.net> - MFH Fixed Bug #34590 User defined PDOStatement class can't implement
methods
- Reimplement Traversable interface
# If there is a problem with this i need a backtrace. As far as i can
# tell by gdb/valgrind/logic there is no error here. But missuse leads to
# the same error report casing the exclusion of interface Traversable.
/php-src/ext/pdo/pdo_stmt.c
8dc3e7b 11-Sep-2005 Wez Furlong <wez@php.net> When populating bound columns, override the returned type with the type
specified by the user in their bind.
/php-src/ext/pdo/pdo_stmt.c
81151a5 11-Sep-2005 Wez Furlong <wez@php.net> remove traversable interface; apparently it's not enough, and this stuff is too
magical to figure out wtf should be added.
/php-src/ext/pdo/pdo_stmt.c
9c252b4 10-Sep-2005 Wez Furlong <wez@php.net> closes PECL #5027; PDO_FETCH_NAMED not handled via setFetchMode().
/php-src/ext/pdo/pdo_stmt.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-src/ext/pdo/pdo_stmt.c
0730fa2 10-Sep-2005 Wez Furlong <wez@php.net> Add PDOStatement::bindValue(), which is similar to bindParam(), except that
it binds the value of the zval at the time it is called, rather than keeping
a reference to the zval and taking the value at execute() time.
/php-src/ext/pdo/pdo_stmt.c
248c30d 01-Sep-2005 George Schlossnagle <gschlossnagle@php.net> MFH. Protect against underflow - refs http://pecl.php.net/bugs/bug.php?id=5193
/php-src/ext/pdo/pdo_stmt.c
ecc34bd 03-Aug-2005 Ilia Alshanetsky <iliaa@php.net> Fixed memory leak.
/php-src/ext/pdo/pdo_stmt.c
bf85bf5 27-Jul-2005 Wez Furlong <wez@php.net> add sanity checks
/php-src/ext/pdo/pdo_stmt.c
d8eece2 22-Jul-2005 Marcus Boerger <helly@php.net> - Add missing part to make colon in parameter binding optional
/php-src/ext/pdo/pdo_stmt.c
cfe1dc3 22-Jul-2005 Wez Furlong <wez@php.net> this looks like a much better fix for refcounting/shutdown in lazy objects.
/php-src/ext/pdo/pdo_stmt.c
8825031 22-Jul-2005 Wez Furlong <wez@php.net> fix leak (ugh, this nuance gets me every time)
/php-src/ext/pdo/pdo_stmt.c
3560bb9 22-Jul-2005 Wez Furlong <wez@php.net> Fixes #33785 for me
/php-src/ext/pdo/pdo_stmt.c
be88f5a 18-Jul-2005 Wez Furlong <wez@php.net> make a start on a debugging function.
/php-src/ext/pdo/pdo_stmt.c
9240c5f 12-Jul-2005 Wez Furlong <wez@php.net> remember ? -> :pdox mapping so that binds by position can be mapped to names if required.
/php-src/ext/pdo/pdo_stmt.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-src/ext/pdo/pdo_stmt.c
b3aa24f 11-Jul-2005 Andrey Hristov <andrey@php.net> fix a segfault with the following script:
<?php
$dbh = new PDO('mysql:dbname=test;host=localhost', "root", "secret");
$what = 1;
$stmt = $dbh->prepare('select a, b, c from t123 where a=:what');
$stmt->bindParam(1, $what, PDO_PARAM_INT, 12);
var_dump($stmt->execute());
var_dump($stmt->fetchObject());
?>
/php-src/ext/pdo/pdo_stmt.c
d3b653e 09-Jul-2005 Wez Furlong <wez@php.net> Added:

proto bool PDOStatement::closeCursor()
Closes the cursor, leaving the statement ready for re-execution.

The purpose of the function is to free up the connection to the server so that
other queries may be issued, but leaving the statement in a state that it can
be re-executed.

This is implemented either as an optional driver specific method (allowing for
maximum efficiency), or as the generic PDO fallback if no driver specific
function is installed.

The PDO generic fallback is semantically the same as writing the following code
in your PHP script:

do {
while ($stmt->fetch())
;
if (!$stmt->nextRowset())
break;
} while (true);
/php-src/ext/pdo/pdo_stmt.c
38a02b6 08-Jul-2005 Wez Furlong <wez@php.net> For named-parameter-to-named-parameter rewrites, we need to map the original
names to the new names.
/php-src/ext/pdo/pdo_stmt.c
8f31f0c 08-Jul-2005 Wez Furlong <wez@php.net> Fix a shutdown order issue I saw in the pgsql driver. Hope this doesn't mess
up something in the OCI driver; I think I've been here before.
/php-src/ext/pdo/pdo_stmt.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-src/ext/pdo/pdo_stmt.c
86028ad 07-Jul-2005 Ilia Alshanetsky <iliaa@php.net> Return an empty array rather then FALSE in fetchAll() on no results.
/php-src/ext/pdo/pdo_stmt.c
68caaad 07-Jul-2005 Wez Furlong <wez@php.net> Fix bug in bindColumn() for drivers that implement native prepared statements
and that use the PDO rewriter to handle non-native parameter syntax.
/php-src/ext/pdo/pdo_stmt.c
0eb0b78 07-Jul-2005 Dmitry Stogov <dmitry@php.net> Fixed memory leaks
/php-src/ext/pdo/pdo_stmt.c
d4a1582 03-Jul-2005 Wez Furlong <wez@php.net> Add PDO_FETCH_NAMED; closes PECL #4641 by providing a way to access columns
by name, even when multiple columns have the same name:

$sql = "SELECT 1 a, 2 a, 3 b, 4 c, 5 d, 6 c, 7 a";
echo "$sql\n";
print_r($db->query($sql)->fetchAll(PDO_FETCH_NAMED));

Array
(
[0] => Array
(
[a] => Array
(
[0] => 1
[1] => 2
[2] => 7
)

[b] => 3
[c] => Array
(
[0] => 4
[1] => 6
)

[d] => 5
)
)

Also added two new attributes for use at prepare time;
PDO_ATTR_FETCH_TABLE_NAMES and PDO_ATTR_FETCH_CATALOG_NAMES instruct the driver
that the names of the columns that they return to PDO should include the table
and catalog names respectively. Both attributes may be used together or
independently. The catalog, table and column name components should be
separated by a . character.
/php-src/ext/pdo/pdo_stmt.c
6fd9e5a 02-Jul-2005 Ilia Alshanetsky <iliaa@php.net> Fixed memory leak on PDO_FETCH_OBJ.
/php-src/ext/pdo/pdo_stmt.c
cf5a6f8 08-Jun-2005 Dmitry Stogov <dmitry@php.net> Fixed zval_ptr_dtor(&return_value) on uninicialized zval
/php-src/ext/pdo/pdo_stmt.c
def27b9 17-May-2005 Ilia Alshanetsky <iliaa@php.net> As per PDO meeting on PHP|Tropics fetchSingle is being renamed to
fetchColumn and now supports specification of the column to retrieve.
/php-src/ext/pdo/pdo_stmt.c
d30a9ee 27-Apr-2005 Ilia Alshanetsky <iliaa@php.net> removed debug code.
/php-src/ext/pdo/pdo_stmt.c
7dd430f 22-Apr-2005 Wez Furlong <wez@php.net> fix bug #32795
/php-src/ext/pdo/pdo_stmt.c
d27be11 24-Mar-2005 Marcus Boerger <helly@php.net> - Fix null handling found by thies
/php-src/ext/pdo/pdo_stmt.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-src/ext/pdo/pdo_stmt.c
7b2bee1 19-Mar-2005 Marcus Boerger <helly@php.net> - Fix warnings by doing it the Zend way
/php-src/ext/pdo/pdo_stmt.c
5248f59 12-Mar-2005 Wez Furlong <wez@php.net> show list of PDO drivers in phpinfo.
Highlight a possible problem area; iterator leaks when used in foreach(),
at least with sqlite2 driver.
/php-src/ext/pdo/pdo_stmt.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-src/ext/pdo/pdo_stmt.c
de1d8b9 09-Mar-2005 Wez Furlong <wez@php.net> prep package file for release.
fix my favourite typo.
fix compile warnings
/php-src/ext/pdo/pdo_stmt.c
9c08e3c 07-Mar-2005 Marcus Boerger <helly@php.net> - Update signature
/php-src/ext/pdo/pdo_stmt.c
6ce9bcc 28-Feb-2005 Marcus Boerger <helly@php.net> - Need to drop ce until engine gets fixed
/php-src/ext/pdo/pdo_stmt.c
fdc3fce 28-Feb-2005 Marcus Boerger <helly@php.net> - Fix missapplied logic inversion
/php-src/ext/pdo/pdo_stmt.c
fef7cb4 27-Feb-2005 Marcus Boerger <helly@php.net> - Disable direct serializing for PHP 5.0
/php-src/ext/pdo/pdo_stmt.c
6b18b88 27-Feb-2005 Marcus Boerger <helly@php.net> - Allow default fetch mode to contain fetch flags
/php-src/ext/pdo/pdo_stmt.c
03a4a8c 27-Feb-2005 Marcus Boerger <helly@php.net> - Add some fetch column related capailities
- Add direct (classtype based) unserializing capabilities
/php-src/ext/pdo/pdo_stmt.c
40d180a 23-Feb-2005 Marcus Boerger <helly@php.net> - Reorganize ctor_args handling (fixes some bugs)
/php-src/ext/pdo/pdo_stmt.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-src/ext/pdo/pdo_stmt.c
d56ce00 20-Feb-2005 Marcus Boerger <helly@php.net> - Add fetch flag PDO_FETCH_CLASSTYPE
/php-src/ext/pdo/pdo_stmt.c
3239a56 20-Feb-2005 Marcus Boerger <helly@php.net> - Only call the ctor once
/php-src/ext/pdo/pdo_stmt.c
5a26203 20-Feb-2005 Marcus Boerger <helly@php.net> - Fix memleak and optimize PDO_FETCH_CLASS
/php-src/ext/pdo/pdo_stmt.c
883ee83 20-Feb-2005 Marcus Boerger <helly@php.net> - Call ctor after initializing the props like regular db exts do
/php-src/ext/pdo/pdo_stmt.c
07a8ea2 20-Feb-2005 Marcus Boerger <helly@php.net> - Need to specify class_entry in PDO_FETCH_CLASS mode
/php-src/ext/pdo/pdo_stmt.c
b788dc9 19-Feb-2005 Marcus Boerger <helly@php.net> - Add fetch mode PDO_FETCH_UNIQUE
/php-src/ext/pdo/pdo_stmt.c
a452a44 19-Feb-2005 Marcus Boerger <helly@php.net> - Simplify
/php-src/ext/pdo/pdo_stmt.c
474fcab 19-Feb-2005 Marcus Boerger <helly@php.net> - Add PDO_FETCH_GROUP to fetchAll()
/php-src/ext/pdo/pdo_stmt.c
41674da 19-Feb-2005 Marcus Boerger <helly@php.net> - Add full PDO_FETCH_CLASS capabilities to fetchAll()
/php-src/ext/pdo/pdo_stmt.c
e6a5ebb 19-Feb-2005 Marcus Boerger <helly@php.net> - Default to stdClass in PDO_FETCH_CLASS mode if no classname is given
/php-src/ext/pdo/pdo_stmt.c
f860c70 13-Feb-2005 Marcus Boerger <helly@php.net> - In fetch mode PDO_FETCH_CLASS handle constructor args
- Add PDOStatement::fetchObject
/php-src/ext/pdo/pdo_stmt.c
81999fd 13-Feb-2005 Wez Furlong <wez@php.net> Fix variable declaration
/php-src/ext/pdo/pdo_stmt.c
0da6a84 13-Feb-2005 Wez Furlong <wez@php.net> implement mapping of :name to ? parameters for drivers that only support ?
placeholders.
The current restriction is that you may not use the same named parameter
more than one in a given query, as there is a danger of scary things happen
with the zval if it gets bound multiple times.
/php-src/ext/pdo/pdo_stmt.c
1b3dd5d 09-Feb-2005 Ilia Alshanetsky <iliaa@php.net> remove unused vars.
/php-src/ext/pdo/pdo_stmt.c
36e3ea8 07-Feb-2005 Wez Furlong <wez@php.net> add input/output parameter type flag
/php-src/ext/pdo/pdo_stmt.c
ccf0a6a 06-Feb-2005 Wez Furlong <wez@php.net> add a caller_frees parameter to get_col() to allow drivers that need
to allocate data on demand to do so without worrying about cleaning it up.

Spec out how LOB parameters are returned.
/php-src/ext/pdo/pdo_stmt.c
e3ba31e 06-Feb-2005 Wez Furlong <wez@php.net> better handling of pdo-level errors
/php-src/ext/pdo/pdo_stmt.c
b2126a8 06-Feb-2005 Wez Furlong <wez@php.net> This will probably fix PECL Bug #3273
/php-src/ext/pdo/pdo_stmt.c
64e8c31 05-Feb-2005 Edin Kadribasic <edink@php.net> Return lobs as strings for now
/php-src/ext/pdo/pdo_stmt.c
15e7542 05-Feb-2005 Wez Furlong <wez@php.net> pass param type to quoter functions
/php-src/ext/pdo/pdo_stmt.c
6ddbfa0 21-Jan-2005 Wez Furlong <wez@php.net> Revise query parser so that it can rewrite from one bind syntax to another.
Expose it as PDO_API. No drivers utilize this feature yet.
/php-src/ext/pdo/pdo_stmt.c
a39d50c 19-Jan-2005 Wez Furlong <wez@php.net> don't propogate an unspecified length to the driver.
Drivers will used a 0 length as a hint that the parameter is an in-out or out
parameter.
/php-src/ext/pdo/pdo_stmt.c
a536e31 19-Jan-2005 Wez Furlong <wez@php.net> leak/segv less
/php-src/ext/pdo/pdo_stmt.c
544d618 19-Jan-2005 Wez Furlong <wez@php.net> proto bool PDOStatement::nextRowset()

Advances to the next rowset in a multi-rowset statement handle. Returns true if
it succeded, false otherwise
/php-src/ext/pdo/pdo_stmt.c
a9d9854 18-Jan-2005 Wez Furlong <wez@php.net> Allow drivers to select bind emulation on a per statement basis
/php-src/ext/pdo/pdo_stmt.c
8b35436 18-Jan-2005 Wez Furlong <wez@php.net> remove error and hook up rowCount
/php-src/ext/pdo/pdo_stmt.c
37ea5fb 17-Jan-2005 Wez Furlong <wez@php.net> Tidy up driver specific method handling
/php-src/ext/pdo/pdo_stmt.c
dd842e4 12-Jan-2005 Wez Furlong <wez@php.net> API support for scrollable cursors
/php-src/ext/pdo/pdo_stmt.c
076bc75 12-Jan-2005 Wez Furlong <wez@php.net> add theoretical support for returning ints as ints and bools as bools.
individual drivers need to support returning data in these formats.
/php-src/ext/pdo/pdo_stmt.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-src/ext/pdo/pdo_stmt.c
7318693 27-Dec-2004 Wez Furlong <wez@php.net> more get_method signature changes
/php-src/ext/pdo/pdo_stmt.c
dbd7175 28-Oct-2004 Marcus Boerger <helly@php.net> - TSRM Fix
/php-src/ext/pdo/pdo_stmt.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-src/ext/pdo/pdo_stmt.c
eb0cd48 26-Sep-2004 Wez Furlong <wez@php.net> Add rough cut at fetching meta data.
/php-src/ext/pdo/pdo_stmt.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-src/ext/pdo/pdo_stmt.c
905fbfd 12-Jul-2004 Ilia Alshanetsky <iliaa@php.net> Added missing constant and correct bound column retrieval. When bound
columns are specified only return status (TRUE/FALSE) indicator.
/php-src/ext/pdo/pdo_stmt.c
41b639f 09-Jul-2004 Ilia Alshanetsky <iliaa@php.net> Fixed function proto.
/php-src/ext/pdo/pdo_stmt.c
2ba792c 05-Jul-2004 Ilia Alshanetsky <iliaa@php.net> Don't use alloca() where it can reached by the users.
/php-src/ext/pdo/pdo_stmt.c
f913958 15-Jun-2004 Ard Biesheuvel <abies@php.net> Un-revert param index fix
/php-src/ext/pdo/pdo_stmt.c
e48d127 15-Jun-2004 Ard Biesheuvel <abies@php.net> Revert (at Wez's request)
/php-src/ext/pdo/pdo_stmt.c
1d7a4ed 13-Jun-2004 Ard Biesheuvel <abies@php.net> Report param binding error
/php-src/ext/pdo/pdo_stmt.c
50ac5db 12-Jun-2004 Ard Biesheuvel <abies@php.net> Added double param type
Added param struct initialiser
Reversed param parsing order (long <=> string)
/php-src/ext/pdo/pdo_stmt.c
d2a8d5a 25-May-2004 Wez Furlong <wez@php.net> get/set attributes for statements
/php-src/ext/pdo/pdo_stmt.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-src/ext/pdo/pdo_stmt.c
cf75eb8 25-May-2004 Ilia Alshanetsky <iliaa@php.net> Cleanup.
/php-src/ext/pdo/pdo_stmt.c
402de24 25-May-2004 Ilia Alshanetsky <iliaa@php.net> One more leak down.
/php-src/ext/pdo/pdo_stmt.c
b7ecaca 25-May-2004 Ilia Alshanetsky <iliaa@php.net> More leak fixes.
/php-src/ext/pdo/pdo_stmt.c
0c762df 25-May-2004 Ilia Alshanetsky <iliaa@php.net> More possible leak fixes (Thanks Tony).
/php-src/ext/pdo/pdo_stmt.c
9280b88 25-May-2004 Ilia Alshanetsky <iliaa@php.net> One more memory leak.
/php-src/ext/pdo/pdo_stmt.c
d782abf 25-May-2004 Ilia Alshanetsky <iliaa@php.net> More leak fixes.
/php-src/ext/pdo/pdo_stmt.c
4d01a5c 21-May-2004 George Schlossnagle <gschlossnagle@php.net> ok, apprently we _don't_ want to count the nulls.
/php-src/ext/pdo/pdo_stmt.c
1ee89e1 21-May-2004 George Schlossnagle <gschlossnagle@php.net> remove debugging
/php-src/ext/pdo/pdo_stmt.c
518cf77 21-May-2004 George Schlossnagle <gschlossnagle@php.net> fix fubar'd emulated bindings
/php-src/ext/pdo/pdo_stmt.c
d8d7dd7 21-May-2004 Wez Furlong <wez@php.net> Allow lazy fetch to work with numeric offsets.
Fix named parameters...
/php-src/ext/pdo/pdo_stmt.c
8f5b212 21-May-2004 Wez Furlong <wez@php.net> store the name length in the same manner as it is stored in zvals
/php-src/ext/pdo/pdo_stmt.c
ed83c5b 21-May-2004 Wez Furlong <wez@php.net> Tidy up placeholder flags
/php-src/ext/pdo/pdo_stmt.c
bf48daa 21-May-2004 Wez Furlong <wez@php.net> Version 1 of PDO_FETCH_LAZY
/php-src/ext/pdo/pdo_stmt.c
f0a001a 20-May-2004 Wez Furlong <wez@php.net> Implement case folding of column names as a portability option.
/php-src/ext/pdo/pdo_stmt.c
e0ac3f6 20-May-2004 Wez Furlong <wez@php.net> Implement PDO_FETCH_OBJ

# todo (after initial release) - specify a particular class, reuse existing
# objects etc.
/php-src/ext/pdo/pdo_stmt.c
e155ad2 20-May-2004 George Schlossnagle <gschlossnagle@php.net> sigh... need to include the null byte in hash keys
/php-src/ext/pdo/pdo_stmt.c
d16625b 20-May-2004 George Schlossnagle <gschlossnagle@php.net> Support ? as a bind in emulated prepares

Throw informative error when pdo_parse_param fails
/php-src/ext/pdo/pdo_stmt.c
04ccc01 20-May-2004 Wez Furlong <wez@php.net> Add methods for error handling
/php-src/ext/pdo/pdo_stmt.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-src/ext/pdo/pdo_stmt.c
c98a99c 19-May-2004 Ilia Alshanetsky <iliaa@php.net> Added fetchAll and fetchSingle methods for data retrieval.
/php-src/ext/pdo/pdo_stmt.c
741e31b 19-May-2004 Ilia Alshanetsky <iliaa@php.net> Removed unused vars.
/php-src/ext/pdo/pdo_stmt.c
681ded1 19-May-2004 Sebastian Bergmann <sebastian@php.net> ZTS fix.
/php-src/ext/pdo/pdo_stmt.c
aecad9e 18-May-2004 Ilia Alshanetsky <iliaa@php.net> Fixed build.
/php-src/ext/pdo/pdo_stmt.c
cb1239a 18-May-2004 Ilia Alshanetsky <iliaa@php.net> Allow static builds.
/php-src/ext/pdo/pdo_stmt.c
f02fb4a 18-May-2004 George Schlossnagle <gschlossnagle@php.net> should be a strcmp, not a strncmp, thanks, wez
/php-src/ext/pdo/pdo_stmt.c
8233053 18-May-2004 George Schlossnagle <gschlossnagle@php.net> was leaking query_string's
/php-src/ext/pdo/pdo_stmt.c
5f4cfcb 18-May-2004 George Schlossnagle <gschlossnagle@php.net> support the read-only property 'queryString'
/php-src/ext/pdo/pdo_stmt.c
2a9fa24 18-May-2004 Wez Furlong <wez@php.net> Tweaks for win32
/php-src/ext/pdo/pdo_stmt.c
a97e1a6 18-May-2004 George Schlossnagle <gschlossnagle@php.net> handle binding/quoting of queries for drivers with emulated prepares
/php-src/ext/pdo/pdo_stmt.c
c9f736a 18-May-2004 Wez Furlong <wez@php.net> Skeleton for emulated prepare()
/php-src/ext/pdo/pdo_stmt.c
940c896 18-May-2004 Wez Furlong <wez@php.net> Quoting here leads to problems with databases that really support bound parameters.
We should do this conditionally based on the emulate_prepare flag.
/php-src/ext/pdo/pdo_stmt.c
2e36e9d 18-May-2004 George Schlossnagle <gschlossnagle@php.net> only rewrite tmp if quoter returns true
/php-src/ext/pdo/pdo_stmt.c
636cc3e 18-May-2004 George Schlossnagle <gschlossnagle@php.net> auto-quote values before binding them in at execute time
/php-src/ext/pdo/pdo_stmt.c
dd84731 17-May-2004 Wez Furlong <wez@php.net> Allow PDO to build as a self-contained extension.
Install headers so that other self-contained extensions may them.
/php-src/ext/pdo/pdo_stmt.c
79c513d 17-May-2004 Wez Furlong <wez@php.net> Some pedantic fixes for gcc.
/php-src/ext/pdo/pdo_stmt.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-src/ext/pdo/pdo_stmt.c