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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: shazlista at usa dot net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sun Nov 10 05:01:28 2024 UTC