|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2009-05-19 04:56 UTC] 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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 07:00:01 2025 UTC | 
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.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.<?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