summaryrefslogtreecommitdiff
path: root/ext/pdo/php_pdo_int.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused Git attributes identPeter Kokot2018-07-251-2/+0
| | | | | | | | | | | | | | | The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
* Keep initialized object_handlers structures in read-only memory.Dmitry Stogov2018-03-141-1/+1
|
* year++Xinchen Hui2018-01-021-1/+1
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
|\ | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-1/+1
| |
| * bump yearXinchen Hui2015-01-151-1/+1
| |
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-12/+12
| |
* | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| |
* | Finished persistent PDO implementXinchen Hui2014-05-261-1/+1
| |
* | Refactor PDO (only compilable now)Xinchen Hui2014-04-221-2/+2
| |
* | Refactor PDO (incompleted)Xinchen Hui2014-04-161-3/+3
|/
* Bump yearXinchen Hui2014-01-031-1/+1
|
* Allow PDO drivers custom methods to trigger errors/exceptionsMatteo Beccati2013-06-041-13/+2
| | | | | | Moved a few definitions from php_pdo_int.h to a new php_pdo_error.h header file that can be included if drivers need PDO's own error handling to be triggered within custom methods (e.g. PDO::pgsqlLOBOpen).
* Happy New YearXinchen Hui2013-01-011-1/+1
|
* Merge branch 'PHP-5.4'Xinchen Hui2012-10-091-0/+0
|\
| * Fixed bug #63236 (Executable permission on various source files)Xinchen Hui2012-10-091-0/+0
| |
| * - Year++Felipe Pena2012-01-011-1/+1
| |
| * Fixes for variety of issues identified by coverity scanIlia Alshanetsky2011-08-071-1/+1
| |
| * Fix more signed 1-bit bitfield, and let's use strlcpy/strlcat instead for theseRasmus Lerdorf2011-08-071-1/+1
| | | | | | | | | | static string copies
| * Not an issue here, but a good habit to follow consistently. Never use ↵Rasmus Lerdorf2011-08-071-1/+1
| | | | | | | | strcpy/strcat.
| * - Year++Felipe Pena2011-01-011-1/+1
| |
* | - Year++Felipe Pena2012-01-011-1/+1
| |
* | Fix more signed 1-bit bitfield, and let's use strlcpy/strlcat instead for theseRasmus Lerdorf2011-08-071-1/+1
| | | | | | | | | | static string copies
* | Not an issue here, but a good habit to follow consistently. Never use ↵Rasmus Lerdorf2011-08-071-1/+1
| | | | | | | | strcpy/strcat.
* | - Year++Felipe Pena2011-01-011-1/+1
|/
* sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-031-1/+1
|
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)Dmitry Stogov2007-09-271-3/+3
|
* MFH: Bump year.Sebastian Bergmann2007-01-011-1/+1
|
* - MFHMarcus Boerger2006-05-111-1/+1
| | | | | | | | . 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).
* bump year and license versionfoobar2006-01-011-3/+3
|
* MFH: nuke php3 legacyfoobar2005-12-061-3/+3
|
* Fix Bug #34687; error information from query() not passed backWez Furlong2005-10-021-1/+7
|
* - MFH PDOException baseMarcus Boerger2005-10-021-0/+1
|
* Declare functions used by driver as PDO_API in php_pdo_driver.hEdin Kadribasic2005-09-241-1/+0
|
* fix build (declare extern HashTable pdo_driver_hash)Antony Dovgal2005-09-181-0/+2
|
* - Simplify code (only implement handlers that are necessary)Marcus Boerger2005-03-211-0/+3
| | | | | | | | | - 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.
* - Fix warnings by doing it the Zend wayMarcus Boerger2005-03-191-2/+2
|
* prep package file for release.Wez Furlong2005-03-091-2/+2
| | | | | | fix my favourite typo. fix compile warnings
* - Allow to derive PDOStatementMarcus Boerger2005-02-221-2/+2
| | | | | | | - 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
* better handling of pdo-level errorsWez Furlong2005-02-061-0/+1
|
* don't raise errors for the no-error caseWez Furlong2005-01-171-2/+2
|
* API support for scrollable cursorsWez Furlong2005-01-121-1/+1
|
* implement SQLSTATE style error codes.Wez Furlong2005-01-071-2/+7
| | | | | | | | | | 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.
* don't blow up under HEADWez Furlong2004-12-261-0/+1
|
* Synopsis:Wez Furlong2004-10-271-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Implement persistent connectionsWez Furlong2004-09-231-0/+2
| | | | | $dbh->exec --> $dbh->query