Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/php/pecl-database-dbase

dBase database file access functions
https://github.com/php/pecl-database-dbase

Run CI also with PHP 8.2

This requires us to update to cmb69/setup-php-sdk v0.6.

800bf1a15d717984f26a8b7766794bd6d32af7cd authored over 2 years ago
Ensure the clean section won't bork

If the file already has been deleted, or never have been created in the
first place, `unlink()` ...

d7dce1639a9d989a498c967d8e716c7cbb918a05 authored over 2 years ago
Add PHP 8.1 Windows CI

48d4d68517c262087e3fc83cf283f8b06fdccf06 authored over 2 years ago
Use latest setup-php-sdk commit

4d18b890468652554558920cfc704e2a88a2f321 authored almost 3 years ago
Update setup-php-sdk action

5b9366e415101d1dd998c7598408003486aa080e authored almost 3 years ago
Back to dev

80dbb9f9f4c942744e7dc86e66f909847c3f3ce3 authored about 3 years ago
Release dbase 7.1.1

ba33dfe16f13c2093d19f93deb316390151aa729 authored about 3 years ago
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 r...

4259c681c11fe60c9347d79a573b95c7ea2c5b4e authored about 3 years ago
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 ...

f4091907b77917e79768b0cee4eca9373b0ef013 authored about 3 years ago
Update to cmb69/setup-php-sdk v0.2

9c9e89e4061bef8e806e9e213531cfede0ad4758 authored over 3 years ago
CI: build and test on Windows

We drop the unfinished AppVeyor CI right away.

c423f3eea12569db0cf24b2bd5e67e6b52c4c6b7 authored over 3 years ago
Back to dev

ec2067bcc3e978974da1da14b3f60f4ab4fac6d8 authored over 3 years ago
Release dbase 7.1.0

2f11d687a58d90fa84f910a92ac383013166f767 authored over 3 years ago
Setup CI pipeline to build and test the extension

We're employing GH actions to do this on Ubuntu for different PHP
versions.

27edffdbfc69ad323187388cd0df3ffca202bd04 authored over 3 years ago
Fix #80488: ReflectionParameter->getDefaultValue() throws for dbase_create()

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@351938 c90b9560-bf6c-de11-be94-00142...

86b36d54af1b9f7949f4b4a5de0c992875125453 authored about 4 years ago
Prepare 7.1.0RC2

We forgot to add dbase_7_arginfo.h to package.xml.

git-svn-id: http://svn.php.net/repository/p...

bbdbb65b24754c6e95558d0c27284426acc6ce70 authored over 4 years ago
Prepare 7.1.0RC1

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350763 c90b9560-bf6c-de11-be94-00142...

0cbccd19ca0c2dea59b73a0be5b36bf70ef4119e authored over 4 years ago
Restore BC regarding arginfo

dbase is a legacy extension, so backward compatibility is more important
than improved features....

e8b64a834a36f98bbb10b2cf5666136ca8e89847 authored over 4 years ago
Fix test expectations

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350761 c90b9560-bf6c-de11-be94-00142...

e777ff79d1db80c115a02129e5a353c839d15c8b authored over 4 years ago
Prepare for AppVeyor CI integration

We can't actually use that since the Git migration is pending, but the
scripts are helpful for l...

d151f7c4dc37298c5286412d5e6992cc11346efb authored over 4 years ago
Fix test case

This test is supposed to test `dbase_get_record()`, not `dbase_get_record_with_names()`.

git-s...

117a8a7e4a58595e363589b7cb0a2e0d14ed809f authored over 4 years ago
Update package.xml contents wrt. added files

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350690 c90b9560-bf6c-de11-be94-00142...

89addd17e734af9260caee1b02677ad458f8f584 authored over 4 years ago
Split 32bit tests for PHP 7/8

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350688 c90b9560-bf6c-de11-be94-00142...

af246fc9c5d88f5035271bc9ea39685e9beebca6 authored over 4 years ago
Fix arginfo

`dbase_get_record()` and `dbase_get_record_with_names()` may return `false`.

