[PHP-DEV] PHP 4.0 Bug #7726: missing SUN_LEN and msg_flags in struct msghdr From: p.pastori <email protected>
Date: 11/09/00

From: p.pastori <email protected>
Operating system: IRIX 6.5 (6.5.8m)
PHP version: 4.0.3pl1
PHP Bug Type: Sockets related
Bug description: missing SUN_LEN and msg_flags in struct msghdr

On this OS the struct msghdr has not the msg_flags field, i patched this simply avoiding any assignement to this field (that is commenting lines 1621 and 1680 in ext/sockets/sockets.c) and assigning to 0 the value read from that field (lines 1641 and 1698): i hope no critical data are expected to be read from that field but i have still to test for.
The last thing about this source (ext/sockets/sockets.c) is that is totally missing any definition for the SUN_LEN symbol. After a little study i have patched this by simply introducing a define (AAAARGH) like the following:
#define SUN_LEN(a) sizeof(*a)

-- 
Edit Bug report at: http://bugs.php.net/?id=7726&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>