Re: Binary Safety and Sockets
| From: | Evan Nemerson | Date: | Fri, 20 Sep 2002 19:44:42 +0000 |
| Subject: | Re: Binary Safety and Sockets | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-117052@lists.php.net to get a copy of this message | ||
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 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? How can I tell? When will they be?
>
> And, while we're on the subject, in general, are PHP functions binary
> safe? Should I assume functions aren't binary safe unless noted
> otherwise - or should I assume the inverse?
>
> If anyone could shed some light on this, I'd appreciate it.
>
> Hans
>
>
>
> __________________________________________________
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.yahoo.com