git-svn-id: http:...

6f4777e6f135f71952d831661ce6ddef58129293 authored over 4 years ago
Fix #80156: Incomplete records may be written

We have to cater to exceptions thrown from within `__toString()` methods.

git-svn-id: http://s...

9c83dee4c48cc8deda59170f684f07b4da8f9ac6 authored over 4 years ago
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-001422...

6b0b78aba83b9d2cb5680b0d632a931f7f8e7b23 authored over 4 years ago
increase value to ensure scientific notation for float

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350638 c90b9560-bf6c-de11-be94-001422...

cfe5221426c02e8331156a0862f77e2290117b5f authored over 4 years ago
split test for exceptions in PHP 8

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350637 c90b9560-bf6c-de11-be94-001422...

51300de1a217da348633c892d4115092b2d12d7d authored over 4 years ago
- generate arginfo from stub

requires PHP 8 for dev, but still compatible with 7.x
- promote some warnings to exceptions

...

c12a7c35f4373791e6605bd1da8840c514fc9b4a authored over 4 years ago
Fix configure help text

The dbase extension has been "recently" unbundled, so we should no longer
claim that it would be...

351af2b990aaaecece7354bd0889aa3194932937 authored about 5 years ago
Prepare 7.0.1 release

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@348190 c90b9560-bf6c-de11-be94-00142...

afbeabda664bfb2ae1ab3fd034556c5c6cb8aa96 authored over 5 years ago
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 o...

d6d74aa6a1182f0aa228934c275dc04ccff4626b authored over 5 years ago
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/p...

e785e757858764f316d92721123b168deac1d25d authored over 5 years ago
Fix fix for bug 78070

We must not assume that `value` has the desired type, but use `tmp_value` instead.
We also make ...

23f1e7948a8be7a581079bd16ecb292b7b59aa09 authored over 5 years ago
Fix #78070: dbase functions may modify passed array

We must not convert elements of arrays directly, which have been passed
as arguments; instead we...

1055dd4788efea0d46ee0a0a1bf1dc0a89c7941f authored over 5 years ago
Fix filenames after rename in package.xml

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347490 c90b9560-bf6c-de11-be94-001422...

3b271a99176287ba66b28d2efc207cbc0d489612 authored over 5 years ago
Remove initialization of unused variable

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347489 c90b9560-bf6c-de11-be94-001422...

6860fe88e8f4eb491cb6607ec6083819bd602148 authored over 5 years ago
Fix cleanup sections

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347488 c90b9560-bf6c-de11-be94-001422...

4236bb0a4bfef378989a76ecafb0c5dbc21ed771 authored over 5 years ago
Prevent potential parallel test issues

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347487 c90b9560-bf6c-de11-be94-001422...

0492d9c91bbdba71cef98751d096d6b4268e8f4f authored over 5 years ago
Prepare 7.0.0 release

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347256 c90b9560-bf6c-de11-be94-001422...

0835716e7ca0d12b930c347401dcf95cd16cbbb9 authored almost 6 years ago
properly use PHP_FE_END macro

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347134 c90b9560-bf6c-de11-be94-001422...

2e58a6bdbd5e5e4d84786d7f7648886456e24ac5 authored almost 6 years ago
fix 32-bit test for 7.3 (int vs interger)

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347133 c90b9560-bf6c-de11-be94-001422...

9e9f7c46d281536f6a50401933e888fd2a1d416b authored almost 6 years ago
type is optional

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347132 c90b9560-bf6c-de11-be94-001422...

31fcad3147f0d7749b1d4acecf660c418b16c62b authored almost 6 years ago
Update version number

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347130 c90b9560-bf6c-de11-be94-001422...

585d0cb8e9ac304a167b9fdfc8c9b8aa561d1c4e authored almost 6 years ago
Fix release date

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347127 c90b9560-bf6c-de11-be94-001422...

ce356c15436f18122dcbcdd40ffe3c803d3dede0 authored almost 6 years ago
Prepare 7.0.0RC1 release

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347126 c90b9560-bf6c-de11-be94-0014...

