分类目录归档:PHP
__construct、register_shutdown_function、__destruct执行顺序
run __construct
run shutdown_function
run __destruct
* unset 等操作可以提前触发 __destruct
可以利用变量作用域在__destruct内来释放连接、解锁等释放操作
启用 opcache.enable_cli 也需要小心
opcache.enable_cli + xdebug + swoole 可能会导致“段错误”(Segmentation fault)
BASE64URL JWT
PHP redis 分布式 可重入 锁 LUA脚本
[Symfony\Component\Process\Exception\ProcessTimedOutException] exceeded the timeout of 300 seconds.
[Symfony\Component\Process\Exception\ProcessTimedOutException] exceeded the timeout of 300 seconds.
解决办法:修改COMPOSER_PROCESS_TIMEOUT,默认是300秒,改大这个时间即可
# export COMPOSER_PROCESS_TIMEOUT=3600
# composer update