From: s dot daudell at boldwebservices dot com
Operating system: Windows XP Pro
PHP version: 5.3.0
PHP Bug Type: Sockets related
Bug description: called to undefined function socket_create
Description:
------------
I just installed a newer version of WAMP, with php 5.3.0 and enabled
sockets.
This script has worked fine on older versions of php, but now is coming up
with an 'called to undefined function socket_create();' error
Reproduce code:
---------------
//-- Set some variables
$host = "192.168.1.103";
$port = 9001;
//-- Create socket
$socket = socket_create(AF_INET, SOCK_STREAM, 0) or die("Could not create
socket\n");
//-- Bind socket to port
socket_bind($socket, $host, $port) or die("Could not bind to socket\n");
echo "Binded to server address: ".$host."\r\n"."On port:
".$port."\r\n\r\n";
//-- Start listening for connections
socket_listen($socket, 3) or die("Could not set up socket listener\n");
echo "Waiting for connections...\r\n";
Expected result:
----------------
It should start listening for raw text to come in on that data.
--
Edit bug report at http://bugs.php.net/?id=49166&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=49166&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=49166&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=49166&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=49166&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=49166&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=49166&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=49166&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=49166&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=49166&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=49166&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=49166&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=49166&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=49166&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=49166&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49166&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49166&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=49166&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=49166&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=49166&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=49166&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=49166&r=mysqlcfg