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

laravel-http-client包 在打包成二进制文件后,执行二进制文件出现zend_mm_heap corrupted错误 #1

Open
popfaker opened this issue Apr 24, 2023 · 3 comments

Comments

@popfaker
Copy link

感谢老哥提供的http-client客户端包,从laravel转过来上手很快。但是项目二进制打包后,会出现报错的情况。
步骤是:
1.安装http-client: php8.0 /usr/local/bin/composer require webman-tech/laravel-http-client
2.执行打包: php8.0 webman build:bin
3.执行二进制文件:./build/webman.bin start 或者查看 ./build/webman.bin status
结果:出现zend_mm_heap corrupted错误

@krissss
Copy link
Member

krissss commented Apr 24, 2023

打包二进制的形式真的没有完全测试过
laravel 底层基于 guzzle 的,你可以试下 guzzle 直接调用,看看打包后会不会出错

如果能排查到相关问题也欢迎提PR,最近也正好想看下打包二进制相关的

@popfaker
Copy link
Author

打包二进制的形式真的没有完全测试过 laravel 底层基于 guzzle 的,你可以试下 guzzle 直接调用,看看打包后会不会出错

如果能排查到相关问题也欢迎提PR,最近也正好想看下打包二进制相关的

好的好的,我试试直接用guzzle 。这是社区的question:https://www.workerman.net/q/10525

@popfaker
Copy link
Author

似乎这个错误是unset()函数引起的。通过配置也能解决
https://cloud.tencent.com/developer/ask/sof/93873
查找包内可能是illuminate/http包引起的,暂时赶项目进度,后面再调试下到底是咋回事

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

2 participants