dbase-pecl-php7
dbase-pecl-php7 copied to clipboard
fix "Abort trap: 6" during dbase_replace_record()
When using dbase package in Mac OS X this error is raised when a record is written to disk, for example using dbase_replace_record
Make output: dbf_head.c:193:2: warning: '__builtin___strlcpy_chk' will always overflow destination buffer [-Wbuiltin-memcpy-chk-size] strlcpy(dbfield.dbf_name, dbf->db_fname, DBF_NAMELEN + 1);
Setting compiler flag -Wno-builtin-memcpy-chk-size does not fix this problem
See https://bugs.php.net/bug.php?id=74983
I'm use PHP 7.1.8 (cli) (built: Aug 7 2017 15:02:45) ( NTS )
I think you better email the maintainers at https://pecl.php.net/package/dbase this, they better understand the code and this github version was just a short term solution while there was no official pecl dbase extension.