php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10071 print and echo dont work for string of size >65k
Submitted: 2001-03-29 23:29 UTC Modified: 2001-04-30 18:50 UTC
From: shazlista at usa dot net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.4pl1 OS: windowsNT/2000
Private report: No CVE-ID: None
 [2001-03-29 23:29 UTC] shazlista at usa dot net
If you try to print (or echo) a variable string with size larger than 65k, It does not work.
The reason of this is that the engine uses fwrite function with str_length (in this case say it is 155000) so fwrite fails because it uses size_t which is defined as unsigned int (limited to 65k).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-30 18:50 UTC] andi@php.net
Fixed in latest CVS. By the way, size_t on Windows is 32bit so the 64KB limit must be some internal buffer size of the Standard C I/O library of Windows.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 10:01:31 2024 UTC