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
This requires us to update to cmb69/setup-php-sdk v0.6.
800bf1a15d717984f26a8b7766794bd6d32af7cd authored over 2 years ago
If the file already has been deleted, or never have been created in the
first place, `unlink()` ...
48d4d68517c262087e3fc83cf283f8b06fdccf06 authored over 2 years ago
4d18b890468652554558920cfc704e2a88a2f321 authored almost 3 years ago
5b9366e415101d1dd998c7598408003486aa080e authored almost 3 years ago
80dbb9f9f4c942744e7dc86e66f909847c3f3ce3 authored about 3 years ago
ba33dfe16f13c2093d19f93deb316390151aa729 authored about 3 years ago
When reading a field descriptor array, we must not assume to actually
read the full array, but r...
We must not modify any elements of the passed record array. Since
there is actually no need to ...
9c9e89e4061bef8e806e9e213531cfede0ad4758 authored over 3 years ago
We drop the unfinished AppVeyor CI right away.
c423f3eea12569db0cf24b2bd5e67e6b52c4c6b7 authored over 3 years agoec2067bcc3e978974da1da14b3f60f4ab4fac6d8 authored over 3 years ago
2f11d687a58d90fa84f910a92ac383013166f767 authored over 3 years ago
We're employing GH actions to do this on Ubuntu for different PHP
versions.
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@351938 c90b9560-bf6c-de11-be94-00142...
86b36d54af1b9f7949f4b4a5de0c992875125453 authored about 4 years agoWe forgot to add dbase_7_arginfo.h to package.xml.
git-svn-id: http://svn.php.net/repository/p...
bbdbb65b24754c6e95558d0c27284426acc6ce70 authored over 4 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350763 c90b9560-bf6c-de11-be94-00142...
0cbccd19ca0c2dea59b73a0be5b36bf70ef4119e authored over 4 years ago
dbase is a legacy extension, so backward compatibility is more important
than improved features....
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350761 c90b9560-bf6c-de11-be94-00142...
e777ff79d1db80c115a02129e5a353c839d15c8b authored over 4 years ago
We can't actually use that since the Git migration is pending, but the
scripts are helpful for l...
This test is supposed to test `dbase_get_record()`, not `dbase_get_record_with_names()`.
git-s...
117a8a7e4a58595e363589b7cb0a2e0d14ed809f authored over 4 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350690 c90b9560-bf6c-de11-be94-00142...
89addd17e734af9260caee1b02677ad458f8f584 authored over 4 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350688 c90b9560-bf6c-de11-be94-00142...
af246fc9c5d88f5035271bc9ea39685e9beebca6 authored over 4 years ago`dbase_get_record()` and `dbase_get_record_with_names()` may return `false`.
git-svn-id: http:...
6f4777e6f135f71952d831661ce6ddef58129293 authored over 4 years agoWe have to cater to exceptions thrown from within `__toString()` methods.
git-svn-id: http://s...
9c83dee4c48cc8deda59170f684f07b4da8f9ac6 authored over 4 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350639 c90b9560-bf6c-de11-be94-001422...
6b0b78aba83b9d2cb5680b0d632a931f7f8e7b23 authored over 4 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350638 c90b9560-bf6c-de11-be94-001422...
cfe5221426c02e8331156a0862f77e2290117b5f authored over 4 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@350637 c90b9560-bf6c-de11-be94-001422...
51300de1a217da348633c892d4115092b2d12d7d authored over 4 years ago requires PHP 8 for dev, but still compatible with 7.x
- promote some warnings to exceptions
...
c12a7c35f4373791e6605bd1da8840c514fc9b4a authored over 4 years ago
The dbase extension has been "recently" unbundled, so we should no longer
claim that it would be...
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@348190 c90b9560-bf6c-de11-be94-00142...
afbeabda664bfb2ae1ab3fd034556c5c6cb8aa96 authored over 5 years ago
We have to gracefully bail out whenever read() failed to read the
desired number of bytes, not o...
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
We must not assume that `value` has the desired type, but use `tmp_value` instead.
We also make ...
We must not convert elements of arrays directly, which have been passed
as arguments; instead we...
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347490 c90b9560-bf6c-de11-be94-001422...
3b271a99176287ba66b28d2efc207cbc0d489612 authored over 5 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347489 c90b9560-bf6c-de11-be94-001422...
6860fe88e8f4eb491cb6607ec6083819bd602148 authored over 5 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347488 c90b9560-bf6c-de11-be94-001422...
4236bb0a4bfef378989a76ecafb0c5dbc21ed771 authored over 5 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347487 c90b9560-bf6c-de11-be94-001422...
0492d9c91bbdba71cef98751d096d6b4268e8f4f authored over 5 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347256 c90b9560-bf6c-de11-be94-001422...
0835716e7ca0d12b930c347401dcf95cd16cbbb9 authored almost 6 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347134 c90b9560-bf6c-de11-be94-001422...
2e58a6bdbd5e5e4d84786d7f7648886456e24ac5 authored almost 6 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347133 c90b9560-bf6c-de11-be94-001422...
9e9f7c46d281536f6a50401933e888fd2a1d416b authored almost 6 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347132 c90b9560-bf6c-de11-be94-001422...
31fcad3147f0d7749b1d4acecf660c418b16c62b authored almost 6 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347130 c90b9560-bf6c-de11-be94-001422...
585d0cb8e9ac304a167b9fdfc8c9b8aa561d1c4e authored almost 6 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347127 c90b9560-bf6c-de11-be94-001422...
ce356c15436f18122dcbcdd40ffe3c803d3dede0 authored almost 6 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347126 c90b9560-bf6c-de11-be94-0014...
11703730420e97dfed53ee5f9aaf8f2c217ab93c authored almost 6 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347109 c90b9560-bf6c-de11-be94-001422...
c8b7f0bddfc5d77ad40f68e556e7462c05c41c27 authored almost 6 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347108 c90b9560-bf6c-de11-be94-001422...
7726c22f1daba444ecadfe694c28700dc35fc135 authored almost 6 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@347107 c90b9560-bf6c-de11-be94-001422...
ca57b963dac862c04c6b42dea259e3eb56c4b608 authored almost 6 years ago
We fix the harmless off-by-one error to make analyzers and checkers
happy. Unfortunately, we ca...
MSVC14 complains about potential integer truncation. This can not
happen, however, so we make th...
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340883 c90b9560-bf6c-de11-be94-001422...
ffb8ab469fdf2bf834b7ecc3b970c08be93b0fbd authored about 8 years ago
Nullable fields are a FoxPro extension to DBF, and are implemented by
adding a _NullFlags field ...
To properly support FoxPro DBFs dbase_create() has to be informed about
the desired DBF type, so...
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340852 c90b9560-bf6c-de11-be94-001422...
2fd81dcf6407137c75344e6164e8bd3d84f1c6b5 authored about 8 years ago
Ammendment for r340843: dbase_get_header_info() also has to report the
float field precision.
...
1b9b5ad1611c19bc9448264946265425748da716 authored about 8 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/branches/dbase-5.1@340850 c90b9560-bf6c-de1...
532db6076bdfbdb2258aee375e03587cf41ce184 authored about 8 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340848 c90b9560-bf6c-de11-be94-001422...
ed7a17e174163eb9ec7b672b6020f62f9143c2c8 authored about 8 years ago
We must not apply _php_math_number_format_ex() on fields where db_fdc
doesn't have a meaningful ...
This never worked, and would have been a false implementation anyway,
because integer fields ('I...
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340844 c90b9560-bf6c-de11-be94-001422...
2a4b2afc84a9a31e7120bfae95f2a98d107ffe40 authored about 8 years ago
For compatibility with other dBASE tools, float fields have to be
treated like numeric fields, i...
We don't want to rely on php://input, but rather use data:// URIs
instead. Consequently, we have...
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340840 c90b9560-bf6c-de11-be94-00142...
8d231a557d12da8603a241b9747ebca43a824864 authored about 8 years ago
`phpize --clean` otherwise deletes the file. We also rename the file
to make it's usage clearer,...
dbase_create(), dbase_add_record() and dbase_replace_record() expect
plain indexed arrays (i.e. ...
dbf_head_info() and out_rec() print directly to stdout and are as such
not really useful for us....
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340834 c90b9560-bf6c-de11-be94-001422...
b0676dd29fa291e5e51049a2b9df1818de6ac8b4 authored about 8 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340833 c90b9560-bf6c-de11-be94-001422...
55f9cdc2704b764300903ebed067bb38139ed5f5 authored about 8 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340832 c90b9560-bf6c-de11-be94-001422...
7643d8c6815481ad82200141d986f44f183446dd authored about 8 years ago
We properly check for write() failures (i.e. by checking that all bytes
are written), and propag...
We restrict the permissible input values of db_gregorian_to_sdn() to the
range we're actually su...
On Windows x64, longs have only 32 bit, but zend_longs have 64. Hence
we use ZEND_STRTOL() inste...
In some cases the conversion is already safe, so we explicitly cast to
the destination type. In ...
These parameters are constrained to a single byte (actually <= 254), so
we add respective checks...
MSVC 14 complains about possible loss of data due to zend_long to int
conversion in db_sdn_to_gr...
If get_dbf_head() failed the database file was not unlocked, what could
cause deadlocks on Windo...
dBASE allows logical fields to be uninitialized and marks such fields
with '?'. To be able to di...
We're using advisory file locking via php_flock(), so the usual caveats
regarding multithreaded ...
These functions are currently unused, but might be in the future to
support O (dBASE) and B (Fox...
The former behavior to retrieve logical values as int(1) or int(0) isn't
particularly useful wit...
We add support for FoxPro datetime fields, which store an exact
timestamp in two binary dwords, ...
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
There is no need to write floats directly to the output buffer. Instead
it suffices to only do t...
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340791 c90b9560-bf6c-de11-be94-00142...
26803ce3943641418ce3d82d1a9495834cc6e692 authored about 8 years ago
If reading the DBF header fails, we have to deallocate already allocated
field names.
git-svn-...
60ea78aa2ffa5cb795d3651faca048301be3ed03 authored about 8 years ago
By far not all possible field types of all the different xBase dialects
are supported. When dbas...
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
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
dbase_add_record() and dbase_replace_record() are nearly identical, so
we extract the parameteri...
`field` is never modified, so we don't need the temporary clone.
git-svn-id: http://svn.php.net...
4d3ce7d38c5e2088fb789dd143a1db12874c773a authored about 8 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340782 c90b9560-bf6c-de11-be94-00142...
c8561693e4f7aa8a88cd5bd41a2c5e830b1181e7 authored about 8 years ago
We fix the return value according to the documentation, and raise a
warning if reading or writin...
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340779 c90b9560-bf6c-de11-be94-00142...
38b99c38dca314fd30e93f2a3810fcdd7d69ac83 authored about 8 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/branches/dbase-5.1@340778 c90b9560-bf6c-de1...
3712078ec313732f2910523f40e1e6d0d1a279e6 authored about 8 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/branches/dbase-5.1@340777 c90b9560-bf6c-de1...
92efa548994d2beddd9438378e691d95e3beacc0 authored about 8 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340774 c90b9560-bf6c-de11-be94-001422...
ca91fe6fe8d69696fd4a989359ad111f95100834 authored about 8 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340773 c90b9560-bf6c-de11-be94-00142...
28bd9e4fa2155d17837fbfa972817c78edc0f6d4 authored about 8 years agoThe alternative would be to remove the $Id$s.
git-svn-id: http://svn.php.net/repository/pecl/db...
4137d000f5ad626afb0beb82a4109bff068621ca authored about 8 years agogit-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340770 c90b9560-bf6c-de11-be94-00142...
618600f04cdcfbb4b8f4476eeab65a68d6a14592 authored about 8 years ago