PHP 4.0 Bug #5559: Unexpected Characters in Long Strings

From: Date: Thu, 13 Jul 2000 19:10:53 +0000
Subject: PHP 4.0 Bug #5559: Unexpected Characters in Long Strings
Groups: php.dev 
Request: Send a blank email to php-dev+get-24351@lists.php.net to get a copy of this message
From: rkenny@mke.catalystwms.com Operating system: Linux 2.2.14 PHP version: 4.0.0 PHP Bug Type: Scripting Engine problem Bug description: Unexpected Characters in Long Strings Checked on the mailing lists before I came here and noticed that one or two other people having the same problem. Seems that if you stuff a decent amount of text into a variable, and then use that variable to send an email using the "mail" function, you can get some unexpected characters in the resultant email. I send two emails. One email is a text message, is 3KB in size, and does not contain any errors that I can see. The other email is in HTML format, is 6KB in size, and contains exclamation points and carriage retrurns scattered around after about halfway through the email. The carriage returns are pretty harmless as browsers will ignore them when processing the HTML, but the exclamation points are screwing up my code and causing problems. I suspect that this is related to the size limitations on strings, but when I searched through your documentation on how to typecast the string to something larger, I was not able to find any such animal. Please advise.

« previous php.dev (#24351) next »