Re: HTML_Template_Sigma abort after 8192 chars

From: Date: Fri, 22 Feb 2008 07:12:02 +0000
Subject: Re: HTML_Template_Sigma abort after 8192 chars
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28554@lists.php.net to get a copy of this message
I have found the right hint in the php docu: fread() reads up to length bytes from the file pointer referenced by handle . Reading stops as soon as one of the following conditions is met: ... * 8192 bytes have been read (after opening userspace stream) See also: http://bugs.php.net/bug.php?id=37158 Here is a diff on Sigma.php which fixes this issue on affected systems: 1232,1235c1232 < $content=""; < while (!feof($fh)) { < $content.=fgets($fh, 32768); < } --- > $content = fread($fh, max(1, filesize($filename))); greetings mario Am Donnerstag, den 21.02.2008, 17:18 +0100 schrieb Mario Gzuk: > Hi, > if I use a templatefile which is bigger than 8192 byte all data after > that get lost. I only have this problem on a SLES10 machine and I think > it is only a wrong php setting but I cant find any difference. Maybe > someone knows the solution of this problem? > > Thank you for the great work. > > greetings mario >

« previous php.pear.general (#28554) next »