Máté Kocsis
f4a5db3e08
Parallelize pdo tests (dblib, firebird, oci, odbc, pgsql) ( #12395 )
...
Co-authored-by: George Peter Banyard <girgias@php.net>
Co-authored-by: Jorg Adam Sowa <jorg.sowa@gmail.com>
2023-10-28 12:35:57 +01:00
Saki Takamachi
cf701fb4fc
Optimized pdo_pgsql connection test ( #12454 )
2023-10-23 12:18:55 +01:00
Yurun
6d10a69898
Fix the incorrect data type of float values in PDO query results
...
Close GH-12476
2023-10-20 12:49:25 +01:00
David CARLIER
95f829db13
ext/pdo_pgsql: cleanup the 3rd protocol is supported since circa 2010. ( #12464 )
2023-10-18 05:29:14 +01:00
Saki Takamachi
47c6b3bd45
Fixed regular expression to get password from dsn ( #12448 )
2023-10-16 12:49:33 +01:00
David CARLIER
4bb75058a3
Fix 12424 PDO_PGSQL unit test unexistent variables ( #12446 )
...
* Fix 12424 PDO_PGSQL unit test unexistent variables
Co-authored-by: Saki Takamachi <34942839+SakiTakamachi@users.noreply.github.com>
2023-10-16 08:04:55 +01:00
SakiTakamachi
b5c287e4b4
Fix GH-12423: Changed to prioritize DSN authentication information over arguments.
...
Added connection test
Close GH-12424
2023-10-15 20:24:30 +01:00
Alexandre Daubois
4f84b159b9
ext/pdo_pgsql: Improve tests cleanup ( #11855 )
2023-08-05 02:11:57 +01:00
Alexandre Daubois
e5b2590041
Improve database naming in ext/pdo_pgsql
for better para-tests ( #11872 )
2023-08-04 16:37:42 +01:00
David CARLIER
ec3daea1d6
ext/pdo_pgsql: connection status update to distinguish from truly bad quality connections.
...
Close GH-11443
2023-06-13 18:08:06 +01:00
Christoph M. Becker
c8955c078a
Revert GH-10220
...
Cf. <https://github.com/php/php-src/pull/10220#issuecomment-1383739816 >.
This reverts commit ecc880f491
.
This reverts commit 588a07f737
.
This reverts commit f377e15751
.
This reverts commit b4ba16fe18
.
This reverts commit 694ec1deea
.
This reverts commit 6b34de8eba
.
This reverts commit aa1cd02a43
.
This reverts commit 308fd311ea
.
This reverts commit 16203b53e1
.
This reverts commit 738fb5ca54
.
This reverts commit 9fdbefacd3
.
This reverts commit cd4a7c1d90
.
This reverts commit 928685eba2
.
This reverts commit 01e5ffc85c
.
2023-01-16 12:27:33 +01:00
Max Kellermann
308fd311ea
ext/{standard,json,random,...}: add missing includes
2023-01-10 14:19:03 +00:00
Christoph M. Becker
15405c60da
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix GH-9411: PgSQL large object resource is incorrectly closed
2022-09-05 17:28:23 +02:00
Christoph M. Becker
b5cad508fe
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix GH-9411: PgSQL large object resource is incorrectly closed
2022-09-05 17:26:13 +02:00
Yurun
6ac3f7c84d
Fix GH-9411: PgSQL large object resource is incorrectly closed
...
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-9411.
2022-09-05 16:37:54 +02:00
Máté Kocsis
c547fc183c
Add support for validation of missing class synopses ( #9472 )
2022-09-05 14:21:15 +02:00
George Peter Banyard
bac8ccef09
Remove SIZEOF_OFF_T undef in PDO PGSQL driver ( #8301 )
...
This has been introduced as part of fixing https://bugs.php.net/79532 (67f9b0b754
) because ``pg_config.h`` was included.
As this is no longer the case we don't need this undef any more.
2022-06-09 13:29:20 +01:00
Christoph M. Becker
b94452c269
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix test case
2022-06-08 17:07:32 +02:00
Christoph M. Becker
8e2378a4e0
Fix test case
...
This test case has apparently been overlooked, when the PDO result
bindings had been rewritten[1].
[1] <caa710037e
>
2022-06-08 17:06:06 +02:00
David Carlier
59503c0518
Merge branch 'PHP-8.1'
2022-06-02 17:36:02 +01:00
David Carlier
0f428ae240
Merge branch 'PHP-8.0' into PHP-8.1
2022-06-02 17:35:45 +01:00
Yurun
df52903ee0
Closes GH-8626: Fix PDOStatement->execute() failed.
...
Then execute successfully, errorInfo() information is incorrect
2022-06-02 17:32:43 +01:00
Christoph M. Becker
3acf63245a
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix error message allocation of PDO PgSQL
2021-12-12 15:18:58 +01:00
Christoph M. Becker
926dee1b6f
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix error message allocation of PDO PgSQL
2021-12-12 15:18:32 +01:00
SATO Kentaro
778513f605
Fix error message allocation of PDO PgSQL
...
Closes GH-7723.
2021-12-12 15:17:36 +01:00
Nikita Popov
902d64390e
Deprecate implicit dynamic properties
...
Writing to a proprety that hasn't been declared is deprecated,
unless the class uses the #[AllowDynamicProperties] attribute or
defines __get()/__set().
RFC: https://wiki.php.net/rfc/deprecate_dynamic_properties
2021-11-26 14:10:11 +01:00
Nikita Popov
90ceac6f7c
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix failing PDO PgSQL test
2021-10-07 20:11:53 +02:00
Nikita Popov
56c9ea1881
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix failing PDO PgSQL test
2021-10-07 20:11:26 +02:00
Nikita Popov
c0cbf3a6eb
Fix failing PDO PgSQL test
...
This now prints an additional
> CONTEXT: unnamed portal parameter $1 = ''
on azure, presumably as a result of a version update or configuration
change. Strip this additional line from the error info, the same as
already done in one other place in the test.
2021-10-07 20:10:45 +02:00
Nikita Popov
1e012ecb3f
Fix bug #81405 : Restore old PDO::PARAM_* values
...
Doctrine hardcodes the values of these constants, avoid changing
them.
Closes GH-7445.
2021-09-01 13:54:41 +02:00
Philip Hofstetter
ace8fba759
Fix bug #81343 : inconsistent type conversion after closeCursor
...
S->cols is already freed in the statement destructor and since
caa710037e
the column data is only
populated on the first execute() which means that on subsequent
execute()s after closeCursor was called, all meta-data for column types
was removed and never restored
Closes GH-7355.
2021-08-11 18:24:13 +02:00
Nikita Popov
efbb2198d4
Return value from ZEND_ATOL
...
Instead of assigning it as part of the macro itself, which makes
usage quite awkward.
2021-07-12 16:51:24 +02:00
Patrick Allaert
ac18dd0dc7
Prefer EXPECT over EXPECTF
2021-06-29 17:13:02 +02:00
Patrick Allaert
aff365871a
Fixed some spaces used instead of tabs
2021-06-29 11:30:26 +02:00
Nikita Popov
39131219e8
Migrate more SKIPIF -> EXTENSIONS ( #7139 )
...
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
2021-06-11 12:58:44 +02:00
Nikita Popov
7485978339
Migrate SKIPIF -> EXTENSIONS ( #7138 )
...
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00
Máté Kocsis
4ed66ff2a9
Declare tentative return types for ext/pdo
...
Closes GH-6996
2021-05-25 19:17:40 +02:00
George Peter Banyard
aca6aefd85
Remove 'register' type qualifier ( #6980 )
...
The compiler should be smart enough to optimize this on its own
2021-05-14 13:38:01 +01:00
KsaR
01b3fc03c3
Update http->https in license ( #6945 )
...
1. Update: http://www.php.net/license/3_01.txt to https, as there is anyway server header "Location:" to https.
2. Update few license 3.0 to 3.01 as 3.0 states "php 5.1.1, 4.1.1, and earlier".
3. In some license comments is "at through the world-wide-web" while most is without "at", so deleted.
4. fixed indentation in some files before |
2021-05-06 12:16:35 +02:00
Matteo Beccati
f84936b30c
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Revert "Fix #80892 : PDO::PARAM_INT is treated the same as PDO::PARAM_STR"
2021-04-29 12:06:11 +02:00
Matteo Beccati
7bc9df4af2
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Revert "Fix #80892 : PDO::PARAM_INT is treated the same as PDO::PARAM_STR"
2021-04-29 12:05:49 +02:00
Matteo Beccati
b8e49fe872
Revert "Fix #80892 : PDO::PARAM_INT is treated the same as PDO::PARAM_STR"
...
This reverts commit 340a06778c
.
2021-04-29 11:59:16 +02:00
Matteo Beccati
d0229374ce
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Fix #80892 : PDO::PARAM_INT is treated the same as PDO::PARAM_STR
2021-04-12 08:06:38 +02:00
Matteo Beccati
4f236635e7
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #80892 : PDO::PARAM_INT is treated the same as PDO::PARAM_STR
2021-04-12 08:05:41 +02:00
Matteo Beccati
340a06778c
Fix #80892 : PDO::PARAM_INT is treated the same as PDO::PARAM_STR
2021-04-12 08:03:07 +02:00
George Peter Banyard
5caaf40b43
Introduce pseudo-keyword ZEND_FALLTHROUGH
...
And use it instead of comments
2021-04-07 00:46:29 +01:00
George Peter Banyard
ebaeb93c3f
Add API to fetch bool value for PDO attribute values
...
Closes GH-6766
2021-03-17 00:58:01 +00:00
George Peter Banyard
b44e29f843
php_pdo_register_driver() might fail
...
Therefore correctly report failure in MINIT for the drivers which didn't.
2021-01-19 12:55:07 +00:00
George Peter Banyard
a78aea8948
Refactor PDO's last inserted ID handler to use and return zend_string
...
Closes GH-6617
2021-01-19 11:54:25 +00:00
George Peter Banyard
94ea8e247b
Refactor PDO doer handler to use zend_string
2021-01-19 11:42:39 +00:00