--- php-4.4.1/ext/standard/mail.c 2005-07-26 12:32:58.000000000 +0300 +++ php-4.4.1-patched/ext/standard/mail.c 2005-11-30 17:18:10.816861032 +0200 @@ -78,6 +78,35 @@ } /* }}} */ +int havenl(const char *str, int strln){ + int i; + if (!str) + return 0; + for (i=0; i 0) { to_r = estrndup(to, to_len); for (; to_len; to_len--) {