Antony Dovgal
24b2efa342
fix test
20 years ago
Antony Dovgal
7b58554f82
MFH: access mode for dbase_open() cannot be < 0
20 years ago
Antony Dovgal
b9351ab4b1
fix leaks & uninitialized vars
add test
20 years ago
Michael Wallner
98d58a80c9
MFH: implement #38357 (dbase_open can't open DBase 3 dbf file)
20 years ago
Antony Dovgal
f9070e626a
bailout on error and don't try to create fields of unknown type
add test
20 years ago
Hannes Magnusson
954acfe261
MFH: Revert array type hinting
20 years ago
Hannes Magnusson
3104233019
MFH: arginfo, protos, vim folding
20 years ago
Antony Dovgal
99e13c50f9
MFH: remove debug output and fix bug #37589
20 years ago
Antony Dovgal
d0e1a4fdca
MFH: fix #36113 (Reading records of unsupported type causes segfault)
20 years ago
foobar
5bd93221a8
bump year and license version
20 years ago
foobar
3e669bc950
MFH: nuke php3 legacy
20 years ago
foobar
23e671a51e
- Bumber up year
21 years ago
foobar
a20383ba06
- Unify the "configure --help" texts
21 years ago
Derick Rethans
0242ae498e
- Fixed bug #31754 (dbase_open() fails for mode = 1). (Mehdi, Derick)
21 years ago
Hartmut Holzgraefe
eeb172b29f
"The Visa to Sibiria" (work in progress)
Adding a package.xml to a bundled extension does not only
ease the transition to PECL whereever suitable but also
allows to build and install an extension as "shared" using
the PEAR installer without having to deal with phpize and
friends by hand
22 years ago
foobar
f4983c0d3f
- Renamed all *php4* files to *php5*, changed all php4/PHP4 to php5/PHP5
22 years ago
foobar
ccfc46b0aa
- Happy new year and PHP 5 for rest of the files too..
# Should the LICENSE and Zend/LICENSE dates be updated too?
22 years ago
Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
22 years ago
Edin Kadribasic
fbe2b4bbc3
Added dbase to the new win32 build. Works both as shared
and built-in extension on windows.
23 years ago
Uwe Steinmann
6b81317509
- set precision to 0 unless the field is of type N or I
23 years ago
Uwe Steinmann
3977fdd7b0
- fixed indenting
23 years ago
Uwe Steinmann
84d156ae15
- limit writing of field data to field len + 1
This fixed many memory overrun errors which appeared
in several scripts when writing a record.
23 years ago
Vlad Krupin
db0a175bcb
rolling back fix for 23463. The "fix" broke more than it fixed (see bug 25558)
23 years ago
Uwe Steinmann
eea84f787b
- fixed typo in error message
23 years ago
Andrey Hristov
b2eb454171
format string fixes
23 years ago
Vlad Krupin
5636f96147
Fix for bug 23463. Dbase2 is not supported.
AFAICT, no newer versions of dbase, even those use
version byte as a bitmask will ever have it <3.
23 years ago
foobar
88cbc175ea
- Removed the unnecessary check of array_init() return value.
23 years ago
Zak Greant
8178d87d25
Created shorter/sensible key names for dbase_get_header_info
* 'decimal places' becomes 'precision'
* 'printf format' becomes 'format'
* 'record offset' becomes 'offset'
BTW No docs have been committed for this function yet, nor is it part of any
release. This change should affect no users.
23 years ago
Zak Greant
c0bd985ad9
Added function dbase_get_header_info
* Passed a handle for an open dbase database, it returns an array of
associative arrays. Each associative array contains information on a
single column, including name, column type, length, precision, ...
23 years ago
James Cox
f68c7ff249
updating license information in the headers.
23 years ago
Rasmus Lerdorf
20ea550235
MFB
23 years ago
Ilia Alshanetsky
1fe4990bc0
ZTS fixes.
23 years ago
Ilia Alshanetsky
3d8e54f3a2
Changed php_error to php_error_docref.
23 years ago
Ilia Alshanetsky
e0e77d7d02
Typo corrections.
23 years ago
Ilia Alshanetsky
ad42fba9fa
Removed pointless checks around array_init() & ZE memory allocation macros.
Changed php_error to php_error_docref.
Dropped getParam* parameter parsing API in favor of zend_get_parameters*.
23 years ago
Sebastian Bergmann
b506f5c8f8
Bump year.
23 years ago
Vlad Krupin
e969d788bf
Fix for bug 19727. dBase5 (at least for windows) seems to allow 1024 fields
24 years ago
Marcus Boerger
b855dcc876
ftruncate is defined in flock_compat.h on windows
24 years ago
Marcus Boerger
22b8f0ea42
fix windows warning: not needed here
24 years ago
Sascha Schumann
2909e5c9c9
centralize #include "build-defs.h" and drop (sometimes inconsistent) other
instances
24 years ago
foobar
4e37016cb6
- Made dbase_get_record() and dbase_get_record_with_names use same backend
function as they both do same thing, just the output is different.
Fixes also bug #17762 as side effect.
24 years ago
jim winstead
d3400b2b5f
the 'setup' script was removed more than two years ago.
these can be safely removed from the 4.2 branch, too.
24 years ago
Sascha Schumann
5cba3a99c2
extension converted automatically to PHP_NEW_EXTENSION. Manually confirmed
24 years ago
Frank M. Kromann
5f4fe6255e
Killing compiler warning
24 years ago
Frank M. Kromann
68caa64328
Making dbase compule under WIn32
24 years ago
Sebastian Bergmann
90613d2282
Maintain headers.
24 years ago
Vlad Krupin
543077d915
Now dbase_pack() actually truncates the resulting .dbf file to the right
size (possibly fixing bug #6852 #3 ).
@Make dbase_pack() truncate the file to the right size. (Vlad)
24 years ago
Vlad Krupin
2f0cd79621
Verified and fixed bug 6852 #2 . Now memo fields are 10 butes long, not 9.
That does not seem to affect how the code works except when creating a new
structure, in which case 'M' fields used to get created with size 9.
@Fixed bug 6852 #2 . Mem fields are now 10 bytesin size, not 9. (Vlad)
24 years ago
Vlad Krupin
431c1f1d31
Verified and fixed bug 6852 #1 . No more null byte after terminating 0x0D.
Verified that the problem is real when creating new files and writing
a record. Both fixed and old versions seem to be able to somehow read
and write already existing files properly though.
@Fixed bug 6852 #1 . No more null byte after terminating 0x0D. (Vlad)
24 years ago
Vlad Krupin
fb8c063249
Fixed bug #5993 . Now if the result returned from a database is bigger
than a long, dbase_get_record() and dbase_get_record_with_names() will
return a string instead.
# Need to update documentation to reflect that change
@ Fixed problem with dbase not returning very large (larger than long)
@ integers properly. (Vlad)
25 years ago