11703730420e97dfed53ee5f9aaf8f2c217ab93c authored almost 6 years ago
Add missing release entry

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347109 c90b9560-bf6c-de11-be94-001422...

c8b7f0bddfc5d77ad40f68e556e7462c05c41c27 authored almost 6 years ago
Add missing files

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347108 c90b9560-bf6c-de11-be94-001422...

7726c22f1daba444ecadfe694c28700dc35fc135 authored almost 6 years ago
Use proper format specifiers

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347107 c90b9560-bf6c-de11-be94-001422...

ca57b963dac862c04c6b42dea259e3eb56c4b608 authored almost 6 years ago
Fix #74983: SIGABRT when function put_dbf_field is called

We fix the harmless off-by-one error to make analyzers and checkers
happy. Unfortunately, we ca...

7bf9d87634765727417a2b402cb5e7abbb78e5c2 authored almost 6 years ago
Fix compiler warning

MSVC14 complains about potential integer truncation. This can not
happen, however, so we make th...

856930503036a73ed3ed7da91ee948c101a3049c authored about 8 years ago
Improve test coverage of nullable type support

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340883 c90b9560-bf6c-de11-be94-001422...

ffb8ab469fdf2bf834b7ecc3b970c08be93b0fbd authored about 8 years ago
Add transparent support for nullable fields

Nullable fields are a FoxPro extension to DBF, and are implemented by
adding a _NullFlags field ...

413bc9b4b43e12f97f5e07c20a749c2855bf6d3f authored about 8 years ago
Add optional $type parameter to dbase_create()

To properly support FoxPro DBFs dbase_create() has to be informed about
the desired DBF type, so...

4a7f9945ee99697c059febc25d66c74bc1612391 authored about 8 years ago
Merged revision(s) 340848-340851 from pecl/dbase/branches/dbase-5.1

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340852 c90b9560-bf6c-de11-be94-001422...

2fd81dcf6407137c75344e6164e8bd3d84f1c6b5 authored about 8 years ago
Fix #73442: Float fields always have precision 0

Ammendment for r340843: dbase_get_header_info() also has to report the
float field precision.

...

1b9b5ad1611c19bc9448264946265425748da716 authored about 8 years ago
Add float field ('F') to example.dbf and adjust tests accordingly

git-svn-id: http://svn.php.net/repository/pecl/dbase/branches/dbase-5.1@340850 c90b9560-bf6c-de1...

532db6076bdfbdb2258aee375e03587cf41ce184 authored about 8 years ago
Merged revision(s) 340844-340847 from pecl/dbase/branches/dbase-5.1

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340848 c90b9560-bf6c-de11-be94-001422...

ed7a17e174163eb9ec7b672b6020f62f9143c2c8 authored about 8 years ago
Fix #73447: Floats written to character fields are truncated to integer

We must not apply _php_math_number_format_ex() on fields where db_fdc
doesn't have a meaningful ...

261b830bbe591739521dbc3b6bf60db4f13f1d94 authored about 8 years ago
Remove started but incomplete integer field support

