V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  CodeCodeStudy  ›  全部回复第 1 页 / 共 63 页
回复总数  1256
1  2  3  4  5  6  7  8  9  10 ... 63  
❮ ❯
@Seanfuck #8 古董项目了,还在用 mysql_connect 这个函数
@chenzhg33 #7 通过 https://github.com/vperetti/php-cve-2026-109618-109619-backports 下载的 patch 修改源码,然后用源码编译,不知道修复了没有,我也不知道怎么验证
@yjd #6 不知道,我没在 windows 上编译过 PHP
@herozzm #4 确认不了,你可以去 https://github.com/vperetti/php-cve-2026-109618-109619-backports 看看 patch 文件是怎么写的
上面的 php -i | grep Configure 写错了,应该是 php -i | grep Configuration
不知道能不能抵御漏洞,反正重新编译后的 PHP 5.4 能正常运行
./configure 的时候配置到其他目录,比如 --prefix=/www/server/php/54-patch ,那么日志等会写入到这个目录里,启动的时候会报错,会写入到 /www/server/php/54-patch/var/log/slow.log ,中间目录不存在。
而且通过 phpinfo 看到
extension_dir /www/server/php/54-patch/lib/php/extensions/no-debug-non-zts-20100525
include_path .:/www/server/php/54-patch/lib/php

所以还是直接 --prefix=/www/server/php/54 即可,在 make install 直接备份原目录并停止旧的 PHP-FPM 进程
第 3 步的 php -i | grep Configure 的输出是 Configure Command => './configure' '--prefix=/www/server/php/54' '--with-config-file-path=/www/server/php/54/etc' '--enable-fpm' '--with-fpm-user=www' '--with-fpm-group=www' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-iconv-dir' '--with-freetype-dir=/usr/local/freetype' '--with-jpeg-dir' '--with-png-dir' '--with-zlib' '--with-libxml-dir=/usr' '--enable-xml' '--disable-rpath' '--enable-bcmath' '--enable-shmop' '--enable-sysvsem' '--enable-inline-optimization' '--with-curl=/usr/local/curl' '--enable-mbregex' '--enable-mbstring' '--with-mcrypt' '--enable-ftp' '--with-gd' '--enable-gd-native-ttf' '--with-openssl=/usr/local/openssl' '--with-mhash' '--enable-pcntl' '--enable-sockets' '--with-xmlrpc' '--enable-zip' '--enable-soap' '--with-gettext' '--disable-fileinfo' '--enable-intl' '--build=arm-linux'

带有引号的,复制到 AI 对话框里,让 AI 处理一下就好
2 天前
回复了 loserc6 创建的主题 › PHP › PHP 最新零日漏洞怎么没人讨论
7.3 及以下版本怎么办,项目里还有大量是 5.X 的版本
9 天前
回复了 v2er119 创建的主题 › 程序员 › DeepSeek 服务器暂时不可用
阿里千问经常要拖动滑块验证
是不是钱多没处花?搞一个开源版的 sublime text ,界面要高度一致
没挣到钱,做那么多有什么用
支持哪些编程语言?
9 月 28 日
回复了 shiyu2001 创建的主题 › 程序员 › 震惊瘫坐, AI 一天能把游戏做成什么样
AI 从现成的抄一个
9 月 24 日
回复了 yoyoluck 创建的主题 › 问与答 › 手机都这么贵了,越来越买不起了!
AI 越牛逼,手机就越贵,内存和硬盘都被 AI 抢着用了
9 月 16 日
回复了 Ayanokouji 创建的主题 › 程序员 › JDK 27 发布了,非 lts 版本
27 这个版本没有什么新东西
1  2  3  4  5  6  7  8  9  10 ... 63  
❮ ❯
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1324 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 37ms · UTC 20:24 · PVG 04:24 · LAX 13:24 · JFK 16:24
♥ Do have faith in what you're doing.