-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
关于字符串中的'\0'字符 #3
Comments
swoole支持二进制传输,PHP的string函数也是二进制安全的。 \0没有收到数据是客户端代码swoole_client类的一个bug,漏传长度。现已解决,请git pull代码重新测试下 |
ghost
mentioned this issue
May 29, 2015
Closed
Closed
Closed
Closed
This was referenced Dec 25, 2015
Closed
Closed
Closed
This was referenced Feb 12, 2020
Closed
Closed
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你好,
请问在传输的字符串中插入'\0'字符或者或者其他特殊字符可以吗
我在测试时发现如果传输的字符串中包含'\0'字符就会被截断,后面的内容就不会传输了
比如发送的是:"abcdef\00ABCDEF"
接收到的就只有:"abcdef"
但是利用strlen计算,发送端的长度为13,接收端得到的长度为6
不知道是我的编译环境的问题还是php语言本身的设定就是这样,本人刚学php,好多东西都不懂~
The text was updated successfully, but these errors were encountered: