Skip to content
Branch: master
Clone or download
Latest commit 75b8694 Sep 21, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CREDITS import old version Dec 26, 2015
README.md
config.m4 import old version Dec 26, 2015
dbase.c update zval's, structs Dec 27, 2015
dbf.h import old version Dec 26, 2015
dbf_head.c import old version Dec 26, 2015
dbf_head.h import old version Dec 26, 2015
dbf_misc.c import old version Dec 26, 2015
dbf_misc.h import old version Dec 26, 2015
dbf_ndx.c import old version Dec 26, 2015
dbf_ndx.h import old version Dec 26, 2015
dbf_rec.c import old version Dec 26, 2015
dbf_rec.h import old version Dec 26, 2015
php_dbase.h hashtable fixes Dec 26, 2015
sometests.php some quick and dirty testing Dec 27, 2015

README.md

dbase-pecl-php7

Please use the official version at https://pecl.php.net/package/dbase , this github page was only made as a stopgap solution while there was no official pecl dbase version for php7. The pecl version is newer and has more bugfixes. This github repo should be considered deprecated

php7 compatibility. Sources: https://wiki.php.net/phpng-upgrading

https://github.com/zxcvdavid/php-memcached/commit/e3dc831f1cb3e851c9e3db38c495358844bbc13b

the php source code

pspell source code

Everything seems to work, except updating (and probably inserting) with arrays that contain named indexes, as seen in the example here https://secure.php.net/manual/en/function.dbase-replace-record.php I have a suspicion this did never work.

With a raw array it works.

Installation instructions:

# PHP 7
sudo add-apt-repository ppa:ondrej/php
sudo apt-get install  php7.0-fpm php7.0-curl php7.0-mysql php7.0-dev 

# dbase for PHP 7
git clone git://github.com/mote0230/dbase-pecl-php7.git ~/php7-dbase
cd php7-dbase/
phpize
./configure
make
sudo make install
cd ~
rm -rf ~/php7-dbase

# load extension way 1
touch /etc/php/7.0/mods-available/dbase.ini
echo "extension=dbase.so" | tee -a /etc/php/7.0/mods-available/dbase.ini
ln -s /etc/php/7.0/mods-available/dbase.ini /etc/php/7.0/fpm/conf.d/20-dbase.ini
ln -s /etc/php/7.0/mods-available/dbase.ini /etc/php/7.0/cli/conf.d/20-dbase.ini

# or load extension way 2
echo "extension=dbase.so" | tee -a /etc/php/7.0/cli/php.ini
echo "extension=dbase.so" | tee -a /etc/php/7.0/fpm/php.ini

# restart
service php7.0-fpm restart
You can’t perform that action at this time.