This never worked, and would have been a false implementation anyway,
because integer fields ('I...

dd8169d42973d61bf4c6a7e5519be1c30cd9543a authored about 8 years ago
Merged revision(s) 340840-340843 from pecl/dbase/branches/dbase-5.1

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340844 c90b9560-bf6c-de11-be94-001422...

2a4b2afc84a9a31e7120bfae95f2a98d107ffe40 authored about 8 years ago
Fix #73442: Float fields always have precision 0

For compatibility with other dBASE tools, float fields have to be
treated like numeric fields, i...

63ca346dd98aa2beae979c2fdfa5cec12c214909 authored about 8 years ago
Improve tests for wrong resource type arguments

We don't want to rely on php://input, but rather use data:// URIs
instead. Consequently, we have...

8df7362bb307b4d14681b2e4a68e5da9c693d056 authored about 8 years ago
Merged revision(s) 340791-340839 from pecl/dbase/branches/dbase-5.1

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340840 c90b9560-bf6c-de11-be94-00142...

8d231a557d12da8603a241b9747ebca43a824864 authored about 8 years ago
Move example.php out of the test directory

`phpize --clean` otherwise deletes the file. We also rename the file
to make it's usage clearer,...

e83b3d1c9c2bb6efd8ed3bf5a130476a79e4a777 authored about 8 years ago
Improve error messages for unexpected arrays

dbase_create(), dbase_add_record() and dbase_replace_record() expect
plain indexed arrays (i.e. ...

1b31ed88da13c3e39f275de8b72cf1ebbf4d62b7 authored about 8 years ago
Remove unused functions which we won't in the future

dbf_head_info() and out_rec() print directly to stdout and are as such
not really useful for us....

e6f47b33e469f26a50ec178832c7f0323b1bedac authored about 8 years ago
Add further error condition tests

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340834 c90b9560-bf6c-de11-be94-001422...

b0676dd29fa291e5e51049a2b9df1818de6ac8b4 authored about 8 years ago
Add tests for error conditions

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340833 c90b9560-bf6c-de11-be94-001422...

55f9cdc2704b764300903ebed067bb38139ed5f5 authored about 8 years ago
Remove case for (yet) unsupported integer field type

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340832 c90b9560-bf6c-de11-be94-001422...

7643d8c6815481ad82200141d986f44f183446dd authored about 8 years ago
Improve write() related error checking and reporting

We properly check for write() failures (i.e. by checking that all bytes
are written), and propag...

9c5f6d644b870286738bfbbba307f6ebbae8242a authored about 8 years ago
Fix another compile warning regarding potential integer truncation

We restrict the permissible input values of db_gregorian_to_sdn() to the
range we're actually su...

b74c98fa6511e8ab2a62c7836382f2e66e66d3f5 authored about 8 years ago
Read 64bit integers as int on Windows x64

On Windows x64, longs have only 32 bit, but zend_longs have 64. Hence
we use ZEND_STRTOL() inste...

f753df47a998f4c5af105541247b60e316c0a65a authored about 8 years ago
Fix compile warnings regarding potential integer truncation

In some cases the conversion is already safe, so we explicitly cast to
the destination type. In ...

06debea0f8b81615058dd8f431155ec69671da09 authored about 8 years ago
Add range checks for field length and precision

These parameters are constrained to a single byte (actually <= 254), so
we add respective checks...

c6b3d2c69b26353c1783d6f1a82a7ba9899cd20b authored about 8 years ago
Fix compiler warnings

MSVC 14 complains about possible loss of data due to zend_long to int
conversion in db_sdn_to_gr...

06121a5dca81bf10f8309fafee3412bfe5f3c6dd authored about 8 years ago
Fix regression bug regarding locking

If get_dbf_head() failed the database file was not unlocked, what could
cause deadlocks on Windo...

44be0dc07559813ca4153a72b634271b32014e8b authored about 8 years ago
Support uninitialized logical fields

dBASE allows logical fields to be uninitialized and marks such fields
with '?'. To be able to di...

c3398b7292e016403764ef545ccdd9040b83581c authored about 8 years ago
Implement basic database locking

We're using advisory file locking via php_flock(), so the usual caveats
regarding multithreaded ...

5df341f11b63756823796fe882be5220d55b7f03 authored about 8 years ago
Fix (get|put)_double wrt. endianess

These functions are currently unused, but might be in the future to
support O (dBASE) and B (Fox...

fb312fa6fe8f95ae4feffffc79ac426a0dbbda47 authored about 8 years ago
Retrieve logical values as bool

The former behavior to retrieve logical values as int(1) or int(0) isn't
particularly useful wit...

7c432e386bd4a7a8981477b6c5c9c08cd460ec01 authored about 8 years ago
Add support for datetime fields

We add support for FoxPro datetime fields, which store an exact
timestamp in two binary dwords, ...

ec3bb1d6e125dd34525f81287937d92f3e4d5402 authored about 8 years ago
Make error message more meaningful

We also put this code branch under test.

git-svn-id: http://svn.php.net/repository/pecl/dbase/t...

5f334ce0024bd22707cdb258be3d5df5b0c179cd authored about 8 years ago
Simplify writing of floats

There is no need to write floats directly to the output buffer. Instead
it suffices to only do t...

120446c26c816275aae97614b555c5e23c1344ad authored about 8 years ago
Merged revision(s) 340782-340790 from pecl/dbase/branches/dbase-5.1

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340791 c90b9560-bf6c-de11-be94-00142...

26803ce3943641418ce3d82d1a9495834cc6e692 authored about 8 years ago
Fix #73414: Unsupported field types may cause dbase_open() to leak memory

If reading the DBF header fails, we have to deallocate already allocated
field names.

git-svn-...

60ea78aa2ffa5cb795d3651faca048301be3ed03 authored about 8 years ago
Raise a warning for unsupported field types

By far not all possible field types of all the different xBase dialects
are supported. When dbas...

a252ff3abf317960bd84adce5c63d90c1d95f02c authored about 8 years ago
Write proper EOF marker

The EOF marker is not strictly necessary, but some tools might rely on
it, so we put it out.

gi...

c4480a5d0157a50ed292abf53d1eaeae5c7cbc3c authored about 8 years ago
Remove superfluous conditional

When we get there, `rec_cnt` is always zero, so we don't need to check
that.

git-svn-id: http:/...

4420e2a4ed9e8a1fb706fb9231780bd3c7923e2f authored about 8 years ago
Extract php_dbase_put_record()

dbase_add_record() and dbase_replace_record() are nearly identical, so
we extract the parameteri...

525e29f33bdb4f4ba01e93bb74bd027135e215b0 authored about 8 years ago
Remove unnecessary temporary ZVAL

`field` is never modified, so we don't need the temporary clone.

git-svn-id: http://svn.php.net...

4d3ce7d38c5e2088fb789dd143a1db12874c773a authored about 8 years ago
Merged revision(s) 340779-340781 from pecl/dbase/branches/dbase-5.1

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340782 c90b9560-bf6c-de11-be94-00142...

c8561693e4f7aa8a88cd5bd41a2c5e830b1181e7 authored about 8 years ago
Fix #73411 :dbase_pack() returns TRUE on failure

We fix the return value according to the documentation, and raise a
warning if reading or writin...

6ec87929290f3fb04ada43950dec204923f0d9a9 authored about 8 years ago
Merged revision(s) 340773-340778 from pecl/dbase/branches/dbase-5.1

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340779 c90b9560-bf6c-de11-be94-00142...

38b99c38dca314fd30e93f2a3810fcdd7d69ac83 authored about 8 years ago
Fix typo

git-svn-id: http://svn.php.net/repository/pecl/dbase/branches/dbase-5.1@340778 c90b9560-bf6c-de1...

3712078ec313732f2910523f40e1e6d0d1a279e6 authored about 8 years ago
Test that the date of last update is properly updated

git-svn-id: http://svn.php.net/repository/pecl/dbase/branches/dbase-5.1@340777 c90b9560-bf6c-de1...

92efa548994d2beddd9438378e691d95e3beacc0 authored about 8 years ago
Make DBASE_VERSION available to userland

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340774 c90b9560-bf6c-de11-be94-001422...

ca91fe6fe8d69696fd4a989359ad111f95100834 authored about 8 years ago
Merged revision(s) 340770-340772 from pecl/dbase/branches/dbase-5.1

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340773 c90b9560-bf6c-de11-be94-00142...

28bd9e4fa2155d17837fbfa972817c78edc0f6d4 authored about 8 years ago
Add Id to svn:keywords for files already using it

The alternative would be to remove the $Id$s.

git-svn-id: http://svn.php.net/repository/pecl/db...

4137d000f5ad626afb0beb82a4109bff068621ca authored about 8 years ago
Merged revision(s) 340741-340769 from pecl/dbase/branches/dbase-5.1

git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340770 c90b9560-bf6c-de11-be94-00142...

618600f04cdcfbb4b8f4476eeab65a68d6a14592 authored about 8 years ago