364 Commits

Author SHA1 Message Date
Christoph M. Becker
b013605d0b Fix name of setup action 2024-09-30 15:15:28 +02:00
Christoph M. Becker
f673faab6a Use caching for Windows CI 2024-09-30 15:14:00 +02:00
Christoph M. Becker
d125a1287e Drop installation of VC15 component in favor of os matrix
Installing the additional component takes way too long.
2024-09-30 15:13:44 +02:00
Christoph M. Becker
91e657c253 Add PHP 8.4 to the Windows build matrix
Since PHP 8.4 is supposed to be built with VS17, we need to switch to
windows-2022 runners, but unfortunately the VC15 component is not pre-
installed there, so we do that manually (what unfortunately takes a
very long time, but it's only for one of the builds).
2024-07-25 14:40:42 +02:00
Maurício Meneghini Fauth
0029c2dad0 Add tests for Ubuntu 32bit (#4)
https://github.com/shivammathur/setup-php#multi-arch-setup

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-07-23 00:28:10 +02:00
Christoph M. Becker
142341c5f6 Update to actions/checkout v4 for Ubuntu CI, too 2024-07-09 16:05:54 +02:00
Remi Collet
8e9f7144cb relax test for 8.3 (#2)
bool vs false in error message
2024-07-09 15:56:48 +02:00
Christoph M. Becker
4192a88f86 Run CI for PHP 8.3, but no longer for PHP 7.3 2024-07-09 15:50:23 +02:00
Christoph M. Becker
bccfdbfdfa Switch to php/setup-php-sdk action 2024-07-09 15:44:04 +02:00
Christoph M. Becker
06d675aed4 Don't run Windows CI on windows-latest 2024-07-09 15:37:22 +02:00
Christoph M. Becker
33468814d4 Update actions/checkout to v4 2024-07-09 15:35:08 +02:00
Christoph M. Becker
800bf1a15d Run CI also with PHP 8.2
This requires us to update to cmb69/setup-php-sdk v0.6.
2022-06-23 00:19:49 +02:00
Christoph M. Becker
d7dce1639a Ensure the clean section won't bork
If the file already has been deleted, or never have been created in the
first place, `unlink()` would throw a warning, and the test case might
be marked as borked.  We silence the call to avoid that.
2022-06-23 00:16:37 +02:00
Christoph M. Becker
48d4d68517 Add PHP 8.1 Windows CI 2022-06-22 18:23:54 +02:00
Christoph M. Becker
4d18b89046 Use latest setup-php-sdk commit 2022-03-01 13:04:21 +01:00
Christoph M. Becker
5b9366e415 Update setup-php-sdk action 2022-03-01 12:56:39 +01:00
Christoph M. Becker
80dbb9f9f4 Back to dev 2021-10-29 18:00:35 +02:00
Christoph M. Becker
ba33dfe16f Release dbase 7.1.1 dbase-7.1.1 2021-10-29 17:45:00 +02:00
Christoph M. Becker
4259c681c1 Fix #81563: SIGSEGV reading dbase file with few data
When reading a field descriptor array, we must not assume to actually
read the full array, but rather be prepared to only read the field
terminator.  We also must not return arbitrary values, since the caller
is not prepared for that; only `0`, `2` and negative values are
supported.
2021-10-29 17:37:01 +02:00
Christoph M. Becker
f4091907b7 Fix GH-1: dbase_add_record() converts passed floats and leaks memory
We must not modify any elements of the passed record array.  Since
there is actually no need to modify the zval, we work with zend_strings
in the first place, what even simplifies the code a bit.
2021-10-29 17:05:03 +02:00
Christoph M. Becker
9c9e89e406 Update to cmb69/setup-php-sdk v0.2 2021-09-04 13:08:15 +02:00
Christoph M. Becker
c423f3eea1 CI: build and test on Windows
We drop the unfinished AppVeyor CI right away.
2021-06-20 19:25:09 +02:00
Christoph M. Becker
ec2067bcc3 Back to dev 2021-06-14 00:24:06 +02:00
Christoph M. Becker
2f11d687a5 Release dbase 7.1.0 dbase-7.1.0 2021-06-13 23:15:07 +02:00
Christoph M. Becker
27edffdbfc Setup CI pipeline to build and test the extension
We're employing GH actions to do this on Ubuntu for different PHP
versions.
2021-06-13 17:35:19 +02:00
Christoph Michael Becker
86b36d54af Fix #80488: ReflectionParameter->getDefaultValue() throws for dbase_create()
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@351938 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-06 23:21:16 +00:00
Christoph Michael Becker
bbdbb65b24 Prepare 7.1.0RC2
We forgot to add dbase_7_arginfo.h to package.xml.


git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350765 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-04 20:39:47 +00:00
Christoph Michael Becker
0cbccd19ca Prepare 7.1.0RC1
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350763 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-04 16:26:48 +00:00
Christoph Michael Becker
e8b64a834a Restore BC regarding arginfo
dbase is a legacy extension, so backward compatibility is more important
than improved features.  While having full fledged arginfo even under
PHP 7 would be nice, this imposes a slight BC break, so we revert to the
old manually generated arginfo for PHP 7, and use the arginfo generated
from the stubs only under PHP 8.


git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350762 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-04 16:08:43 +00:00
Christoph Michael Becker
e777ff79d1 Fix test expectations
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350761 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-04 13:39:15 +00:00
Christoph Michael Becker
d151f7c4dc Prepare for AppVeyor CI integration
We can't actually use that since the Git migration is pending, but the
scripts are helpful for local development nonetheless.



git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350760 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-04 13:37:41 +00:00
Christoph Michael Becker
117a8a7e4a Fix test case
This test is supposed to test `dbase_get_record()`, not `dbase_get_record_with_names()`.


git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350691 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-27 14:39:57 +00:00
Christoph Michael Becker
89addd17e7 Update package.xml contents wrt. added files
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350690 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-27 14:37:55 +00:00
Christoph Michael Becker
af246fc9c5 Split 32bit tests for PHP 7/8
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350688 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-27 14:34:45 +00:00
Christoph Michael Becker
6f4777e6f1 Fix arginfo
`dbase_get_record()` and `dbase_get_record_with_names()` may return `false`.


git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350683 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-27 13:01:13 +00:00
Christoph Michael Becker
9c83dee4c4 Fix #80156: Incomplete records may be written
We have to cater to exceptions thrown from within `__toString()` methods.


git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350682 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-27 12:36:23 +00:00
Remi Collet
6b0b78aba8 relax for var_dump float format change in 8
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350639 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-25 12:34:45 +00:00
Remi Collet
cfe5221426 increase value to ensure scientific notation for float
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350638 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-25 12:30:00 +00:00
Remi Collet
51300de1a2 split test for exceptions in PHP 8
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350637 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-25 12:24:32 +00:00
Remi Collet
c12a7c35f4 - generate arginfo from stub
requires PHP 8 for dev, but still compatible with 7.x
- promote some warnings to exceptions



git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350634 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-25 10:31:56 +00:00
Christoph Michael Becker
351af2b990 Fix configure help text
The dbase extension has been "recently" unbundled, so we should no longer
claim that it would be bundled.  Also it is a PHP extension, not a library.


git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@348257 c90b9560-bf6c-de11-be94-00142212c4b1
2019-11-03 17:55:51 +00:00
Christoph Michael Becker
afbeabda66 Prepare 7.0.1 release
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@348190 c90b9560-bf6c-de11-be94-00142212c4b1
2019-10-20 13:06:01 +00:00
Christoph Michael Becker
d6d74aa6a1 Fix #78668: Out-of-bounds Read in dbase.c
We have to gracefully bail out whenever read() failed to read the
desired number of bytes, not only when it didn't read anything.


git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@348189 c90b9560-bf6c-de11-be94-00142212c4b1
2019-10-20 13:04:10 +00:00
Christoph Michael Becker
e785e75785 Fix #78594: compile error: 'LOCK_EX' undeclared
We have to include <sys/file.h> if it's available.


git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@348188 c90b9560-bf6c-de11-be94-00142212c4b1
2019-10-20 11:55:35 +00:00
Christoph Michael Becker
23f1e7948a Fix fix for bug 78070
We must not assume that `value` has the desired type, but use `tmp_value` instead.
We also make sure to `zval_dtor` the `tmp_value` in case of failure (although
`zval_dtor`ing scalars is not strictly neccessary at all).

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347492 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-26 18:47:01 +00:00
Christoph Michael Becker
1055dd4788 Fix #78070: dbase functions may modify passed array
We must not convert elements of arrays directly, which have been passed
as arguments; instead we need to convert copies of those elements.




git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347491 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-26 16:53:30 +00:00
Christoph Michael Becker
3b271a9917 Fix filenames after rename in package.xml
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347490 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-26 15:30:03 +00:00
Christoph Michael Becker
6860fe88e8 Remove initialization of unused variable
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347489 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-26 15:14:51 +00:00
Christoph Michael Becker
4236bb0a4b Fix cleanup sections
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347488 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-26 15:14:26 +00:00
Christoph Michael Becker
0492d9c91b Prevent potential parallel test issues
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347487 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-26 14:08:23 +00:00