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
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:
MUST BE VALID
Solve the problem:
12 - 9 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 14:01:31 2024 UTC