Bug #17473 [Opn]: undefined constant SOL_UDP

From: Date: Wed, 09 Jun 2010 21:59:34 +0000
Subject: Bug #17473 [Opn]: undefined constant SOL_UDP
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-3915@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=17473&edit=1 ID: 17473 Updated by: hm2k@php.net Reported By: hm2k at php dot net Summary: undefined constant SOL_UDP Status: Open Type: Bug Package: Net_DNS Package Version: 1.0.1 PHP Version: 5.3.2 Roadmap Versions: New Comment: It must be enabled otherwise socket_create() wouldn't exist to return that kind of error. It doesn't occur all of the time and I'm unable to isolate a case at the moment. Perhaps it wouldn't harm to check if it's defined or not and then define it if not. Previous Comments: ------------------------------------------------------------------------ [2010-06-08 00:05:02] doconnor That's really odd - SOL_UDP is part of the PHP socket extension. http://theserverpages.com/php/manual/en/function.socket-create.php Can you check your php.ini to ensure you've got it properly enabled? ------------------------------------------------------------------------ [2010-06-07 20:18:23] hm2k Description: ------------ PHP Notice: Use of undefined constant SOL_UDP - assumed 'SOL_UDP' in /usr/lib/php/Net/DNS/Resolver.php on line 950 PHP Warning: socket_create() expects parameter 3 to be long, string given in /usr/lib/php/Net/DNS/Resolver.php on line 950 Test script: --------------- I'm not 100% sure how to reproduce at this moment in time. ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=17473&edit=1

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