|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-12-04 10:50 UTC] tony2001@php.net
[2006-12-04 14:17 UTC] rommer at active dot by
[2006-12-04 14:23 UTC] tony2001@php.net
[2006-12-12 01:00 UTC] php-bugs at lists dot php dot net
[2008-12-16 14:51 UTC] michel at webawere dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 15:00:01 2025 UTC |
Description: ------------ Segmentation fault in function imap_open if script opens ~ 4000 files before. I have increased __FD_SETSIZE in /usr/include/bits/typesizes.h /usr/include/linux/posix_types.h to 262144 before compiling php (4.4.4, 5.1.6, 4.4.5-dev) Reproduce code: --------------- <? $basedir = "/tmp/php_testcase"; if (! file_exists ($basedir)) { mkdir ($basedir, 0700); } $fds = array(); for ($i = 0; $i < 4096; $i++) { $fds[] = fopen ($basedir . '/file_' . $i, 'w'); } imap_open ('{127.0.0.1:143/imap/notls}INBOX', 'test@test.com', 'test', 64); ?> Expected result: ---------------- no segfault Actual result: -------------- Segmentation fault.