It appears that fsockopen prior to php5 did not need the unix:// qualifier when opening a unix domain socket:
php4: fsockopen("/tmp/mysocket"......);
php5: fsockopen("unix:///tmp/mysocket"......);
This caught me out when upgrading.
Domaine Unix : UNIX et UDG
unix:// et udg:// (udg:// depuis PHP 5).
- unix:///tmp/mysock
- udg:///tmp/mysock
unix:// fournit l'accès à un flux de type socket, sur un domaine Unix. udg:// fournit un mode de transport alternatif, avec un protocole de datagrammes utilisateurs.
Les sockets du domaine Unix, contrairement à celles du domaine Internet, n'utilisent pas de numéro de port. Dans ce cas, le paramètre portno de fsockopen() doit valoir 0.
Domaine Unix : UNIX et UDG
Matthew Fortune
16-Feb-2007 12:03
16-Feb-2007 12:03
