Limit of opened files under PHP ?

From: Date: Wed, 24 Sep 2014 17:30:51 +0000
Subject: Limit of opened files under PHP ?
Groups: php.internals.win 
Request: Send a blank email to internals-win+get-1072@lists.php.net to get a copy of this message
Hi Php Team, I use PHP on many projects (under Linux, Windows, ...), on many systems (Linux shared or dedicated servers, Windows desktop or server) and use this great software as much as posible ^^ On one of these projects, I use PHP as a windows service (or command line process with php page) that works about 1000 remotes sites. I use curl_multi_exec with a process on these 1000 sites and haven't any problem with the process. I recently decided to trace logs of process per site. The problem is I have 509 files on 1000 which are wrote correctly (each about 10 Kb) but the 491 other files stay at 0 Kb. After google searches, it's a limit of maximum opened files per process on Windows (seems 512 - stdin, stdout, stderr = 509). See : _getmaxstdio: http://msdn.microsoft.com/fr-fr/library/xt874334(v=vs.80).aspx _setmaxstdio: http://msdn.microsoft.com/fr-fr/library/6e3b887c(v=vs.80).aspx Is there a way that php set (per exemple via ini_set) this limit to another value before I launch my curl_multi_exec process (I don't find it in the source code of PHP)? Regards, Jean Louis.

« previous php.internals.win (#1072) next »