socket_recvfrom and socket_recv constant MSG_DONTWAIT not defined
| Bug #48326 | socket_recvfrom and socket_recv constant MSG_DONTWAIT not defined | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2009-05-19 04:56 UTC | Modified: | 2021-11-10 12:13 UTC |
|
||||||||||
| From: | VJTD3 at VJTD3 dot com | Assigned: | cmb (profile) | |||||||||||
| Status: | Closed | Package: | Sockets related | |||||||||||
| PHP Version: | 5.*, 6CVS (2009-05-19) | OS: | * | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2009-05-19 05:00 UTC] 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 10:43 UTC] jani@php.net
[2009-05-19 12:00 UTC] lbarnaud@php.net
[2009-05-19 12:07 UTC] lbarnaud@php.net
[2009-05-19 18:53 UTC] VJTD3 at VJTD3 dot com
[2009-05-20 09:09 UTC] lbarnaud@php.net
[2009-07-24 21:20 UTC] 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-08-25 00:19 UTC] 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[2021-11-10 12:13 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
[2021-11-10 12:13 UTC] cmb@php.net