title: "Fatal error: Call to undefined function socket_create()" even though enabled in php.ini
body: <p>I have a weird PHP problem. I am running PHP 5 on IIS in Windows 7. When I make a call to socket_create in my PHP file, like so:</p>
  
  <pre><code>$sock = socket_create(AF_INET, SOCK_DGRAM, getprotobyname('udp'));
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>Fatal error: Call to undefined function socket_create() ...
  </code></pre>
  
  <p>I have tried everything, ranging from enabling <code>extension=php_sockets.dll</code> in php.ini, php.ini-development and php.ini-production to restarting IIS and rebooting my computer.</p>
  
  <p>However, I keep getting the same error and am confused. So far I have found no solution on the internet, as I have tried everything.</p>
  
  <p>Also worth of mentioning. The dll is clearly installed in one of the subfolders.</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks</p>