php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #43269 Retreive FD_SETSIZE within PHP
Submitted: 2007-11-12 20:27 UTC Modified: 2016-07-08 18:38 UTC
Votes:2
Avg. Score:3.0 ± 2.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: quis at omicidio dot nl Assigned: cmb (profile)
Status: Closed Package: *General Issues
PHP Version: 5.2.5 OS: irrelevant (FreeBSD)
Private report: No CVE-ID: None
 [2007-11-12 20:27 UTC] quis at omicidio dot nl
Description:
------------
I`m building some portable application.
And I need to know the value of FD_SETSIZE to prevent socket_select from 'crashing'

simply (?) defining FD_SETSIZE would be greate


Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-07-02 15:27 UTC] cmb@php.net
-Status: Open +Status: Feedback -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: cmb
 [2016-07-02 15:27 UTC] cmb@php.net
> And I need to know the value of FD_SETSIZE to prevent
> socket_select from 'crashing'

In my opinion, it would be better to fix the crashing
socket_select(). So please specify the details of the crash. Is it
the same behavior as reported in bug #72030?
 [2016-07-03 11:10 UTC] quis at omicidio dot nl
-Status: Feedback +Status: Assigned
 [2016-07-03 11:10 UTC] quis at omicidio dot nl
No, IIRC (and it was 9 years ago) it was just a nice error complaining about passing in fds higher than 1024/FD_SETSIZE. I'm somewhat certain it didn't actually crash, but just returned an error.
 [2016-07-03 12:30 UTC] cmb@php.net
> […] it was just a nice error complaining about passing in fds
> higher than 1024/FD_SETSIZE.

Then I assume it was the message reported in bug #69637. I'd still
prefer to fix that issue, but making available the value of
FD_SETSIZE to userland might be desirable anyway, so I've
submitted a respective PR.
 [2016-07-08 18:38 UTC] cmb@php.net
-Status: Assigned +Status: Closed
 [2016-07-08 18:38 UTC] cmb@php.net
This feature request has been implemented. FD_SETSIZE will be
available as PHP_FD_SETSIZE as of PHP 7.1.0.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 14:01:25 2019 UTC