Array limit?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
AimsB
Forum Newbie
Posts: 12
Joined: Thu Jul 08, 2004 9:39 am
Location: UK

Array limit?

Post by AimsB »

I've come across an error in my script and can't work out what is wrong. The only thing I seem to be able to pin-point is that the script appears to stop working when an array I am using accumulates to a size larger than 579497 bytes! Is this a red herring in my debugging, or can PHP only store a certain amount of data in arrays?
Thanks!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

AFAIK, the limit is on your ram space available for arrays. Could you show us some of your code?
AimsB
Forum Newbie
Posts: 12
Joined: Thu Jul 08, 2004 9:39 am
Location: UK

Post by AimsB »

It's actually the following class - http://www.zend.com/codex.php?id=696&single=1. It creates a zip file, by adding the files and folders you want one at a time. I have found that sometimes my zip file is completely empty whilst other times it is fine. And it seems to be empty when I try to add too many large files. So I can only think that that is because the array used to store the data before it is zipped becomes too large, and so gets emptied?! Any idea how I can prove that theory? The data is stored into the array $datasec.
Post Reply