-
Notifications
You must be signed in to change notification settings - Fork 500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined function beast_encode_file() #51
Comments
你可以在配置文件没有加入扩展,或者载入的配置文件路径错了 |
Thanks! 我在 /etc/php/7.0/apache2/php.ini 中已经添加的了extension=beast.so, /home/ninja/Project/php-beast-master/tools/configure.ini ; destination path ; expire time ; encrypt type @liexusong 这个 soure path 和 dst path 是要指定某个文件 还是某个目录? |
目录 |
我也是同样的问题: [root@www tools]# php encode_files.php |
您好,我也出现了这种问题,编译是没有报错,使用info.php,可以看到扩展已经安装了的信息。 |
使用php -c your_conifg_path/php.ini encode_files.php 可以解决这个问题. |
`
~/Project/php-beast-master/tools$ sudo php encode_files.php
PHP Notice: Use of undefined constant BEAST_ENCRYPT_TYPE_DES - assumed 'BEAST_ENCRYPT_TYPE_DES' in /home/ninja/Project/php-beast-master/tools/encode_files.php on line 127
Source code path: /var/www/www/web_werouter/app
Destination code path: /home/ninja/Project/
Expire time: 2017-03-09 10:40:00
------------- start process -------------
PHP Fatal error: Uncaught Error: Call to undefined function beast_encode_file() in /home/ninja/Project/php-beast-master/tools/encode_files.php:76
Stack trace:
#0 /home/ninja/Project/php-beast-master/tools/encode_files.php(69): encrypt_directory('/var/www/www/we...', '/home/ninja/Pro...', 1489027200, 'BEAST_ENCRYPT_T...')
#1 /home/ninja/Project/php-beast-master/tools/encode_files.php(69): encrypt_directory('/var/www/www/we...', '/home/ninja/Pro...', 1489027200, 'BEAST_ENCRYPT_T...')
#2 /home/ninja/Project/php-beast-master/tools/encode_files.php(153): encrypt_directory('/var/www/www/we...', '/home/ninja/Pro...', 1489027200, 'BEAST_ENCRYPT_T...')
#3 {main}
thrown in /home/ninja/Project/php-beast-master/tools/encode_files.php on line 76
`
我的环境是虚拟机运行的ubuntu16.10 64bit, php7.0, 加密的时候提示找不到这个函数,可是编译都正常啊
The text was updated successfully, but these errors were encountered: