From: glox at glox dot be
Operating system: freeBSD 5.1
PHP version: 5CVS-2004-01-27 (dev)
PHP Bug Type: Sockets related
Bug description: stream_socket_server won't listen on udp sockets
Description:
------------
When trying to listen on a udp socket in freebsd with php5, php fails to
create the socket and returns unknown error.
The manual page gives an example about a udp server, however this returns
the same error.
Operating system (uname -a):
FreeBSD 5.1-RELEASE #0: Thu Jun 5 02:55:42 GMT 2003
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
PHP version (php -v):
PHP 5.0.0RC1-dev (cli) (built: Jan 16 2004 22:47:26)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.0-dev, Copyright (c) 1998-2004 Zend Technologies
PHP configure line:
./configure --with-mysql=/usr/local/mysql --with-mime-magic
--with-apxs=/usr/local/sbin/apxs --enable-wddx --with-zlib --enable-bcmath
--with-bz2 --with-ncurses --enable-cli --disable-cgi --with-gd
--with-jpeg-dir --with-png-dir --with-zlib-dir --with-calender
--enable-pcntl --enable-sysvsem --enable-sysvshm --enable-sysvmsg
--enable-exif --enable-sockets --with-xpm-dir --with-gettext --with-gmp
--enable-mbstring --with-xmlrpc --with-xsl --with-ex --enable-openssl
Reproduce code:
---------------
<?php
$sock = stream_socket_server('udp://0.0.0.0:27961');
?>
Expected result:
----------------
No output
Actual result:
--------------
Warning: stream_socket_server(): unable to connect to udp://0.0.0.0:27961
(Unknown error) in /share/wolfd/serv.php on line 2
--
Edit bug report at http://bugs.php.net/?id=27065&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27065&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27065&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27065&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27065&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27065&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27065&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27065&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27065&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27065&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27065&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27065&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27065&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27065&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27065&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27065&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27065&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27065&r=float