Skip to content

Commit ca036e8

Browse files
committed
Address some PHP 8.2 issues for feeds.
1 parent 6840c3e commit ca036e8

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

PATCHES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,22 @@ Core patches
77
Contrib patches
88
===============
99

10-
bakismet - prevent fatal from bulk delete
10+
akismet - prevent fatal from bulk delete
1111
https://github.com/backdrop-contrib/akismet/issues/9
1212
https://github.com/backdrop-contrib/akismet/pull/10.patch
1313

1414
feeds - prevent PHP notice
1515
https://github.com/backdrop-contrib/feeds/issues/13
1616
https://github.com/backdrop-contrib/feeds/pull/88.patch
1717

18+
feeds - prevent PHP 8.2 deprecation notice
19+
https://github.com/backdrop-contrib/feeds/issues/148
20+
https://github.com/backdrop-contrib/feeds/pull/149.patch
21+
22+
feeds - prevent PHP 8.2 deprecation notice
23+
https://github.com/backdrop-contrib/feeds/issues/150
24+
(comment out one line)
25+
1826
flag - PHP 8.2 deprecation fix.
1927
https://github.com/backdrop-contrib/flag/issues/51
2028
https://github.com/backdrop-contrib/flag/pull/54.patch

www/modules/contrib/feeds/includes/FeedsHTTPCacheItem.inc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ class FeedsHTTPCacheItem {
2424
*/
2525
protected $cid;
2626

27+
/**
28+
* Code.
29+
*
30+
* @var string
31+
*/
32+
protected $code;
33+
2734
/**
2835
* Headers of the response.
2936
*

www/modules/contrib/feeds/libraries/http_request.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ function feeds_http_request($url, array $options = array()) {
342342
if ($result->code == 304) {
343343

344344
if (isset($last_result->data)) {
345-
$last_result->from_cache = TRUE;
345+
//$last_result->from_cache = TRUE;
346346
return $last_result;
347347
}
348348
else {

0 commit comments

Comments
 (0)