From 14015da43404f8c98241c174c38294d2756d3349 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Mon, 11 Oct 2010 02:57:14 -0400 Subject: [PATCH] - Fix Net_SMTP from http://pear.php.net/bugs/bug.php?id=17942 --- program/lib/Net/SMTP.php | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/program/lib/Net/SMTP.php b/program/lib/Net/SMTP.php index 8b9d967..31307f0 100644 --- a/program/lib/Net/SMTP.php +++ b/program/lib/Net/SMTP.php @@ -974,6 +974,8 @@ } } } else { + if (!isset($size)) + $size = strlen($data); /* * Break up the data by sending one chunk (up to 512k) at a time. * This approach reduces our peak memory usage. -- Gitblit v1.9.1