I tried Googling and browsing through PHP docs but I can't find a limit on the maximum size of a script that PHP can execute. If there is any, what is it?
2 Answers
I would imagine it would be what the limit on your memory is minus a heck of a lot of overhead.
4 Comments
Tomas Reimers
Don't forget the execution time limit
Dave
You mean the limit is my machine's memory?
Daniel A. White
it would be a big limiting factor. plus, it would take lot of ram to analyze it and create the objects.
Brad
@Dave, That would be one of many limiting factors. I suspect it also has to do with the platform... 32-bit vs 64-bit, and the max number of lines or something like that. In any case, I've seen some monstrosities, and none of them ever hit a PHP parser limit. They will hit PHP's checks for memory limit and execution time limit first.