m1 brew 安装的 PHP @7.4 使用 pgsql 提示 SIGTRAP 错误

43 天前
 ytvertigo0927

需要适配pgsqltap用的是shivammathur/php/php@7.4 php -m 包含了基本的扩展,pdo_pgsqlpgsql扩展直接编译进了内核

➜  Formula git:(master) php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
intl
json
ldap
libxml
mbstring
mysqli
mysqlnd
odbc
openssl
pcntl
pcre
PDO
pdo_dblib
pdo_mysql
PDO_ODBC
pdo_pgsql
pdo_sqlite
pgsql
Phar
phpdbg_webhelper
posix
pspell
readline
Reflection
session
shmop
SimpleXML
soap
sockets
sodium
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

但是new PDO()后直接提示

WARNING: [pool www] child 69580 exited with code 124 after 795.206755 seconds from start

有人遇到过吗

965 次点击
所在节点    PHP
7 条回复
meshell
43 天前
你问我,我肯定说没有遇到过。new PDO("不是要传 DSN 么。")。。。
8355
42 天前
非常标准的提问方式
laikick
42 天前
提问, 应该给出具体的代码, 日志. 和环境
ytvertigo0927
40 天前
@meshell 就是在 new PDO 的时候报错了,已经解决了。换成 13 重新编译了下
cs4forever
39 天前
@ytvertigo0927 macos13 吗 感谢 以前用什么系统啊
ytvertigo0927
37 天前
@cs4forever 不是,是换成 postgresl@13.不是换操作系统版本
cs4forever
37 天前
@ytvertigo0927 好的 感谢

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1062846

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX