1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 17:38:14 +02:00
Files
archived-php-src/ext/standard
Wez Furlong 99e290f882 Fix for Bug #24189: possibly unsafe select(2) usage.
We avoid the problem by using poll(2).

On systems without poll(2) (older bsd-ish systems, and win32), we emulate
poll(2) using select(2) and check for valid descriptors before attempting
to access them via the descriptor sets.

If an out-of-range descriptor is detected, an E_WARNING is raised suggesting
that PHP should be recompiled with a larger FD_SETSIZE (and also with a
suggested value).

Most uses of select(2) in the source are to poll a single descriptor, so
a couple of handy wrapper functions have been added to make this easier.

A configure option --enable-fd-setsize has been added to both the unix and
win32 builds; on unix we default to 16384 and on windows we default to 256.
Windows FD_SETSIZE imposes a limit on the maximum number of descriptors that
can be select()ed at once, whereas the unix FD_SETSIZE limit is based on the
highest numbered descriptor; 256 should be plenty for PHP scripts under windows
(the default OS setting is 64).

The win32 specific parts are untested; will do that now.
2004-09-17 12:44:56 +00:00
..
2004-09-15 13:54:16 +00:00
2004-01-08 08:18:22 +00:00
2004-08-07 15:59:59 +00:00
2004-05-10 07:23:38 +00:00
2004-01-08 08:18:22 +00:00
2004-07-18 14:04:36 +00:00
2004-02-12 19:05:41 +00:00
2004-01-08 08:18:22 +00:00
2004-06-16 23:57:25 +00:00
2004-07-12 18:49:47 +00:00
2004-07-20 19:41:37 +00:00
2004-06-16 23:57:25 +00:00
2004-08-23 16:58:11 +00:00
2004-09-08 23:37:55 +00:00
2004-09-05 17:37:57 +00:00
2004-05-02 13:23:30 +00:00
2004-06-22 20:27:46 +00:00
2004-01-08 08:18:22 +00:00
2004-01-08 08:18:22 +00:00
2004-01-08 08:18:22 +00:00
2004-02-24 21:49:28 +00:00
2004-04-08 19:21:05 +00:00
2004-07-21 21:17:56 +00:00
2004-02-12 19:05:41 +00:00
2004-06-16 23:57:25 +00:00
2004-01-08 08:18:22 +00:00
2004-07-29 02:59:44 +00:00
2004-01-08 08:18:22 +00:00