[PHP-DEV] Bug #10071 Updated: print and echo dont work for string of size >65k From: andi <email protected>
Date: 04/30/01

ID: 10071
Updated by: andi
Reported By: shazlista <email protected>
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 <email protected>
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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>