php-src/ext
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
..
bcmath Bugfix# 28829 bcmath values for 0, 1, and 2 initialized/freed at wrong time for threaded sapis. 2004-07-14 00:14:43 +00:00
bz2 Persistent mallocs can return NULL (on failure) 2004-07-21 02:38:40 +00:00
calendar "The Visa to Sibiria" (work in progress) 2004-03-23 19:46:10 +00:00
com_dotnet Fix for Bug #29490 from Michael Sisolak. 2004-08-07 21:00:59 +00:00
cpdf That hashtable should never have been an argument.... 2004-07-01 04:43:29 +00:00
ctype - Correct range checks. 2004-07-20 20:08:08 +00:00
curl fix wrong check from return value, binary content should not be \0'd, 2004-09-10 20:36:45 +00:00
dba Fix issue in test 2004-08-19 08:04:20 +00:00
dbase "The Visa to Sibiria" (work in progress) 2004-03-23 19:46:10 +00:00
dbx Call functions by their new, proper names instead of what are now aliases. 2004-05-06 12:22:14 +00:00
dio Adjusted input check. 2004-09-03 03:35:22 +00:00
dom remove cloning under ze1_compatibility_mode 2004-08-30 15:07:20 +00:00
enchant It's stable now. 2004-08-11 20:31:39 +00:00
ereg fix yet another annoying compile warning 2004-08-13 14:59:58 +00:00
exif "The Visa to Sibiria" (work in progress) 2004-03-23 19:46:10 +00:00
fam - Removed unused INI sections. 2004-05-20 17:03:24 +00:00
fbsql Add fbsql_rows_fetched() - returns the total number of rows fetched. 2004-08-24 17:59:01 +00:00
fdf - Remove unused blocks 2004-05-19 08:56:50 +00:00
fileinfo Adjust magic path ordering. 2004-08-20 15:11:49 +00:00
filepro more visa to sibira ;) 2004-03-24 18:43:23 +00:00
ftp Fix for Bug #24189: possibly unsafe select(2) usage. 2004-09-17 12:44:56 +00:00
gd Move global symbols defined by bundled copy of libgd into private 2004-08-31 16:41:29 +00:00
gettext Fixed bug #29264. Newer libintl redefines function names so all 2004-07-29 22:23:23 +00:00
gmp Fixed bug #28525 (gmp_powm() does not work with hexadecimal string modulo 2004-06-09 14:39:33 +00:00
hwapi proto fixes 2003-06-15 16:04:31 +00:00
iconv fix compile warning 2004-08-13 14:52:27 +00:00
imap More spaces -> tabs. 2004-08-12 19:31:36 +00:00
informix Fix compilation on Windows (bug #29340) 2004-07-29 21:09:23 +00:00
ingres_ii Fixed possible memory leak. 2004-05-18 23:26:53 +00:00
interbase Don't copy ini items to module globals 2004-07-06 13:46:19 +00:00
ldap Removed pointless allocation check. 2004-06-28 22:31:28 +00:00
libxml implement php_libxml_xmlCheckUTF8 2004-09-08 10:15:41 +00:00
mbstring MFB: Enforce protocol on magic methods/functions 2004-08-02 08:27:57 +00:00
mcrypt - Remove unused blocks 2004-05-19 08:56:50 +00:00
mcve Update the mcve module for libmonetra 4.0 2004-05-30 22:41:24 +00:00
mhash - Renamed all *php4* files to *php5*, changed all php4/PHP4 to php5/PHP5 2004-01-17 13:00:38 +00:00
mime_magic sys/stat.h is includes in php_streams.h no need to do that again. 2004-08-03 04:15:34 +00:00
ming Proper #ifdef'ing 2004-09-09 09:08:33 +00:00
mnogosearch - A fix for building of shared mnogosearch module 2004-08-29 10:59:33 +00:00
msession Another instance where alloca() is not needed. 2004-06-30 13:43:16 +00:00
msql - Nuke empty_string. It is a reminanent from the time where RETURN_FALSE() 2004-07-19 07:19:50 +00:00
mssql Fif for #28047. Set correct debug options for debug_ts build 2004-08-30 19:01:58 +00:00
mysql - Nuke empty_string. It is a reminanent from the time where RETURN_FALSE() 2004-07-19 07:19:50 +00:00
mysqli forgot to remove comment in last commit 2004-09-04 14:16:52 +00:00
ncurses - Removed unused INI sections. 2004-05-20 17:03:24 +00:00
oci8 64-bit related changes 2004-09-12 06:38:31 +00:00
odbc Checking in a patch by Dave Lawson (dlawson@masterytech.com) to correct 2004-08-13 19:33:24 +00:00
openssl Fix for Bug #24189: possibly unsafe select(2) usage. 2004-09-17 12:44:56 +00:00
oracle "The Visa to Sibiria" (work in progress) 2004-03-23 19:46:10 +00:00
ovrimos - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
pcntl - Fixed bug #29873 (No defines around pcntl_*priority definitions). 2004-08-28 12:20:06 +00:00
pcre MFB. 2004-08-25 20:48:48 +00:00
pdo fix leak 2004-08-29 06:10:47 +00:00
pdo_firebird Changed name to all caps 2004-06-23 13:42:06 +00:00
pdo_mysql Make clear this is PDO support 2004-08-15 19:17:58 +00:00
pdo_oci Fix some misbehaving pecls (my own included ;-) 2004-07-31 18:46:18 +00:00
pdo_odbc Allow use of scrollable cursor for ODBC 2004-05-25 18:57:50 +00:00
pdo_pgsql Add missing module deps 2004-08-11 21:04:36 +00:00
pfpro Free vars before calling E_ERROR. 2004-05-20 00:11:23 +00:00
pgsql - Nuke empty_string. It is a reminanent from the time where RETURN_FALSE() 2004-07-19 07:19:50 +00:00
posix Simplify code via the use of macros. 2004-04-18 21:49:10 +00:00
pspell - Remove unused blocks 2004-05-19 08:56:50 +00:00
readline standardize the callback support to allow array($obj, 'method') callbacks. 2004-09-17 11:26:43 +00:00
recode Prevent bug reports like #27260 2004-02-15 17:54:19 +00:00
reflection Fix test: Classes cannot extend Interfaces 2004-08-26 22:58:12 +00:00
session Fixed compiler warnings. 2004-09-14 23:57:53 +00:00
shmop Corrected package file. 2004-03-25 20:01:18 +00:00
simplexml remove cloning under ze1_compatibility_mode 2004-08-30 17:29:22 +00:00
skeleton - Remove unused blocks 2004-05-19 08:56:50 +00:00
snmp Fixed bug #27661 (snmpget() does not close the socket in some cases). 2004-03-23 23:12:50 +00:00
soap Fix for Bug #24189: possibly unsafe select(2) usage. 2004-09-17 12:44:56 +00:00
sockets Fix for Bug #24189: possibly unsafe select(2) usage. 2004-09-17 12:44:56 +00:00
spl add new test 2004-09-09 07:46:19 +00:00
sqlite Allow sqlite_fetch_column_types() to properly handle table names with 2004-08-02 22:43:40 +00:00
standard Fix for Bug #24189: possibly unsafe select(2) usage. 2004-09-17 12:44:56 +00:00
sybase - Nuke empty_string. It is a reminanent from the time where RETURN_FALSE() 2004-07-19 07:19:50 +00:00
sybase_ct - Defaulted ini variable "sybct.deadlock_retry_count" to 0 2004-09-09 19:17:50 +00:00
sysvmsg - Remove unused blocks 2004-05-19 08:45:46 +00:00
sysvsem "The Visa to Sibiria" (work in progress) 2004-03-23 19:46:10 +00:00
sysvshm Fixed possible memory leaks. 2004-04-21 00:11:28 +00:00
tidy Removed examples which don't actually work anymore for PHP 4, and 2004-08-28 18:10:21 +00:00
tokenizer more visa to sibira ;) 2004-03-24 18:43:23 +00:00
w32api - Better stability during premature shutdown of request startup 2004-07-10 07:46:17 +00:00
wddx - Nuke empty_string. It is a reminanent from the time where RETURN_FALSE() 2004-07-19 07:19:50 +00:00
xml fix for bug #29657 xml_* functions throw non descriptive error, compared to php4 2004-08-19 12:18:25 +00:00
xmlreader no longer experimental 2004-08-26 20:17:20 +00:00
xmlrpc Fixed bug #28597 (xmlrpc_encode_request() incorrectly encodes chars in 2004-06-01 20:16:06 +00:00
xmlwriter Fix some misbehaving pecls (my own included ;-) 2004-07-31 18:46:18 +00:00
xsl fix issue with multiple xsl objects using registerPHPfunctions 2004-09-08 16:54:17 +00:00
yp Added missing argument check. 2004-05-31 21:01:29 +00:00
zlib Fixed a nasty resource/memory/disk-space leak when opening zlib files 2004-08-26 23:36:05 +00:00
ext_skel ; 2004-05-16 12:10:35 +00:00
ext_skel_win32.php On win32 extensions starts with php_ 2003-10-29 05:42:26 +00:00