Matteo Beccati
202a099aee
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Add test for pg_put_line() and pg_end_copy()
2021-10-05 18:13:20 +02:00
Matteo Beccati
9af6882d28
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Add test for pg_put_line() and pg_end_copy()
2021-10-05 17:44:19 +02:00
Matteo Beccati
be36bf5aca
Add test for pg_put_line() and pg_end_copy()
2021-10-05 17:43:48 +02:00
George Peter Banyard
1f42777927
Deprecate using the implicit default PgSQL connection
...
The DB connection should be provided in all cases as the first argument.
The overloaded function signatures will be removed in the future.
Warn about this change.
Part of https://wiki.php.net/rfc/deprecations_php_8_1 .
2021-07-09 23:12:37 +02:00
Nikita Popov
a148ea2c50
Add missing dba extension requirement in pgsql test
2021-06-14 14:55:03 +02:00
Nikita Popov
6600ad6067
Add some missing EXTENSIONS sections to misc tests
2021-06-14 14:52:44 +02:00
Nikita Popov
e378968c4f
Fix EXTENSIONS section for pgsql
...
This should have been pgsql, not psql...
2021-06-14 14:40:38 +02:00
Nikita Popov
b5a14e6c04
Port skipif.inc files to EXTENSIONS
2021-06-11 16:27:50 +02:00
Máté Kocsis
32aff25ceb
Convert resources to objects in ext/pgsql
...
Closes GH-6791
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com >
2021-05-11 00:09:30 +02:00
George Peter Banyard
6eb23e2b83
ValueError if lengths is less than 0
2021-04-19 20:27:34 +01:00
George Peter Banyard
7a1af523fa
Fix test output due to float to string locale independent change
...
Also use de_DE locale instead
2021-04-19 20:27:33 +01:00
Nikita Popov
1b3b430f47
Add --repeat testing mode
...
This testing mode executes the test multiple times in the same
process (but in different requests). It is primarily intended to
catch tracing JIT bugs, but also catches state leaks across
requests.
Closes GH-6365.
2020-10-30 17:29:33 +01:00
Nikita Popov
3171fec6da
Update ext/pgsql parameter names
...
Closes GH-6294.
2020-10-13 12:30:44 +02:00
George Peter Banyard
053a5fc141
Promote E_NOTICE to Value/TypeError in PostgreSQL extension
...
Add some tests to cover related codepaths.
With the small caveat that the ones in build_assignment_string()
still don't seem to be tested as it looks the condtions are checked
beforehand, might need some more investigation.
Closes GH-6226
2020-09-29 15:13:01 +01:00
Nikita Popov
8ff2f2f84b
Return empty array for no rows in pg_fetch_all()
...
This makes it line up with pg_fetch_all_columns(), as well as
similar functions in other exts, such as mysqli_fetch_all().
2020-09-21 17:22:02 +02:00
Nikita Popov
54f03d31e0
Promote invalid field to ValueError in pgsql
...
The same error condition is a ValueError in mysqli, be consistent.
Additionally, do not display the argument name for these errors.
As the signatures are overloaded, the argument name may not match
the meaning at all.
2020-09-21 17:00:23 +02:00
Nikita Popov
7300f6fc17
Deprecate pgsql function aliases
...
These have been documentation-deprecated for a very long time,
make it official.
2020-09-21 11:33:05 +02:00
George Peter Banyard
d0111d785d
Promote warnings to Errors in PostgreSQL extension
...
Do some drive by indentation fixes
Also fix pg_select() in regards to the $result_type arg which was missing from ZPP
Closes GH-6129
2020-09-14 17:01:35 +02:00
Nikita Popov
9a6c22da70
Remove deprecated pgsql signatures
...
As the comment indicates, these are deprecated in PHP 4.2...
2020-09-09 15:50:30 +02:00
Nikita Popov
8f415d4413
Promote pgsql no link to Error exception
2020-09-09 12:45:07 +02:00
Nikita Popov
3ab88831ae
Remove deprecated multi-parameter form of pg_connect()
2020-09-09 12:31:00 +02:00
Nikita Popov
396b47061f
Use zpp C in pg_fetch_object
2020-08-13 16:24:08 +02:00
Máté Kocsis
7aacc705d0
Add many missing closing PHP tags to tests
...
Closes GH-5958
2020-08-09 22:03:36 +02:00
Nikita Popov
f8d795820e
Reindent phpt files
2020-02-03 22:52:20 +01:00
Christoph M. Becker
dabc28d182
Fix #78880 : Spelling error report
...
We fix the most often occuring typos according to a recent codespell
report[1] in tests, code comments and documentation.
[1] <https://fossies.org/linux/test/php-src-master-f8f48ce.191129.tar.gz/codespell.html >.
2019-12-21 11:58:00 +01:00
Fabien Villepinte
a555cc0b3d
Clean DONE tags from tests
...
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.
Closes GH-4872.
2019-11-07 21:31:47 +01:00
Nikita Popov
b1bdae7621
Merge branch 'PHP-7.4'
2019-06-04 12:25:16 +02:00
Nikita Popov
3f7210efa8
Try to make 17result.php more robust
...
This is our most common intermittent failure. I don't understand
why it happens and can't reproduce it, but defining an explicit
sort order seems worth a shot...
2019-06-04 12:18:21 +02:00
Nikita Popov
1df8175b61
Convert fetch_resource warnings into TypeErrors
...
More type checks that are not part of zpp and should generate a
TypeError in PHP 8.
2019-06-03 09:17:12 +02:00
Peter Kokot
87cfcb0b7c
Merge branch 'PHP-7.4'
...
* PHP-7.4:
[ci skip] Migrate tests READMEs to Markdown
2019-05-12 22:03:35 +02:00
Peter Kokot
83e565e244
[ci skip] Migrate tests READMEs to Markdown
2019-05-12 22:03:10 +02:00
Nikita Popov
2e982e975c
Merge branch 'PHP-7.4'
2019-04-10 13:07:06 +02:00
Nikita Popov
c02a5931f4
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-10 13:07:01 +02:00
Nikita Popov
b67ca4f07c
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-10 13:06:55 +02:00
Nikita Popov
8f13599a64
Fix 29nb_async_connect.phpt
...
Intermediate states are unreliable across versions (I think), make
sure we go through the whole connect procedure.
2019-04-10 13:06:02 +02:00
Nikita Popov
30d968951d
Merge branch 'PHP-7.4'
2019-04-10 12:23:49 +02:00
Nikita Popov
2191eac3b3
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-10 12:23:01 +02:00
Nikita Popov
6615b9c287
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-10 12:22:34 +02:00
Nikita Popov
c7a86a38a3
Fix pgsql use after free trying to reuse closed connection
...
When a connection is closed, we also need to remove the hash entry
from the regular_list, as it now points to freed memory. To do this
store a reverse mapping from the connection to the hash string.
It would be nicer to introduce a wrapping structure for the pgsql
link resource that could store the hash (and notices), but that would
require large changes to the extension, so I'm going for a more
minimal fix here.
2019-04-10 12:18:57 +02:00
Nikita Popov
f3dd39ef61
Merge branch 'PHP-7.4'
2019-04-10 10:39:02 +02:00
Nikita Popov
d50dcbe659
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-10 10:38:52 +02:00
Nikita Popov
ed1df9d135
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-10 10:38:32 +02:00
Nikita Popov
b55715d61a
Fix use after free on pg_close() of default connection
2019-04-10 10:38:24 +02:00
Peter Kokot
6426420f61
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Replace dirname(__FILE__) by __DIR__ in tests
2019-03-15 23:36:47 +01:00
Fabien Villepinte
26dfce7f36
Replace dirname(__FILE__) by __DIR__ in tests
2019-03-15 22:55:30 +01:00
Nikita Popov
852485d8ec
Adjust tests for zpp TypeError change
2019-03-11 11:32:20 +01:00
Gabriel Caruso
6c4e2079c0
Use EXPECT when possible
...
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2019-03-11 00:05:44 -03:00
Nikita Popov
c0e15a3b7f
Implement fine-grained conflict handling
...
Tests can specify conflict keys, either in --CONFLICTS-- or
a per-directory CONFLICTS file. Non-conflicting tests may be run
in parallel.
2019-02-20 11:20:40 +01:00
Fabien Villepinte
2b9ceffb41
Fix typo in tests
2018-11-19 22:17:58 +01:00
Anatol Belski
0434141ce9
Fixed bug #77047 pg_convert has a broken regex for the 'TIME WITHOUT TIMEZONE' data type
...
Backport 369c991d and 282a63da to 7.1, closes #3634
2018-11-18 12:29:34 +01:00