homepage Welcome to WebmasterWorld Guest from 54.145.183.126
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Bug in PHP Version 4.1.2
Execution of large files will silently fail.
andreasfriedrich

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 1068 posted 3:51 am on Nov 8, 2002 (gmt 0)

I just spent a couple of hours finding a presumed bug in my beloved CMS. However, it turns out my CMS is ok. It seems that there is a bug in PHP Version 4.1.2 which will prevent you from executing large files.

When you include large files (mine was about 170k) the whole script will fail to execute. Simply reducing the size to below 170k by deleting some text from an heredoc without changing any other code will get the script to work. A much simpler (just one heredoc that is echoed) but larger file failed when it got bigger than 240k.

Running both scripts under PHP Version 4.2.3 worked without errors.

There was a question about the maximal size of arrays [webmasterworld.com] a while ago where the script failed once the array got really big. I wouldn´t be surprised if the same script would be running fine in a newer PHP version.

Comments welcome. Have you experienced similar bugs in PHP.

Andreas

 

dingman

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 1068 posted 7:02 am on Nov 8, 2002 (gmt 0)

I just looked at the biggest include files I seem to use in my own creations are on the order of 20k. About that size I tend to split things off into separate files to make it easier for me to keep track of. Seems there's a bug in my brain that makes me handle large files poorly ;)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved