summaryrefslogtreecommitdiff
path: root/ext/pdo
Commit message (Collapse)AuthorAgeFilesLines
* Make more tests run and fix SKIPIF sectionsGabriel Caruso2018-07-161-2/+3
|
* Replace zval_dtor() with specialized destructorsDmitry Stogov2018-07-051-2/+2
|
* Use zval_ptr_dtor() instead of zval_dtor() in internal functions that ↵Dmitry Stogov2018-07-052-2/+2
| | | | destroy new created object (This is safer and produces less code)
* Replace legacy zval_dtor() by zval_ptr_dtor_nogc() or even more specialized ↵Dmitry Stogov2018-07-041-1/+1
| | | | | | | destructors. zval_dtor() doesn't make a lot of sense in PHP-7.* and it's used incorrectly in some places. Its occurances should be replaced by zval_ptr_dtor() or zval_ptr_dtor_nogc(), or even more specialized destructors.
* Remove unnecessary uses of z/ parametersNikita Popov2018-06-251-2/+2
|
* Export standard object handlers, to avoid indirect accessDmitry Stogov2018-05-312-6/+6
|
* Use zend_string_release_ex() instread of zend_string_release() in places, ↵Dmitry Stogov2018-05-284-25/+26
| | | | where we sure about string persistence.
* Merge branch 'PHP-7.2'Anatol Belski2018-05-211-1/+6
|\ | | | | | | | | * PHP-7.2: Allow pecl like usage in ext/pdo, refs #2955
| * Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2018-05-211-1/+6
| |\ | | | | | | | | | | | | * PHP-7.1: Allow pecl like usage in ext/pdo, refs #2955
| | * Allow pecl like usage in ext/pdo, refs #2955Tianon Gravi2018-05-211-1/+6
| | |
* | | zend_fcall_info_cache.calling_scope is not used by zend_call_function() and ↵Dmitry Stogov2018-05-032-2/+0
| | | | | | | | | | | | | | | | | | doesn't have to be initialized. It's used only as a result of zend_is_callable() in forward_static_call and spl_autoload.
* | | Fixed mess between BOOL and SUCCESS/FAILUREDmitry Stogov2018-04-281-1/+1
| | |
* | | Fix datatypesAnatol Belski2018-03-262-5/+5
| | |
* | | Keep initialized object_handlers structures in read-only memory.Dmitry Stogov2018-03-142-2/+2
| | |
* | | Remove return types from some magic method in protosGabriel Caruso2018-03-092-3/+3
| | | | | | | | | | | | __construct, __destruct, __wakeup does not have return types defined.
* | | Use int instead of long in protosGabriel Caruso2018-02-231-3/+3
| | |
* | | Use EXPECT instead of EXPECTF when possibleGabriel Caruso2018-02-205-5/+5
| | | | | | | | | | | | EXPECTF logic in run-tests.php is considerable, so let's avoid it.
* | | Convert iterator by reference errors to exceptionsNikita Popov2018-02-191-1/+2
| | | | | | | | | | | | | | | | | | I'm using RuntimeException in SPL, because other SPL classes that throw this error used it. Error is used for everything else, because that's what core does.
* | | Reduce struct size by 8 bytes on 64-bitAnatol Belski2018-02-192-9/+8
| | |
* | | Remove superfluous SKIPIF sections in more testsGabriel Caruso2018-02-042-10/+4
| | |
* | | More effecient array duplicationDmitry Stogov2018-01-171-2/+2
| | |
* | | Trailing whitespacesGabriel Caruso2018-01-031-1/+1
| | | | | | | | | | | | Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
* | | Merge branch 'PHP-7.2'Anatol Belski2018-01-021-0/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.2: Skip test for pdo_odbc
| * | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2018-01-021-0/+1
| |\ \ | | |/ | | | | | | | | | * PHP-7.1: Skip test for pdo_odbc
| | * Skip test for pdo_odbcAnatol Belski2018-01-021-0/+1
| | | | | | | | | | | | | | | The error messages are too discrepant and '-' is otherwise not allowed by the parser.
* | | Merge branch 'PHP-7.2'Anatol Belski2018-01-021-0/+3
|\ \ \ | |/ / | | | | | | | | | * PHP-7.2: Fix test for pdo_odbc
| * | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2018-01-021-0/+3
| |\ \ | | |/ | | | | | | | | | * PHP-7.1: Fix test for pdo_odbc
| | * Fix test for pdo_odbcAnatol Belski2018-01-021-0/+3
| | | | | | | | | | | | SqlServer requires parentheses to the TOP argument.
* | | Merge branch 'PHP-7.2'Xinchen Hui2018-01-021-119/+120
|\ \ \ | |/ / | | | | | | | | | * PHP-7.2: regenerated with newer re2c
| * | Merge branch 'PHP-7.1' into PHP-7.2Xinchen Hui2018-01-021-119/+120
| |\ \ | | |/ | | | | | | | | | * PHP-7.1: regenerated with newer re2c
| | * regenerated with newer re2cXinchen Hui2018-01-021-119/+120
| | |
| | * year++Xinchen Hui2018-01-0210-10/+10
| | |
| * | year++Xinchen Hui2018-01-0210-10/+10
| | |
* | | year++Xinchen Hui2018-01-0210-10/+10
| | |
* | | zend_fcall_info_cache.initialized is removed (zend_fcall_info_cache is ↵Dmitry Stogov2017-12-272-2/+0
| | | | | | | | | | | | initialized if zend_fcall_info_cache.function_handler is set).
* | | Merge branch 'PHP-7.2'Anatol Belski2017-12-221-0/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.2: pdo_odbc has no driver API for quoting, skip the test
| * | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2017-12-221-0/+1
| |\ \ | | |/ | | | | | | | | | * PHP-7.1: pdo_odbc has no driver API for quoting, skip the test
| | * pdo_odbc has no driver API for quoting, skip the testAnatol Belski2017-12-221-0/+1
| | |
* | | Merge branch 'PHP-7.2'Nikita Popov2017-12-171-14/+0
|\ \ \ | |/ /
| * | Fixed bug #75616Jaromír Doleček2017-12-171-14/+0
| | | | | | | | | | | | | | | | | | PDO can be built shared on Darwin nowadays. There used to be issues relating to symbol references between dynamically loaded shared objects.
* | | Turn "pdo_stmt_methods" into constants.Dmitry Stogov2017-12-141-1/+1
| | |
* | | Move constants into read-only data segmentDmitry Stogov2017-12-142-6/+6
| | |
* | | Move zend_object_iterator_funcs structures into read-only data segmentDmitry Stogov2017-12-141-1/+1
| | |
* | | Remove outdated TODO filesPeter Kokot2017-12-091-92/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some extensions included TODO files that has been present for several years in the repository tree without changes. This included: - ext/phar - ext/intl - ext/zip - ext/soap - ext/pdo - ext/spl - ext/dom - ext/gmp - ext/xmlwriter - ext/xmlreader ext/phar feature request has been created instead, and for others it would be better to use wiki and RFC workflow instead based on current feature requests and further PHP development requirements. [ci skip]
* | | Use zend_string_tolower() where it's possible (to avoid reallocations).Dmitry Stogov2017-11-302-9/+4
| | | | | | | | | | | | Allow zend_string_tolower_ex() to create parsistent strings
* | | Add zend_object_alloc() APINikita Popov2017-11-252-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using ecalloc() to create objects is expensive, because the dynamic-size memset() is unreasonably slow. Make sure we only zero the main object structure with known size, as the properties are intialized separately anyway. Technically we do not need to zero the embedded zend_object structure either, but as long as the memset argument is constant, a couple more bytes don't really matter.
* | | Enable and fix printf() format warningsNikita Popov2017-11-161-6/+10
| | | | | | | | | | | | | | | | | | Add _unchecked() variants of zend_spprintf and zend_strpprintf for cases where we specifically want to disable these checks, such as use of %H.
* | | Persistent resources are "thread-local".Dmitry Stogov2017-11-011-9/+2
| | | | | | | | | | | | Register persistent resources through new functions zend_register_persistent_resource()/zend_register_persistent_resource_ex().
* | | RC manipulation cleanupXinchen Hui2017-11-011-1/+1
| | |
* | | Encapsulate reference-counting primitives.Dmitry Stogov2017-10-272-3/+3
| | | | | | | | | | | | | | | | | | Prohibit direct update of GC_REFCOUNT(), GC_SET_REFCOUNT(), GC_ADDREF() and GC_DELREF() shoukf be instead. Added mactros to validate reference-counting (disabled for now). These macros are going to be used to eliminate race-condintions during reference-counting on data shared between threads.