com web/bugs: Remove PEAR errors usage from no-feedback cron job: scripts/cron/no-feedback

From: Date: Wed, 05 Dec 2018 10:55:34 +0000
Subject: com web/bugs: Remove PEAR errors usage from no-feedback cron job: scripts/cron/no-feedback
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-27489@lists.php.net to get a copy of this message
Commit: 9909448411387a0446cdbb83adc0015bb6225011 Author: Peter Kokot <peterkokot@gmail.com> Wed, 5 Dec 2018 11:55:34 +0100 Parents: c8c85a57c5d8a6a0aa752bf3227075df524c243f Branches: master Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=9909448411387a0446cdbb83adc0015bb6225011 Log: Remove PEAR errors usage from no-feedback cron job The error handling has been refactored via 23298a123688443276f60143c1261f85a85873fe. Changed paths: M scripts/cron/no-feedback Diff: diff --git a/scripts/cron/no-feedback b/scripts/cron/no-feedback index 91ad4ad..a32b955 100755 --- a/scripts/cron/no-feedback +++ b/scripts/cron/no-feedback @@ -23,9 +23,7 @@ if ($dbh) FROM bugdb WHERE status = 'Feedback' AND ts2 < DATE_SUB(NOW(), INTERVAL {$after}) ")->execute([]); - if (PEAR::isError($res)) { - throw new Exception("SQL Error in no-feedback"); - } + while ($bug = $res->fetchRow(PDO::FETCH_ASSOC)) { list($mailto, $mailfrom, $bcc, $params) = get_package_mail($bug['package_name'], false, $bug['bug_type']);

« previous php.webmaster (#27489) next »