For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > January 2006 > #35859 [Opn]: fread limited to 8K









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #35859 [Opn]: fread limited to 8K
nlopess@php.net

2006-01-09, 8:03 pm

ID: 35859
Updated by: nlopess@php.net
Reported By: cpuidle at gmx dot de
Status: Open
Bug Type: Documentation problem
Operating System: WinXP SP2
PHP Version: 5.1.1
New Comment:

the packet size is 8k (8192)..


Previous Comments:
------------------------------------------------------------------------

[2006-01-09 17:58:49] nlopess@php.net

Jakub probably clicked in the wrong button :)
Anyway I think that the packet size (4k) should also be documented,
thus leaving this bug open.

------------------------------------------------------------------------

[2006-01-09 16:25:23] vrana@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.



------------------------------------------------------------------------

[2006-01-06 16:55:51] cpuidle at gmx dot de

OK, at least a documentation problem, thanks. The dependency on stread
wrappers still seem to be a non-docs bug to me. And the sudden change
in behaviour certainly doesn't help with the often-claimed enterprise
readiness...
Why should existing 5.0.5 code suddenly break with 5.1.1?

------------------------------------------------------------------------

[2006-01-06 16:50:09] sniper@php.net

reclassified (see bug #30936 for Wez's comment)

------------------------------------------------------------------------

[2005-12-31 15:36:16] cpuidle at gmx dot de

The documentation reads:

> fread() reads up to length bytes from the file pointer referenced by

handle. Reading stops when up to length bytes have been read, EOF (end
of file) is reached, or (for network streams) when a packet becomes
available, whichever comes first.

Neither of the conditions is satisfied. The internal 8K limit is *not*
documented?

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/35859

--
Edit this bug report at http://bugs.php.net/?id=35859&edit=1
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com