[PHP] Binary Safety and Sockets

2002-09-20 Thread Hans Zaunere
I'm working with the socket_* function (--enable-sockets) and have been seeing some wierd issues. I'm guessing it has to do with socket_recvfrom/sendto etc not being binary safe. This is 4.2.3 on FreeBSD 4.6.2. My question is: what functions, specifically socket_* functions, are binary safe?

Re: [PHP] Binary Safety and Sockets

2002-09-20 Thread Evan Nemerson
Don't assume either way, especially since sockets are currently experimental. If you're worried it isn't binary safe, you could base64_encode() and base64_decode everything... Extra bandwidth, but at least it will work. On Friday 20 September 2002 10:10, Hans Zaunere wrote: I'm working with

Re: [PHP] Binary Safety and Sockets

2002-09-20 Thread Hans Zaunere
Hrmm... Well the base64_* bit would work for the payload, but I'm working with raw sockets (ICMP at the moment) and of course the header needs to be really binary. Are the socket_*() planned on being binary safe in the near future? Anyone do traceroute/ping in PHP yet? Hans --- Evan