Bug #48326 [Opn->Csd]: socket_recvfrom and socket_recv constant MSG_DONTWAIT not defined
From: cmb@php.net Date: Wed, 10 Nov 2021 12:13:31 +0000 Subject: Bug #48326 [Opn->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-237663@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=48326&edit=1
ID: 48326
Updated by: cmb@php.net
Reported by: VJTD3 at VJTD3 dot com
Summary: socket_recvfrom and socket_recv constant
MSG_DONTWAIT not defined
-Status: Open
+Status: Closed
Type: Bug
Package: Sockets related
Operating System: *
PHP Version: 5.*, 6CVS (2009-05-19)
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Apparently, it has been forgotten to close this.
Previous Comments:
------------------------------------------------------------------------
[2009-08-25 00:19:15] VJTD3 at VJTD3 dot com
<?php
function workaround() {
if (!defined('MSG_DONTWAIT')) {
define('MSG_DONTWAIT', 0x40);
return 1;
}
}
workaround();
?>
workaround... return 1 if it was used... maybe useful for some kinda debug... also the Compat
Project
------------------------------------------------------------------------
[2009-07-24 21:20:28] register at brekerbohm dot net
On Windows Systems it still don't work. I use PHP 5.3 and I can't work really well so.
I've hard problems because of that.
Is there any solution?
If I use the Testcode above ( print (defined('MSG_DONTWAIT') ?
'defined:'.constant('MSG_DONTWAIT') : 'not defined'); ) it prints not
defined.
------------------------------------------------------------------------
[2009-05-20 09:09:03] lbarnaud@php.net
Added to 5.2/5.3.
To be documented: Since PHP 5.2.10; If system supports it.
------------------------------------------------------------------------
[2009-05-19 18:53:11] VJTD3 at VJTD3 dot com
just a workaround, defining it manually or passing 0x40 directly will solve the problem till the
release.
------------------------------------------------------------------------
[2009-05-19 12:07:25] lbarnaud@php.net
To be documented: MSG_DONTWAIT added in PHP 6.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=48326
--
Edit this bug report at https://bugs.php.net/bug.php?id=48326&edit=1
Thread (11 messages)
- #48326 [Opn]: socket_recvfrom and socket_recv constant MSG_DONTWAIT not defined
- #48326 [Opn->Asn]: socket_recvfrom and socket_recv constant MSG_DONTWAIT not defined
- #48326 [Asn]: socket_recvfrom and socket_recv constant MSG_DONTWAIT not defined
- #48326 [Asn->Csd]: socket_recvfrom and socket_recv constant MSG_DONTWAIT not defined
- #48326 [Csd->Tbd]: socket_recvfrom and socket_recv constant MSG_DONTWAIT not defined
- #48326 [Tbd]: socket_recvfrom and socket_recv constant MSG_DONTWAIT not defined
- #48326 [Tbd]: socket_recvfrom and socket_recv constant MSG_DONTWAIT not defined
- #48326 [Com]: socket_recvfrom and socket_recv constant MSG_DONTWAIT not defined
- #48326 [Com]: socket_recvfrom and socket_recv constant MSG_DONTWAIT not defined
- Bug #48326 [Opn->Csd]: socket_recvfrom and socket_recv constant MSG_DONTWAIT not defined
| « previous | php.bugs (#237663) | next » |
|---|