summaryrefslogtreecommitdiff
path: root/program/lib/Net
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-10-11 06:57:14 +0000
committeralecpl <alec@alec.pl>2010-10-11 06:57:14 +0000
commit14015da43404f8c98241c174c38294d2756d3349 (patch)
treef6c45c901e64859fd24d8477e5fe32c8defae3b1 /program/lib/Net
parente2cbcac4ad7cec4cfb58f817d1608947c033e495 (diff)
- Fix Net_SMTP from http://pear.php.net/bugs/bug.php?id=17942
Diffstat (limited to 'program/lib/Net')
-rw-r--r--program/lib/Net/SMTP.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/program/lib/Net/SMTP.php b/program/lib/Net/SMTP.php
index 8b9d96749..31307f03b 100644
--- a/program/lib/Net/SMTP.php
+++ b/program/lib/Net/SMTP.php
@@ -974,6 +974,8 @@ class Net_SMTP
}
}
} 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.