Em Mon, 11 Jul 2011 00:47:50 +0100, Scott MacVicar <sc...@macvicar.net>
escreveu:
On Jul 10, 2011, at 4:46 PM, Stas Malyshev wrote:
On 7/10/11 4:23 PM, Scott MacVicar wrote:
The code for this looks really convoluted, I'm thinking we should
back out this multicast option for now. It's basically not going to
work on OSX the way its implemented from what I can tell.
I don't know much about this code (or multicast in general) but I guess
we would want a fix for that ASAP or ifdef it out on Mac or remove it
until solution is found.
Need to ifdef the entire thing, OS X lacks the index for the interface
which is passed around for enabling it in options. Maybe there is
another solution but in the hour I spent looking at it there wasn't an
easy fix.
I don't think this is true. It lakes the ioctls SIOCGIFNAME and
SIOCGIFINDEX, but if_nametoindex and if_indextoname are implemented. See:
http://developer.apple.com/library/mac/#DOCUMENTATION/Darwin/Reference/ManPages/man3/if_nametoindex.3.html
Also the code for it seems all over the place, I'd be for removing it
and adding it back in when it's more stable.
I'm not sure what you mean by this.
In any case, I've now committed a fix:
http://svn.php.net/viewvc/?view=revision&revision=313126
Please test whether this works. Stas told me some tests fail, but that can
be due to several reasons -- for instance, firewall issues. Several other
tests in ext/sockets also fail, it would be nice if someone that actually
has access to the OS could fix those.
--
Gustavo Lopes
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php