|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11167 BIND-function parameter mismatch in the file ext/sockets/sockets.c
Submitted: 2001-05-29 07:59 UTC Modified: 2001-05-29 11:58 UTC
From: ilkka dot seittenranta at compaq dot com Assigned:
Status: Closed Package: Sockets related
PHP Version: 4.0.5 OS: UNIX
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
43 + 27 = ?
Subscribe to this entry?

 [2001-05-29 07:59 UTC] ilkka dot seittenranta at compaq dot com
Tru64 & PHP and the file ext/sockets/sockets.c

In the line 1164, there is a parameter mismatch in the bind function!

PHP 4.0.5:
1164: ret = bind(Z_LVAL_PP(arg0),(struct sockaddr *) sa, sizeof(sa_storage));

'Right one is':
1164: ret = bind(Z_LVAL_PP(arg0),(struct sockaddr *) sa, length);

I can't use socket option whitout i.e. modification!


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-29 11:58 UTC]
Changed. This will be fixed in PHP 4.0.6 but maybe
not in PHP 4.0.7 as the sockets extension has gone
through a huge rewrite..


PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Feb 27 01:01:28 2024 UTC