Skip to content

Commit d0d1f9f

Browse files
committed
Error message when XML or PCRE extensions missing
The XML extension is not loaded by default on PHP7. Relevant to have the reason of failure in the error message instead of returning an empty error message. FreshRSS/FreshRSS#1230 FreshRSS/FreshRSS#1227 (comment)
1 parent 259f526 commit d0d1f9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/SimplePie.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,6 +1294,7 @@ public function init()
12941294
// Check absolute bare minimum requirements.
12951295
if (!extension_loaded('xml') || !extension_loaded('pcre'))
12961296
{
1297+
$this->error = 'XML or PCRE extensions not loaded!';
12971298
return false;
12981299
}
12991300
// Then check the xml extension is sane (i.e., libxml 2.7.x issue on PHP < 5.2.9 and libxml 2.7.0 to 2.7.2 on any version) if we don't have xmlreader.

0 commit comments

Comments
 (0)