com php-src: Implement #43269: Retrieve FD_SETSIZE within PHP: main/main.c

From: Date: Fri, 08 Jul 2016 13:23:15 +0000
Subject: com php-src: Implement #43269: Retrieve FD_SETSIZE within PHP: main/main.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-92881@lists.php.net to get a copy of this message
Commit: 10e824808259dedf537ededabb9812dcae5785b5 Author: Christoph M. Becker <cmbecker69@gmx.de> Sun, 3 Jul 2016 14:16:43 +0200 Committer: Julien Pauli <jpauli@php.net> Fri, 8 Jul 2016 15:23:15 +0200 Parents: 4b483cdc9a3fb28bbd16eec49aec9308b51be9fc Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=10e824808259dedf537ededabb9812dcae5785b5 Log: Implement #43269: Retrieve FD_SETSIZE within PHP To give userland developers who work with large numbers of file descriptors the opportunity to avoid problems on systems which may not support that many descriptors (e.g. when calling socket_select()), we make FD_SETSIZE available in PHP as PHP_FD_SETSIZE. Bugs: https://bugs.php.net/43269 Changed paths: M main/main.c Diff: diff --git a/main/main.c b/main/main.c index 60b8e59..848f24f 100644 --- a/main/main.c +++ b/main/main.c @@ -2177,6 +2177,7 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod REGISTER_MAIN_LONG_CONSTANT("PHP_INT_MAX", ZEND_LONG_MAX, CONST_PERSISTENT | CONST_CS); REGISTER_MAIN_LONG_CONSTANT("PHP_INT_MIN", ZEND_LONG_MIN, CONST_PERSISTENT | CONST_CS); REGISTER_MAIN_LONG_CONSTANT("PHP_INT_SIZE", SIZEOF_ZEND_LONG, CONST_PERSISTENT | CONST_CS); + REGISTER_MAIN_LONG_CONSTANT("PHP_FD_SETSIZE", FD_SETSIZE, CONST_PERSISTENT | CONST_CS); #ifdef PHP_WIN32 REGISTER_MAIN_LONG_CONSTANT("PHP_WINDOWS_VERSION_MAJOR", EG(windows_version_info).dwMajorVersion, CONST_PERSISTENT | CONST_CS);

« previous php.cvs (#92881) next »