Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xml解释失败 #989

Closed
elinxer opened this issue Oct 31, 2017 · 3 comments
Closed

xml解释失败 #989

elinxer opened this issue Oct 31, 2017 · 3 comments

Comments

@elinxer
Copy link

elinxer commented Oct 31, 2017

我用的环境

PHP 版本:7.1
overtrue/wechat 版本:3.1^
是否使用了框架?框架名称:laravel5.5

问题及现象

在解释返回的用户信息时,xml解释失败
往后余生,风雪是你,平淡是你,清� {"exception":"[object] (ErrorException(code: 0): simplexml_load_string(): Entity: line 24: parser error : CData section not finished 往后余生,风雪是你,平淡是你,清� at /data/ops/vendor/overtrue/wechat/src/Support/XML.php:40)

@overtrue
Copy link
Collaborator

overtrue commented Dec 8, 2017

你返回的内容有问题吧,中文没正确截取?

@overtrue overtrue closed this as completed Dec 8, 2017
@scplay
Copy link
Contributor

scplay commented Dec 6, 2018

偶而也会遇到这个问题,是否因为XML中有非法字符?导致 simplexml_load_string 报错?

@TheNorthMemory
Copy link
Contributor

XML CDATA 要仔细研读一下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants