Pyh.conf’25: a new PHP conference for the Russian-speaking community

Voting

: six minus zero?
(Example: nine)

The Note You're Voting On

MagicalTux at php dot net
14 years ago
This method may return a peer address not compatible with stream_socket_sendto() if in ipv6.

The ip returned by recvfrom is not within brackets ([]), and has the port appended, which makes it look like ::1:1234. To cut it properly, use strrpos()

<< Back to user notes page

To Top