Re: [PHP4BETA] PF_INET
| From: | Jonathan Perret | Date: | Mon, 22 Nov 1999 22:07:59 +0000 |
| Subject: | Re: [PHP4BETA] PF_INET | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-6706@lists.php.net to get a copy of this message | ||
>> PHP is using socket(PF_xxx) (in ftp) AND socket(AF_xxx)
>> (in standard).
>>
>> You can't allow it to be half-correct... Either change
>> the older code to use PF_xxx, or put the newest code in
>> line with the rest by using AF_xxx.
>>
>> BeOS is not a reference here (its socket implementation is far from
>> conformant anyway), but are you sure every system has the PF_xxx
>> defines ? For example, the Linux socket(2) man page mentions only
>> AF_xxx, not PF_xxx.
>
> Often programmers misuse AF_INET/PF_INET, because their
> applications work with either of them.
Yes, yes, yes. I _understand_ that everybody should use PF_INET
in socket(). I also suspect that 99% of programmers use AF_INET
instead, but that's not the point at all.
Heck, I promise to use PF_INET next time I call select() ;-)
But what are you going to do about the _PHP source_ ???
Cheers,
--Jonathan