? Success

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
30 May 2015

This PR restructures JErrorPage, the class that is used as our global Exception handler, to support PHP 7. Specific changes:

  • Remove the typehinting for the render method
  • Test internal to the method for an Exception (PHP 5) or BaseException (PHP 7)
  • Add support to JDocumentError for the same
  • Wrap jexit in a function_exists check so that it can be mocked in our PHPUnit suite
  • Add unit tests to verify the PHP 7 behavior and the method's functionality when a non-Exception object is passed in

//cc @wilsonge

avatar mbabker mbabker - open - 30 May 2015
avatar dgt41
dgt41 - comment - 30 May 2015

@test OK

forced error on /Users/dimitris/Documents/github_projects/joomla1/administrator/components/com_content/views/article/view.html.php
with code:
JError::raiseError(500, implode("\n", array('1' => 'some error')));
return false;

result:
screenshot 2015-05-30 17 24 00

avatar zero-24 zero-24 - change - 30 May 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 30 May 2015
Labels Added: ?
Build 3.5-dev staging
avatar joomla-cms-bot joomla-cms-bot - change - 30 May 2015
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 30 May 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 30 May 2015
Category Administration
avatar zero-24 zero-24 - change - 30 May 2015
Status New Pending
avatar zero-24 zero-24 - change - 30 May 2015
Labels Removed: ?
avatar zero-24 zero-24 - change - 30 May 2015
Labels Removed: ?
avatar wilsonge
wilsonge - comment - 30 May 2015

@test works fine. Merged. Thanks!

avatar wilsonge wilsonge - change - 30 May 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-05-30 16:27:43
Closed_By wilsonge
avatar wilsonge wilsonge - close - 30 May 2015
avatar wilsonge wilsonge - reference | 1017801 - 30 May 15
avatar wilsonge wilsonge - merge - 30 May 2015
avatar wilsonge wilsonge - close - 30 May 2015
avatar wilsonge wilsonge - change - 30 May 2015
Milestone Added:
avatar mbabker mbabker - head_ref_deleted - 1 Oct 2015

Add a Comment

Login with GitHub to post a comment