Re: cvs: qaweb / buildtest-process.php
| From: | Xavier Spriet | Date: | Tue, 17 Dec 2002 00:23:46 +0000 |
| Subject: | Re: cvs: qaweb / buildtest-process.php | ||
| References: | 1 2 3 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-7302@lists.php.net to get a copy of this message | ||
This is just an idea... This would probably do the trick but hasn't been
tested.
if (isset($_POST['php_test_data'])) {
$limit = 90000;
$data = base64_decode(urldecode($_POST['php_test_data']));
if (strlen($data) > $limit) {
$parts = $chunks = intval(ceil(strlen($_POST['php_test_data']) /
$limit));
while ($chunks) {
mail ("php-qa@lists.php.net", "Test results (Part " . $chunks . "/"
.
$parts . ")",
substr($data, 0, $limit),
"From: noreply@php.net");
$data = substr($data, $limit, NULL);
$chunks--;
}
}
mail ("php-qa@lists.php.net", "Test results",
base64_decode(urldecode($_POST['php_test_data'])),
"From: noreply@php.net");
}
On Mon, 2002-12-16 at 18:15, Jim Winstead wrote:
> whatever someone wants to do to fix this for real is fine by me. i was
> sick of getting the bounces, and this was the shortest path to fixing
> that.
>
> jim
>
> On Mon, Dec 16, 2002 at 06:09:56PM -0500, Ilia A. wrote:
> > Maybe instead of trashing the bug report, we could sent a portion (1st 90k) to
> > the list or split the message into 90k chunks so that the report could make
> > it through to the list in multiple-parts?
> >
> > Ilia
> >
> > On December 16, 2002 05:50 pm, jim winstead wrote:
> > > jimw Mon Dec 16 17:50:30 2002 EDT
> > >
> > > Modified files:
> > > /qaweb buildtest-process.php
> > > Log:
> > > don't even try to mail reports that are too big to make it through the
> > > list
> > >
> > >
> > > Index: qaweb/buildtest-process.php
> > > diff -u qaweb/buildtest-process.php:1.5 qaweb/buildtest-process.php:1.6
> > > --- qaweb/buildtest-process.php:1.5 Sun Oct 13 10:16:47 2002
> > > +++ qaweb/buildtest-process.php Mon Dec 16 17:50:30 2002
> > > @@ -1,6 +1,9 @@
> > > <?php
> > > if (isset($_POST['php_test_data'])) {
> > > + if (strlen($_POST['php_test_data']) > 90000) {
> > > + die("can't handle input that large.");
> > > + }
> > > mail ("php-qa@lists.php.net", "Test results",
> > > base64_decode(urldecode($_POST['php_test_data'])), "From:
> > > noreply@php.net"); }
> > > ?>
> > > -$Revision: 1.5 $
> > > +$Revision: 1.6 $
> >
--
Xavier Spriet <xavier@wuug.org>
Windsor Unix Users Group