Bug #19709 [Ver->Csd]: SOCK_* values are wrong for Solaris

From: Date: Fri, 16 Nov 2012 19:24:56 +0000
Subject: Bug #19709 [Ver->Csd]: SOCK_* values are wrong for Solaris
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-9352@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=19709&edit=1 ID: 19709 Updated by: mike@mikepultz.com Reported By: pearbug at billmann-edv dot net Summary: SOCK_* values are wrong for Solaris -Status: Verified +Status: Closed Type: Bug Package: Net_DNS2 Operating System: Solaris Package Version: 1.2.4 PHP Version: 5.3.18 -Assigned To: +Assigned To: mikepultz Roadmap Versions: New Comment: -Status: Verified +Status: Closed -Assigned To: +Assigned To: mikepultz This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Thanks Oliver, Mike Previous Comments: ------------------------------------------------------------------------ [2012-11-16 12:36:56] orbill Hi Mike, I tested your changes and they work on Solaris :-) Thanks. While researching the problem I noticed something else in DNS2.php line 1065ff: $response->answer_from = $ns; $response->answer_socket_type = $socket_type; ... if (is_null($response)) { ... } It is probably better to check first for null and then use the object ;-) Oliver ------------------------------------------------------------------------ [2012-11-16 04:08:56] mikepultz cool- were you able to test the change I made? ------------------------------------------------------------------------ [2012-11-16 03:43:51] netvoke I see what you mean... I just looked through your code and understand what you mean and found sockets_enabled so all good with me =] ------------------------------------------------------------------------ [2012-11-16 03:09:11] mikepultz Right- I just meant that if those aren't defined in PHP, then that would mean that the sockets library isn't loaded anyway, so we'd use the Stream library instead. I use the same const values for the Streams class, but that's just in my code- not in PHP (the streams stuff uses tcp:// and udp:// URL formats). Mike ------------------------------------------------------------------------ [2012-11-16 02:49:49] netvoke The reason for adding the OS check is that if it's both undefined and Solaris then your default values would be wrong. Mind you I'm on running nginx/php on my WinXP laptop for development and stuff and do have a Ubuntu server on my home network but all things being equal I think this could annoy people. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://pear.php.net/bugs/bug.php?id=19709 -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=19709&edit=1

« previous php.pear.bugs (#9352) next »