From:             amailer at gmail dot com
Operating system: Windows
PHP version:      5.0.1
PHP Bug Type:     *Directory/Filesystem functions
Bug description:  Doesn't exicuite fast enough

Description:
------------
Windows XP Pro [ test server ]
Apache 2
PHP 5 - FastCGI

Hello,
I am creating a script that will, take the given folder path and ZIP it.
It will also zip all it's subfolders and files.

I have got the script to create the subfolders correctly-- but when I try
to add the files, it takes for ever and just dies (execution time error)
Fatal error: Maximum execution time of 30 seconds exceeded in
www/test/dir/explorer.php on line 34

Now, i tried changing the ini settings of the max execution time to
ini_set("max_execution_time", 1000);
1000 seconds, yet that doens't work.

The script works only with folders that have a small amount of files and
provided that the file sizes are small also.

If i run this script to zip a folder with many files (20+) and some 1 mb
or more, the script make php use up to 98 CPU usage and yet not work, the
script then dies after some time leaving me with that error.

Shouldn't this be a bit more quicker in zipping files? I mean, it uses so
much of the CPU usage it lags my test server so much  (even with manually
zipping it's 10x faster then that)

Hope you guys can help,
Thank you

Reproduce code:
---------------
For the source code please visit:
http://amailer.sourceforge.net/explorer.phps

I cannot provide a link to view the script in action because it lags up
the server too much, sorry.

Expected result:
----------------
I want it to zip a folder with all it's subfolders and files, and save it.

Actual result:
--------------
Fatal error: Maximum execution time of 1000 seconds exceeded in C:\Program
Files\Apache
Group\Apache2\htdocs\termix\SUBDOMAIN\gfx-pro\Explorer\explorer.php on
line 88

-- 
Edit bug report at http://bugs.php.net/?id=29794&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=29794&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29794&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29794&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=29794&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=29794&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=29794&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=29794&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=29794&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=29794&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=29794&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=29794&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=29794&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=29794&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=29794&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=29794&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=29794&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=29794&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=29794&r=float

Reply via email to