#48326 [Asn->Csd]: socket_recvfrom and socket_recv constant MSG_DONTWAIT not defined
| From: | lbarnaud@php.net | Date: | Tue, 19 May 2009 12:00:43 +0000 |
| Subject: | #48326 [Asn->Csd]: socket_recvfrom and socket_recv constant MSG_DONTWAIT not defined | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-137496@lists.php.net to get a copy of this message | ||
ID: 48326
Updated by: lbarnaud@php.net
Reported By: VJTD3 at VJTD3 dot com
-Status: Assigned
+Status: Closed
Bug Type: Sockets related
Operating System: *
PHP Version: 5.*, 6CVS (2009-05-19)
Assigned To: lbarnaud
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Added MSG_DONTWAIT constant in HEAD (php6), it will be defined if the
system provides it.
stream_set_blocking() should be used if not.
Previous Comments:
------------------------------------------------------------------------
[2009-05-19 10:43:15] jani@php.net
AFAICT, this is not really a bug since that constant has never existed.
I guess Arnaud is going to add it..:)
------------------------------------------------------------------------
[2009-05-19 05:00:09] VJTD3 at VJTD3 dot com
print (defined('MSG_DONTWAIT') ? 'defined:'.constant('MSG_DONTWAIT') :
'not defined');
just a typo fix in the example, missed the ', it's a bug just a typo in
my example.
------------------------------------------------------------------------
[2009-05-19 04:56:58] VJTD3 at VJTD3 dot com
Description:
------------
socket_recvfrom and socket_recv function flag of the constant
MSG_DONTWAIT are not defined.
Reproduce code:
---------------
print (defined(MSG_DONTWAIT) ? 'defined:'.constant(MSG_DONTWAIT) : 'not
defined');
Expected result:
----------------
'defined:' and the value of the constant MSG_DONTWAIT
Actual result:
--------------
not defined
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48326&edit=1