xp-framework/xp-framework — Issue #106: ResouceProvider cannot read large files complete
Author: Stormwind
Created: 2012-01-05 13:12:45+00:00
State: open

Hi,

when I'm using the ResourceProvider class to load large file I cannot cross a hard limit of 8192 bytes.
I threw an Exception in the stream_read method, but even this didn't give me a hint:

> at lang.ResourceProvider::stream_read(8192) [line 0 of StackTraceElement.class.php]
> at

::fread(Resource id #180, 31272) [line 375 of File.class.php]
> at io.File::read(31272) [line 130 ...

I've created two unittests to show the problem more reproduceable:
https://gist.github.com/1565142
(You have to create an src folder for the class and the txt file. I don't know how to create a folder in a Gist ;) )