ID:               40873
 Updated by:       [EMAIL PROTECTED]
 Reported By:      php-bugs at spuetz dot ath dot cx
-Status:           Open
+Status:           Bogus
 Bug Type:         Zip Related
 Operating System: Linux 64bit
 PHP Version:      5.2.1
-Assigned To:      
+Assigned To:      pajoye
 New Comment:

You reach the file limit of your OS.

See:http://pecl.php.net/bugs/bug.php?id=8714

You can increase it (see the manual of your OS to know how to increase
it). By the way, having less than 1000 for a linux web server is not
really a good idea.

It is a duplicated bug (> bogus) as we already have one as feature to
use the php stream api internally (with IO ctx).


Previous Comments:
------------------------------------------------------------------------

[2007-03-20 20:05:05] php-bugs at spuetz dot ath dot cx

Description:
------------
If a zip file contains more than 8xx files, ZipArchive::open returns
ZIPARCHIVE::ER_READ. It's working under 32bit, but failling under 64bit
systems (I tried two amd 64 systems).

5.2.1 and php5.2-200703201930 doesn't work.

Is this really a php issue?

Reproduce code:
---------------
#!/bin/sh
rm -rf test1 test2 test1.zip test2.zip
mkdir test1 test2
cd test1
php -r 'for ($i = 1; $i < 800; $i++) system("touch test$i.txt");'
cd ../
zip -r test1.zip test1 > /dev/null
php -r '$zip = new ZipArchive(); var_dump($zip->open("test1.zip"));
var_dump($zip->numFiles);'

cd test2
php -r 'for ($i = 1; $i < 876; $i++) system("touch test$i.txt");'
cd ../
zip -r test2.zip test2 > /dev/null
php -r '$zip = new ZipArchive(); var_dump($zip->open("test2.zip"));
var_dump($zip->numFiles);'


Expected result:
----------------
[EMAIL PROTECTED] zip]$ sh ./zip.sh 
bool(true)
int(800)
bool(true)
int(876)



Actual result:
--------------
[EMAIL PROTECTED] zip]$ sh ./zip.sh 
bool(true)
int(800)
int(5)
int(0)



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=40873&edit=1

Reply via email to