SeasX / SeasLog

An effective,fast,stable log extension for PHP.http://pecl.php.net/package/SeasLog http://php.net/SeasLog
http://seasx.github.io/SeasLog/
Other
1.2k stars 276 forks source link

/usr/lib64/php/modules/seaslog.so: undefined symbol: php_json_encode #316

Closed yuebin1009 closed 2 years ago

yuebin1009 commented 2 years ago

/usr/lib64/php/modules/seaslog.so: undefined symbol: php_json_encode PHP 7.4.6 (cli) (built: May 12 2020 08:09:15) ( NTS )

yuebin1009 commented 2 years ago

有人帮忙分析问题吗 与php7.4版本不兼容吗

Rock-Lee-520 commented 2 years ago

/usr/lib64/php/modules/seaslog.so: undefined symbol: php_json_encode PHP 7.4.6 (cli) (built: May 12 2020 08:09:15) ( NTS )

php -m ,然后复制发一下 @yuebin1009

yuebin1009 commented 2 years ago

php -m PHP Warning:  PHP Startup: Unable to load dynamic library 'seaslog.so' (tried: /usr/lib64/php/modules/seaslog.so (/usr/lib64/php/modules/seaslog.so: undefined symbol: php_json_encode), /usr/lib64/php/modules/seaslog.so.so (/usr/lib64/php/modules/seaslog.so.so: undefined symbol: php_json_encode)) in Unknown on line 0 [PHP Modules] bz2 calendar Core ctype curl date dom exif fileinfo filter ftp gd gettext hash iconv json libxml mbstring mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar readline Reflection session SimpleXML sockets SPL sqlite3 standard tokenizer xml xmlreader xmlwriter xsl Zend OPcache zlib

[Zend Modules] Zend OPcache

------------------ 原始邮件 ------------------ 发件人: "SeasX/SeasLog" @.>; 发送时间: 2022年5月2日(星期一) 晚上11:50 @.>; @.**@.>; 主题: Re: [SeasX/SeasLog] /usr/lib64/php/modules/seaslog.so: undefined symbol: php_json_encode (Issue #316)

/usr/lib64/php/modules/seaslog.so: undefined symbol: php_json_encode PHP 7.4.6 (cli) (built: May 12 2020 08:09:15) ( NTS )

php -m ,然后复制发一下

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Rock-Lee-520 commented 2 years ago

是不是json 扩展没有安装? 如果有可能是扩展加载顺序的问题,去掉php.ini 中的extension=seaslog.so 改在conf.d中新增文件seaslog.ini ,内容为:extension=seaslog.so

yuebin1009 commented 2 years ago

是不是json 扩展没有安装? 如果有可能是扩展加载顺序的问题,去掉php.ini 中的extension=seaslog.so 改在conf.d中新增文件seaslog.ini ,内容为:extension=seaslog.so

好的