APD http://pecl.php.net/package/apd started to have issues with the current Zend API. As some of my tools strongly rely on APD's function renaming and overwriting features, I had to get my hands dirty. I finally was successful in extracting those features and bundling them into a 'new' Zend extension. All credits go to the original developers. Sadly they don't respond to issues with the original version.
Install requirements:
# sudo apt install php-dev
Get the source github style and run the following in the source directory:
# cd BFR
# phpize
Output on my system looked like this. May vary depending on system.
Configuring for:
PHP Api Version: 20151012
Zend Module Api No: 20151012
Zend Extension Api No: 320151012
Run the usual stuff:
# ./configure --enable-bfr
# make && make install
Build complete.
Don't forget to run 'make test'.
Installing shared extensions: /usr/lib/php/20131226/
Modify your php.ini accordingly. Add:
zend_extension = /usr/lib/php/20131226/bfr.so
You should see the extension on the output of:
# php --version
PHP 7.0.7 (cli) (built: Jun 1 2016 00:58:54) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Better Function Replacer (BFR) v0.1, Copyright (C) 2015, by Lukas Rist
Install the dependencies:
pkg_add -r autoconf automake php git
Create symbolic links:
# ln -s /usr/local/bin/php-config-7.0 /usr/local/bin/php-config
# ln -s /usr/local/bin/phpize-7.0 /usr/local/bin/phpize
Get the source github style and run the following in the source directory:
# cd BFR
# phpize
Output on my system looked like this. May vary depending on system.
Configuring for:
PHP Api Version: 20151012
Zend Module Api No: 20151012
Zend Extension Api No: 320151012
Run the following comands. Replace the versions according to your system:
# export AUTOCONF_VERSION=2.61
# export AUTOMAKE_VERSION=1.9
Run the usual stuff:
# ./configure --enable-bfr
# make && make install
Build complete.
Don't forget to run 'make test'.
Installing shared extensions: /usr/local/lib/php-7.0/modules/
Modify your php.ini accordingly. Add:
zend_extension = /usr/local/lib/php-7.0/modules/bfr.so
You should see the extension on the output of:
# php-7.0 --version
PHP 7.0.7 with Suhosin-Patch (cli) (built: Jun 1 2016 00:58:54)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Better Function Replacer (BFR) v0.1, , by Lukas Rist
with Suhosin v0.9.33, Copyright (c) 2007-2012, by SektionEins GmbH
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。