| a2045ff |
|
01-Jan-2013 |
Xinchen Hui <laruence@php.net> |
Happy New Year~
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 6284ef1 |
|
09-Oct-2012 |
Xinchen Hui <laruence@php.net> |
Fixed bug #63236 (Executable permission on various source files)
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| e4ca0ed |
|
01-Jan-2012 |
Felipe Pena <felipe@php.net> |
- Year++
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 127d7bc |
|
25-Sep-2011 |
Johannes Schlüter <johannes@php.net> |
- Fix bug #55776 (PDORow to session bug)
/PHP_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| f15452a |
|
22-Feb-2011 |
Ilia Alshanetsky <iliaa@php.net> |
Fixed compiler warning
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 927bf09 |
|
01-Jan-2011 |
Felipe Pena <felipe@php.net> |
- Year++
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| e6de920 |
|
15-Nov-2010 |
Felipe Pena <felipe@php.net> |
- Fix wrong argument to read_property call
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| e3ddef5 |
|
29-Jul-2010 |
Felipe Pena <felipe@php.net> |
- Fixed bug #52487 (PDO::FETCH_INTO leaks memory)
/PHP_5_3/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_5_3/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_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 286f36e |
|
14-Dec-2009 |
Felipe Pena <felipe@php.net> |
- Fixed memory leak when E_STRICT message is getted
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 7d46431 |
|
14-Dec-2009 |
Pierrick Charron <pierrick@php.net> |
- Fixed bug #50458 (PDO::FETCH_FUNC fails with Closures)
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| a94558c |
|
08-Dec-2009 |
Felipe Pena <felipe@php.net> |
- Added MAKE_COPY_ZVAL(ppzv, pzv) macro
/PHP_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| b394a75 |
|
12-Oct-2009 |
Felipe Pena <felipe@php.net> |
- Fixed PDORow and PDOStatement crashes when instantiating throught Reflection
/PHP_5_3/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_5_3/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_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| cc34210 |
|
12-Mar-2009 |
Andrei Zmievski <andrei@php.net> |
MFH
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 08659c2 |
|
31-Dec-2008 |
Sebastian Bergmann <sebastian@php.net> |
MFH: Bump copyright year, 3 of 3.
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 0594dd9 |
|
11-Dec-2008 |
Ilia Alshanetsky <iliaa@php.net> |
Fixed a possible corruption inside PDOStatement::debugDumpParams()
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| b9653b8 |
|
03-Dec-2008 |
Antony Dovgal <tony2001@php.net> |
MFH
/PHP_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| c810332 |
|
13-Nov-2008 |
Pierre Joye <pajoye@php.net> |
- MFH: declaration goes first...
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| a912d80 |
|
05-Nov-2008 |
Felipe Pena <felipe@php.net> |
MFH: - Fixed wrong check - Improved test
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| a5e72fd |
|
03-Nov-2008 |
Felipe Pena <felipe@php.net> |
- MFH: Improved fix
/PHP_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 7a37fa2 |
|
02-Nov-2008 |
Felipe Pena <felipe@php.net> |
- Revert ZEND_BEGIN_ARG_INFO change
/PHP_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| e90d487 |
|
12-Oct-2008 |
Felipe Pena <felipe@php.net> |
- Removed unnecessary strcmp call (thanks Tony)
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| d2d4e04 |
|
12-Oct-2008 |
Felipe Pena <felipe@php.net> |
- Complete the fix for #46274, and tests
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 86f0b45 |
|
10-Oct-2008 |
Felipe Pena <felipe@php.net> |
- MFH: Static'fication
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 6bc9869 |
|
23-Sep-2008 |
Felipe Pena <felipe@php.net> |
- MFH: Fixed bug #46157 (PDOStatement::fetchObject prototype error)
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| cf7384a |
|
12-Aug-2008 |
Felipe Pena <felipe@php.net> |
- MFH: Constness (Added const qualifier to several function parameters)
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| e304515 |
|
02-Aug-2008 |
Felipe Pena <felipe@php.net> |
- MFH: Added parameter TSRMLS_DC in zend_is_callable()
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| ac68c41 |
|
25-Jul-2008 |
Dmitry Stogov <dmitry@php.net> |
Fixed support for static methods
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| a46319d |
|
25-Jul-2008 |
Antony Dovgal <tony2001@php.net> |
fix typos
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 691d4a6 |
|
25-Jul-2008 |
Dmitry Stogov <dmitry@php.net> |
Fixed uninitialised data
/PHP_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 84a8bb0 |
|
10-Mar-2008 |
Felipe Pena <felipe@php.net> |
MFH: New way for check void parameters
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 1aa32af |
|
03-Mar-2008 |
Johannes Schlüter <johannes@php.net> |
MFH: Fix get_parent_class() of PDORow instances
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 43bcf75 |
|
26-Feb-2008 |
Ilia Alshanetsky <iliaa@php.net> |
Better fix for bug #44189
/PHP_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 40dc004 |
|
14-Jan-2008 |
Ilia Alshanetsky <iliaa@php.net> |
Missing patch bit from the FETCH_GROUP fix
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| d1dded8 |
|
31-Dec-2007 |
Sebastian Bergmann <sebastian@php.net> |
MFH: Bump copyright year, 2 of 2.
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 204f9e1 |
|
20-Nov-2007 |
Ilia Alshanetsky <iliaa@php.net> |
Adjusted fix for bug #42978
/PHP_5_3/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_5_3/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_5_3/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_5_3/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_5_3/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_5_3/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_5_3/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_5_3/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_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 285316f |
|
22-Jul-2007 |
Ilia Alshanetsky <iliaa@php.net> |
Fixed PDO_FETCH_KEY_PAIR implementation for fetchAll()
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 5e7b464 |
|
16-May-2007 |
Antony Dovgal <tony2001@php.net> |
typofix
/PHP_5_3/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_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 58e96c4 |
|
27-Jan-2007 |
Antony Dovgal <tony2001@php.net> |
nullify param.parameter and avoid destroying it twice
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 4223aa4 |
|
01-Jan-2007 |
Sebastian Bergmann <sebastian@php.net> |
MFH: Bump year.
/PHP_5_3/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_5_3/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_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| b7f2d8f |
|
23-Aug-2006 |
Antony Dovgal <tony2001@php.net> |
MFH: fix possible crash in free_statement()
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 2b5a53d |
|
01-Aug-2006 |
Ilia Alshanetsky <iliaa@php.net> |
Fixed memory leak on unused bound name parameters.
/PHP_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 3ff986e |
|
20-Jun-2006 |
Antony Dovgal <tony2001@php.net> |
init vatiables
/PHP_5_3/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_5_3/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_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 08e6fde |
|
28-Mar-2006 |
Antony Dovgal <tony2001@php.net> |
prevent possible NULL dereference
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 4ccd89d |
|
19-Mar-2006 |
Ilia Alshanetsky <iliaa@php.net> |
Properly calculate the size of the result array.
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 92ba7cc |
|
15-Mar-2006 |
Ilia Alshanetsky <iliaa@php.net> |
Fixed memory leak on unused bind var.
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 1d461a6 |
|
22-Jan-2006 |
Marcus Boerger <helly@php.net> |
- MFH
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 5bd9322 |
|
01-Jan-2006 |
foobar <sniper@php.net> |
bump year and license version
/PHP_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 3e669bc |
|
06-Dec-2005 |
foobar <sniper@php.net> |
MFH: nuke php3 legacy
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 06c57b7 |
|
01-Dec-2005 |
Antony Dovgal <tony2001@php.net> |
tweak fix a bit (by request of Wez)
/PHP_5_3/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_5_3/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_5_3/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_5_3/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_5_3/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_5_3/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_5_3/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_5_3/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_5_3/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_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 40c24a6 |
|
31-Oct-2005 |
Wez Furlong <wez@php.net> |
improve test portability. improve infrastructure for LOB support.
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| e7494a7 |
|
30-Oct-2005 |
Marcus Boerger <helly@php.net> |
- Fix memleak
/PHP_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 6b46a44 |
|
25-Oct-2005 |
Ilia Alshanetsky <iliaa@php.net> |
Fixed compiler warning
/PHP_5_3/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_5_3/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_5_3/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_5_3/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_5_3/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_5_3/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_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| ecc34bd |
|
03-Aug-2005 |
Ilia Alshanetsky <iliaa@php.net> |
Fixed memory leak.
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| bf85bf5 |
|
27-Jul-2005 |
Wez Furlong <wez@php.net> |
add sanity checks
/PHP_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 8825031 |
|
22-Jul-2005 |
Wez Furlong <wez@php.net> |
fix leak (ugh, this nuance gets me every time)
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 3560bb9 |
|
22-Jul-2005 |
Wez Furlong <wez@php.net> |
Fixes #33785 for me
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| be88f5a |
|
18-Jul-2005 |
Wez Furlong <wez@php.net> |
make a start on a debugging function.
/PHP_5_3/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_5_3/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_5_3/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_5_3/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_5_3/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_5_3/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_5_3/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_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 0eb0b78 |
|
07-Jul-2005 |
Dmitry Stogov <dmitry@php.net> |
Fixed memory leaks
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 6fd9e5a |
|
02-Jul-2005 |
Ilia Alshanetsky <iliaa@php.net> |
Fixed memory leak on PDO_FETCH_OBJ.
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| cf5a6f8 |
|
08-Jun-2005 |
Dmitry Stogov <dmitry@php.net> |
Fixed zval_ptr_dtor(&return_value) on uninicialized zval
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| d30a9ee |
|
27-Apr-2005 |
Ilia Alshanetsky <iliaa@php.net> |
removed debug code.
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 7dd430f |
|
22-Apr-2005 |
Wez Furlong <wez@php.net> |
fix bug #32795
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| d27be11 |
|
24-Mar-2005 |
Marcus Boerger <helly@php.net> |
- Fix null handling found by thies
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 7b2bee1 |
|
19-Mar-2005 |
Marcus Boerger <helly@php.net> |
- Fix warnings by doing it the Zend way
/PHP_5_3/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_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 9c08e3c |
|
07-Mar-2005 |
Marcus Boerger <helly@php.net> |
- Update signature
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 6ce9bcc |
|
28-Feb-2005 |
Marcus Boerger <helly@php.net> |
- Need to drop ce until engine gets fixed
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| fdc3fce |
|
28-Feb-2005 |
Marcus Boerger <helly@php.net> |
- Fix missapplied logic inversion
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| fef7cb4 |
|
27-Feb-2005 |
Marcus Boerger <helly@php.net> |
- Disable direct serializing for PHP 5.0
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 6b18b88 |
|
27-Feb-2005 |
Marcus Boerger <helly@php.net> |
- Allow default fetch mode to contain fetch flags
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 40d180a |
|
23-Feb-2005 |
Marcus Boerger <helly@php.net> |
- Reorganize ctor_args handling (fixes some bugs)
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| d56ce00 |
|
20-Feb-2005 |
Marcus Boerger <helly@php.net> |
- Add fetch flag PDO_FETCH_CLASSTYPE
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 3239a56 |
|
20-Feb-2005 |
Marcus Boerger <helly@php.net> |
- Only call the ctor once
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 5a26203 |
|
20-Feb-2005 |
Marcus Boerger <helly@php.net> |
- Fix memleak and optimize PDO_FETCH_CLASS
/PHP_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| b788dc9 |
|
19-Feb-2005 |
Marcus Boerger <helly@php.net> |
- Add fetch mode PDO_FETCH_UNIQUE
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| a452a44 |
|
19-Feb-2005 |
Marcus Boerger <helly@php.net> |
- Simplify
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 474fcab |
|
19-Feb-2005 |
Marcus Boerger <helly@php.net> |
- Add PDO_FETCH_GROUP to fetchAll()
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 41674da |
|
19-Feb-2005 |
Marcus Boerger <helly@php.net> |
- Add full PDO_FETCH_CLASS capabilities to fetchAll()
/PHP_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 81999fd |
|
13-Feb-2005 |
Wez Furlong <wez@php.net> |
Fix variable declaration
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 1b3dd5d |
|
09-Feb-2005 |
Ilia Alshanetsky <iliaa@php.net> |
remove unused vars.
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 36e3ea8 |
|
07-Feb-2005 |
Wez Furlong <wez@php.net> |
add input/output parameter type flag
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| e3ba31e |
|
06-Feb-2005 |
Wez Furlong <wez@php.net> |
better handling of pdo-level errors
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| b2126a8 |
|
06-Feb-2005 |
Wez Furlong <wez@php.net> |
This will probably fix PECL Bug #3273
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 64e8c31 |
|
05-Feb-2005 |
Edin Kadribasic <edink@php.net> |
Return lobs as strings for now
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 15e7542 |
|
05-Feb-2005 |
Wez Furlong <wez@php.net> |
pass param type to quoter functions
/PHP_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| a536e31 |
|
19-Jan-2005 |
Wez Furlong <wez@php.net> |
leak/segv less
/PHP_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 8b35436 |
|
18-Jan-2005 |
Wez Furlong <wez@php.net> |
remove error and hook up rowCount
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 37ea5fb |
|
17-Jan-2005 |
Wez Furlong <wez@php.net> |
Tidy up driver specific method handling
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| dd842e4 |
|
12-Jan-2005 |
Wez Furlong <wez@php.net> |
API support for scrollable cursors
/PHP_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 7318693 |
|
27-Dec-2004 |
Wez Furlong <wez@php.net> |
more get_method signature changes
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| dbd7175 |
|
28-Oct-2004 |
Marcus Boerger <helly@php.net> |
- TSRM Fix
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| eb0cd48 |
|
26-Sep-2004 |
Wez Furlong <wez@php.net> |
Add rough cut at fetching meta data.
/PHP_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 41b639f |
|
09-Jul-2004 |
Ilia Alshanetsky <iliaa@php.net> |
Fixed function proto.
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| f913958 |
|
15-Jun-2004 |
Ard Biesheuvel <abies@php.net> |
Un-revert param index fix
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| e48d127 |
|
15-Jun-2004 |
Ard Biesheuvel <abies@php.net> |
Revert (at Wez's request)
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 1d7a4ed |
|
13-Jun-2004 |
Ard Biesheuvel <abies@php.net> |
Report param binding error
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| d2a8d5a |
|
25-May-2004 |
Wez Furlong <wez@php.net> |
get/set attributes for statements
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| cf75eb8 |
|
25-May-2004 |
Ilia Alshanetsky <iliaa@php.net> |
Cleanup.
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 402de24 |
|
25-May-2004 |
Ilia Alshanetsky <iliaa@php.net> |
One more leak down.
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| b7ecaca |
|
25-May-2004 |
Ilia Alshanetsky <iliaa@php.net> |
More leak fixes.
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 0c762df |
|
25-May-2004 |
Ilia Alshanetsky <iliaa@php.net> |
More possible leak fixes (Thanks Tony).
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 9280b88 |
|
25-May-2004 |
Ilia Alshanetsky <iliaa@php.net> |
One more memory leak.
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| d782abf |
|
25-May-2004 |
Ilia Alshanetsky <iliaa@php.net> |
More leak fixes.
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 1ee89e1 |
|
21-May-2004 |
George Schlossnagle <gschlossnagle@php.net> |
remove debugging
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 518cf77 |
|
21-May-2004 |
George Schlossnagle <gschlossnagle@php.net> |
fix fubar'd emulated bindings
/PHP_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| ed83c5b |
|
21-May-2004 |
Wez Furlong <wez@php.net> |
Tidy up placeholder flags
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| bf48daa |
|
21-May-2004 |
Wez Furlong <wez@php.net> |
Version 1 of PDO_FETCH_LAZY
/PHP_5_3/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_5_3/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_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 04ccc01 |
|
20-May-2004 |
Wez Furlong <wez@php.net> |
Add methods for error handling
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| c98a99c |
|
19-May-2004 |
Ilia Alshanetsky <iliaa@php.net> |
Added fetchAll and fetchSingle methods for data retrieval.
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 741e31b |
|
19-May-2004 |
Ilia Alshanetsky <iliaa@php.net> |
Removed unused vars.
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 681ded1 |
|
19-May-2004 |
Sebastian Bergmann <sebastian@php.net> |
ZTS fix.
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| aecad9e |
|
18-May-2004 |
Ilia Alshanetsky <iliaa@php.net> |
Fixed build.
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| cb1239a |
|
18-May-2004 |
Ilia Alshanetsky <iliaa@php.net> |
Allow static builds.
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| f02fb4a |
|
18-May-2004 |
George Schlossnagle <gschlossnagle@php.net> |
should be a strcmp, not a strncmp, thanks, wez
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 8233053 |
|
18-May-2004 |
George Schlossnagle <gschlossnagle@php.net> |
was leaking query_string's
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 5f4cfcb |
|
18-May-2004 |
George Schlossnagle <gschlossnagle@php.net> |
support the read-only property 'queryString'
/PHP_5_3/ext/pdo/pdo_stmt.c
|
| 2a9fa24 |
|
18-May-2004 |
Wez Furlong <wez@php.net> |
Tweaks for win32
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| c9f736a |
|
18-May-2004 |
Wez Furlong <wez@php.net> |
Skeleton for emulated prepare()
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 2e36e9d |
|
18-May-2004 |
George Schlossnagle <gschlossnagle@php.net> |
only rewrite tmp if quoter returns true
/PHP_5_3/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_5_3/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_5_3/ext/pdo/pdo_stmt.c
|
| 79c513d |
|
17-May-2004 |
Wez Furlong <wez@php.net> |
Some pedantic fixes for gcc.
/PHP_5_3/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_5_3/ext/pdo/pdo_stmt.c
|