Skip to content

silent Warning cast with PHP 5.3.3 (RHEL-6)#258

Merged
mblaney merged 1 commit intosimplepie:masterfrom
remicollet:issue-rhel6
Mar 12, 2016
Merged

silent Warning cast with PHP 5.3.3 (RHEL-6)#258
mblaney merged 1 commit intosimplepie:masterfrom
remicollet:issue-rhel6

Conversation

@remicollet
Copy link
Contributor

When running test suite on RHEL-6, with stock PHP 5.3.3, it fails with

 1) CacheTest::testDirectOverrideLegacy
 Failed asserting that exception of type "PHPUnit_Framework_Error_Warning" matches expected exception "Exception_Success".

 2) CacheTest::testDirectOverrideNew
 Failed asserting that exception of type "PHPUnit_Framework_Error_Warning" matches expected exception "Exception_Success".

After analysis, this is due to PHP warning in register method

 PHP Warning: Unknown class passed as parameter in ....SimplePie/Registry.php on line 116

This trivial fix simply silent this warning.

Alkarex added a commit to Alkarex/FreshRSS that referenced this pull request Jul 11, 2015
silent Warning cast with PHP 5.3.3 (RHEL-6)
simplepie/simplepie#258
Use rss:pubDate over atom:updated when determining the posting date
simplepie/simplepie#288
Update Item.php: add support for media thumbnails
simplepie/simplepie#340
Remove PHP Notices simplepie/simplepie#353
And removed "FreshRSS" annotations for pull requests submitted upstream

Fixed a typo in Date.php (wrong number for September)
simplepie/simplepie#374
Remove duplicate case simplepie/simplepie#406
Added set_curl_options method to allow custom options
simplepie/simplepie#407
Improved error message simplepie/simplepie#412
mblaney added a commit that referenced this pull request Mar 12, 2016
silent Warning cast with PHP 5.3.3 (RHEL-6)
@mblaney mblaney merged commit e7a3e21 into simplepie:master Mar 12, 2016
@remicollet remicollet deleted the issue-rhel6 branch March 12, 2016 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants