代码部分 <?php class Aes { CONST OPTIONS = OPENSSL_RAW_DATA; /** * @param $input * @param string $keys * @param string $cipher * @return string */ public static function encrypt($input, $keys = '', $cipher ...
/** * 申请全局排他锁 * @param string $name 锁名称 * @param int $ttl 锁失效时间,避免死锁 * @param bool $should_block 是否阻塞,非阻塞锁获取失败即返回,阻塞锁会反复申请直到成功 * @throws GusException * @return boolean */ function acquire_global_lock($name, $ttl, $should_block = true){ if(!is_str...
安装依赖安装所需依赖 brew install autoconf automake libtool libxml2 pkg-config下载osx-fuse 请下载对应版本:https://github.com/osxfuse/osxfuse/releases 编译并安装 git clone https://github.com/aliyun/ossfs.git cd ossfs ./autogen.sh ./configure # 如果报错请往下看 make sudo make install 备注:请勿以管理员身份...
<?php /** * 阿里云通信新版短信 */ class SendSms { protected $domain = 'dysmsapi.aliyuncs.com'; protected $accessKeyId = '**************'; protected $accessKeySecret = '**************'; protected $defaultParams = array( 'RegionId' ...
进入php扩展目录mysqlnd目录 (ext/mysqlnd) cp config9.m4 config.m4 # 如果不执行 上边这条命令phpize会报错 /path/to/phpize # 把/path/to/换成你服务器phpize所在目录 ./confugure --with-php-config={php-config所在位置} # 如果找不到请执行 find / -name php-config 如果出现以下报错请执行 export PHP_OPENSSL_DIR=yes checking for pkg-config... /usr/bi...
错误一报错信息 configure: error: Package requirements (libpcre) were not met: No package 'libpcre' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variabl...