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

socket_create 方法返回类型问题 #4657

Closed
huangdijia opened this issue Mar 23, 2022 · 2 comments
Closed

socket_create 方法返回类型问题 #4657

huangdijia opened this issue Mar 23, 2022 · 2 comments
Assignees

Comments

@huangdijia
Copy link

编译 swoole 时设置 ./configure --enable-sockets 之后, socket_create() 方法返回的类型是 Swoole\Coroutinue\Socket 对象。现遇到问题,monolog 使用 SyslogUdpHandler 的时候,对 socket 的判断就会出问题。

判断代码:

https://github.com/Seldaek/monolog/blob/f2f66cd480df5f165391ff9b6332700d467b25ac/src/Monolog/Handler/SyslogUdp/UdpSocket.php#L60-L66

@NathanFreeman NathanFreeman self-assigned this Mar 24, 2022
matyhtf pushed a commit that referenced this issue Mar 30, 2022
* fix bug #4657

* test

* test

* test

* optimize code

* test
@limingxinleo
Copy link
Contributor

已经 fix 了 @huangdijia

@huangdijia
Copy link
Author

已经 fix 了 @huangdijia

坐等发版,感谢

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

3 participants