php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ilkka dot seittenranta at compaq dot com
New email:
PHP Version: OS:

 

 [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!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-29 11:58 UTC] sniper@php.net
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..

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 12 07:01:28 2024 UTC