Bug #19422 [Opn->Fbk]: _read truncates cache files

From: Date: Fri, 18 May 2012 07:30:48 +0000
Subject: Bug #19422 [Opn->Fbk]: _read truncates cache files
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-8671@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=19422&edit=1 ID: 19422 Updated by: tacker@php.net Reported By: fletcher dot moore at comm dot gatech dot edu Summary: _read truncates cache files -Status: Open +Status: Feedback Type: Bug Package: Cache_Lite Operating System: OS X 10.7.3 Package Version: 1.7.12 PHP Version: 5.3.12 Roadmap Versions: New Comment: -Status: Open +Status: Feedback Hoi crackwilding, thank you for the report. Please provide the relevant code sections of your app which reproduces this error. Thanks! Previous Comments: ------------------------------------------------------------------------ [2012-05-17 23:08:24] crackwilding Description: ------------ I'm trying to read and write cache files to a directory specified by a stream wrapper generated by Drupal 7. The _read function is truncating the files to 16,352 characters, which renders them useless, not least of which because they fail checksum comparisons. This can be fixed by changing line 734 to: $data = @stream_get_contents($fp); This renders the $length variable sort of pointless, and of course it causes some issues with backward compatibility, but I wanted to know whether I'm missing something before diving into it any deeper. ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=19422&edit=1

« previous php.pear.bugs (#8671) next »