ID: 48326
Comment by: VJTD3 at VJTD3 dot com
Reported By: VJTD3 at VJTD3 dot com
Status: To be documented
Bug Type: Sockets related
Operating System: *
PHP Version: 5.*, 6CVS (2009-05-19)
New Comment:
<?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
Previous Comments:
------------------------------------------------------------------------
[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] [email protected]
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] [email protected]
To be documented: MSG_DONTWAIT added in PHP 6.
------------------------------------------------------------------------
[2009-05-19 12:00:42] [email protected]
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.
------------------------------------------------------------------------
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
http://bugs.php.net/48326
--
Edit this bug report at http://bugs.php.net/?id=48326&edit=1