Bug #10071 Updated: print and echo dont work for string of size >65k
| From: | andi@php.net | Date: | Mon, 30 Apr 2001 22:50:29 +0000 |
| Subject: | Bug #10071 Updated: print and echo dont work for string of size >65k | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-53139@lists.php.net to get a copy of this message | ||
ID: 10071
Updated by: andi
Reported By: shazlista@usa.net
Old-Status: Open
Status: Closed
Bug Type: Scripting Engine problem
PHP Version: 4.0.4pl1
Assigned To:
Comments:
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.
Previous Comments:
---------------------------------------------------------------------------
[2001-03-29 23:29:00] shazlista@usa.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).
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10071&edit=2