summaryrefslogtreecommitdiff
path: root/ext/pdo
Commit message (Collapse)AuthorAgeFilesLines
* Avoid incomplete zend_internal_function initialization.Dmitry Stogov2016-01-131-20/+21
|
* Do not edit the value in place (might be relates to #71261)Xinchen Hui2016-01-041-13/+12
|
* Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-0110-10/+10
|\ | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-0110-10/+10
| |
| * Fix bug #64172Daniel Persson2015-10-182-55/+142
| | | | | | | | | | Check if the SQLSTATE error code is equal to PDO_ERR_NONE before we ask the driver. And if no error is reported skip the extra call to the driver.
* | Fix setting of empty string resource.Fabian Franz2015-11-052-4/+2
| |
* | update the actual sql parser file for #70861Anatol Belski2015-11-051-0/+4
| |
* | Fix bug #70861 Segmentation fault in pdo_parse_params() during Drupal 8 test ↵Anatol Belski2015-11-051-0/+4
| | | | | | | | suite
* | Fix bug #64172Daniel Persson2015-10-182-0/+87
| | | | | | | | | | Check if the SQLSTATE error code is equal to PDO_ERR_NONE before we ask the driver. And if no error is reported skip the extra call to the driver.
* | Cleanup: removed deprecated commented code. Incorrect zval_dtor() usage ↵Dmitry Stogov2015-09-232-17/+3
| | | | | | | | replaced by zval_dtor_ptr().
* | Merge branch 'PHP-5.6'Xinchen Hui2015-08-302-8/+5
|\ \ | |/ | | | | | | | | Conflicts: ext/pdo/pdo_dbh.c ext/pdo/php_pdo_driver.h
| * Fixed bug #70389 (PDO constructor changes unrelated variables)Xinchen Hui2015-08-302-4/+20
| |
| * bump yearXinchen Hui2015-01-1510-10/+10
| |
| * Merge branch 'PHP-5.5' into PHP-5.6Julien Pauli2014-11-291-9/+0
| |\ | | | | | | | | | | | | * PHP-5.5: PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION > 1
| | * Merge branch 'pull-request/656' into PHP-5.5Julien Pauli2014-11-291-9/+0
| | |\ | | | | | | | | | | | | | | | | * pull-request/656: PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION > 1
| | | * PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION > 1Popa Marius Adrian2014-11-291-9/+0
| | | | | | | | | | | | | | | | cleanup and PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION > 1
| * | | typo fixes - https://github.com/vlajos/misspell_fixerVeres Lajos2014-11-233-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ext/ftp/ftp.h ext/pcre/pcrelib/pcre_printint.c ext/pcre/pcrelib/sljit/sljitLir.c ext/pcre/pcrelib/sljit/sljitLir.h ext/pcre/pcrelib/sljit/sljitNativeARM_32.c ext/pcre/pcrelib/sljit/sljitNativeTILEGX_64.c ext/pgsql/pgsql.c ext/phar/func_interceptors.c ext/soap/soap.c ext/standard/image.c
* | | | Fixed bug #70221 (persistent sqlite connection + custom function segfaults)Xinchen Hui2015-08-101-2/+12
| | | |
* | | | Add Oracle syntax (Senthil)Christopher Jones2015-07-101-0/+3
| | | |
* | | | Switch position of ce in exception ce variable namesAaron Piotrowski2015-07-031-1/+1
| | | |
* | | | Change zend_exception_get_default() to zend_exception_ceAaron Piotrowski2015-07-031-1/+1
| | | |
* | | | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-304-27/+27
| | | | | | | | | | | | | | | | semantick changes).
* | | | Merge branch 'master' into throwable-interfaceAaron Piotrowski2015-06-141-0/+9
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # Zend/zend_language_scanner.c # Zend/zend_language_scanner.l # ext/simplexml/tests/SimpleXMLElement_xpath.phpt
| * | | | Expose pdo stmt ctor args to gcNikita Popov2015-05-201-0/+9
| | | | | | | | | | | | | | | | | | | | These very commonly contain a reference to the PDO object itself.
* | | | | Update exception names in tests after formatting changes.Aaron Piotrowski2015-05-173-3/+3
|/ / / /
* | | | Tweak uncaught exception message displayNikita Popov2015-05-175-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implements a reduced variant of #1226 with just the following change: -Fatal error: Uncaught exception 'EngineException' with message 'Call to private method foo::bar() from context ''' in %s:%d +Fatal error: Uncaught EngineException: Call to private method foo::bar() from context '' in %s:%d The '' wrapper around messages is very weird if the exception message itself contains ''. Futhermore having the message wrapped in '' doesn't work for the "and defined" suffix of TypeExceptions.
* | | | Merge branch 'pull-request/1277'Stanislav Malyshev2015-05-162-3/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | * pull-request/1277: fix typos
| * | | | fix typosolshevskiy872015-05-132-3/+3
| | | | | | | | | | | | | | | | | | | | Signed-off-by: olshevskiy87 <olshevskiy87@bk.ru>
* | | | | Display EngineExceptions like ordinary exceptionsNikita Popov2015-05-153-3/+12
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TypeException stays as-is for now because it uses messages that are incompatible with the way exception messages are displayed. closure_038.phpt and a few others now show that we're generating too many exceptions for compound operations on undefined properties -- this needs to be fixed in a followup.
* | | | Use zend_string to represent pdo_column_data.name and avoid duplication.Dmitry Stogov2015-05-052-29/+30
| | | |
* | | | Add unique prefix to exported functionChristopher Jones2015-05-022-3/+3
| | | |
* | | | Export free_statement to replace php_pdo_stmt_delref which was deleted in ↵Christopher Jones2015-05-012-3/+2
| | | | | | | | | | | | | | | | 9fe853130951cff085907c0ac136edd31ec52288 along with php_pdo_stmt_addref
* | | | Use fast method to check if first arguments should be passed by reference ↵Dmitry Stogov2015-04-221-0/+1
| | | | | | | | | | | | | | | | (not tested onbig endian).
* | | | Fix leak of Pdo object if query() failsNikita Popov2015-04-162-2/+3
| | | | | | | | | | | | | | | | | | | | Decref the DBH object when storing the errored query statement -- the DBH owns the stmt, so it will live long enough.
* | | | Fix leak of FETCH_INTO objectNikita Popov2015-04-161-0/+1
| | | |
* | | | Fix PdoRow leakNikita Popov2015-04-161-1/+2
| | | | | | | | | | | | | | | | PdoStatement should only hold a weakref to the PdoRow.
* | | | Fix EH_THROW replacement in PDO constructorNikita Popov2015-04-061-2/+2
| | | | | | | | | | | | | | | | | | | | Needs to happen for the "goto options" case as well, otherwise will try to restore error handling that was never replaced.
* | | | Always throw TypeException on throwing zpp failuresNikita Popov2015-04-061-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduces a ZEND_PARSE_PARAMS_THROW flag for zpp, which forces to report FAILURE errors using a TypeException instead of a Warning, like it would happen in strict mode. Adds a zend_parse_parameters_throw() convenience function, which invokes zpp with this flag. Converts all cases I could identify, where we currently have throwing zpp usage in constructors and replaces them with this API. Error handling is still replaced to EH_THROW in some cases to handle other, domain-specific errors in constructors.
* | | | Try fixing PDO MySQL pconnect testNikita Popov2015-04-041-13/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use less aggressive conversion to exceptions, in particular do not convert warnings that happen during check_liveness. If the server has gone away this will just reconnect and we still end up with a valid connection, so it shouldn't throw. Also drop some unnecessary checks for malloc returning NULL.
* | | | Convert fatal errors into EngineExceptionsDmitry Stogov2015-04-022-6/+14
| | | | | | | | | | | | | | | | Make zval_update_constant_ex(), zval_update_constant(), zend_update_class_constants() and zend_ast_evaluate() return SUCCESS or FAILURE.
* | | | Patch improvement:Dmitry Stogov2015-03-304-61/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed the corresponding core code. Fixed ext/com_dotnet and ext/date. Refactored ext/intl changes. Improved ext/fileinfo and ext/pdo changes. Fixed tests.
* | | | Merge branch 'InternalClassClean' of github.com:Danack/php-src into ↵Dmitry Stogov2015-03-304-15/+49
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | InternalClassClean * 'InternalClassClean' of github.com:Danack/php-src: Fixed indentation. Fixed comment style. Fixed commented out code. Reverted change to function name and added note of why it is different from the class it is actually changing. Made UConverter throw an exception if the constructor fails. Fixed PDO constructor to not return null. Fixed fileinfo behaviour. Made Phar throw exception on bad constructor. Converted intl extension to use IntlException in constructors. Fixed SplFixedArray and tests. Fixed ReflectionExtension and ReflectionProperty. Fixed ReflectionFunction, ReflectionMethod and ReflectionParameter. Fixed PDORow behaviour and message.
| * | | | Reverted change to function name and added note of why it is different from ↵Danack2015-03-151-3/+4
| | | | | | | | | | | | | | | | | | | | the class it is actually changing.
| * | | | Fixed PDO constructor to not return null.Danack2015-03-151-2/+8
| | | | |
| * | | | Fixed ReflectionFunction, ReflectionMethod and ReflectionParameter.Danack2015-03-011-1/+1
| | | | |
| * | | | Fixed PDORow behaviour and message.Danack2015-03-013-15/+42
| | | | |
* | | | | cleanup mod version macros, round 3Anatol Belski2015-03-232-5/+4
|/ / / /
* | | | Use new ZEND_HASH_FOREACH_... API.Dmitry Stogov2015-02-102-23/+16
| | | |
* | | | Removed unused REGISTER_PDO_CONST_LONGMatteo Beccati2015-02-081-6/+0
| | | |
* | | | Move zend_object->guards into additional slot of ↵Dmitry Stogov2015-02-042-3/+3
| | | | | | | | | | | | | | | | zend_object->properties_table[]. As result size of objects without __get/__set/__unset/__isset magic methods is reduced.