← Back to team overview

mahara-contributors team mailing list archive

[Bug 1575969] [NEW] PHP7 exception handler needs to accept Throwables

 

Public bug reported:

One of the backwards-incompatible changes in PHP7 is that some errors
throw an Error object, which will go to the user-defined exception
handler rather than the user-defined error handler. So the exception
handler needs to accept Throwable objects (the ancestor to both Error
and Exception) instead of just Exception objects.

http://php.net/manual/en/migration70.incompatible.php#migration70.incompatible
.error-handling.set-exception-handler

** Affects: mahara
     Importance: High
     Assignee: Aaron Wells (u-aaronw)
         Status: In Progress

** Affects: mahara/1.10
     Importance: High
     Assignee: Aaron Wells (u-aaronw)
         Status: In Progress

** Affects: mahara/15.04
     Importance: High
     Assignee: Aaron Wells (u-aaronw)
         Status: In Progress

** Affects: mahara/15.10
     Importance: High
     Assignee: Aaron Wells (u-aaronw)
         Status: In Progress

** Affects: mahara/16.04
     Importance: High
     Assignee: Aaron Wells (u-aaronw)
         Status: In Progress

** Affects: mahara/16.10
     Importance: High
     Assignee: Aaron Wells (u-aaronw)
         Status: In Progress


** Tags: php7

** Also affects: mahara/15.10
   Importance: Undecided
       Status: New

** Also affects: mahara/16.10
   Importance: Undecided
       Status: New

** Also affects: mahara/16.04
   Importance: High
     Assignee: Aaron Wells (u-aaronw)
       Status: In Progress

** Also affects: mahara/1.10
   Importance: Undecided
       Status: New

** Also affects: mahara/15.04
   Importance: Undecided
       Status: New

** Changed in: mahara/1.10
    Milestone: None => 1.10.10

** Changed in: mahara/15.04
    Milestone: None => 15.04.7

** Changed in: mahara/15.10
    Milestone: None => 15.10.3

** Changed in: mahara/16.10
    Milestone: None => 16.10.0

** Changed in: mahara/16.10
     Assignee: (unassigned) => Aaron Wells (u-aaronw)

** Changed in: mahara/15.10
     Assignee: (unassigned) => Aaron Wells (u-aaronw)

** Changed in: mahara/15.04
     Assignee: (unassigned) => Aaron Wells (u-aaronw)

** Changed in: mahara/1.10
     Assignee: (unassigned) => Aaron Wells (u-aaronw)

** Changed in: mahara/1.10
   Importance: Undecided => High

** Changed in: mahara/15.04
   Importance: Undecided => High

** Changed in: mahara/15.10
   Importance: Undecided => High

** Changed in: mahara/16.10
   Importance: Undecided => High

** Changed in: mahara/16.10
       Status: New => In Progress

** Changed in: mahara/15.10
       Status: New => In Progress

** Changed in: mahara/15.04
       Status: New => In Progress

** Changed in: mahara/1.10
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1575969

Title:
  PHP7 exception handler needs to accept Throwables

Status in Mahara:
  In Progress
Status in Mahara 1.10 series:
  In Progress
Status in Mahara 15.04 series:
  In Progress
Status in Mahara 15.10 series:
  In Progress
Status in Mahara 16.04 series:
  In Progress
Status in Mahara 16.10 series:
  In Progress

Bug description:
  One of the backwards-incompatible changes in PHP7 is that some errors
  throw an Error object, which will go to the user-defined exception
  handler rather than the user-defined error handler. So the exception
  handler needs to accept Throwable objects (the ancestor to both Error
  and Exception) instead of just Exception objects.

  http://php.net/manual/en/migration70.incompatible.php#migration70.incompatible
  .error-handling.set-exception-handler

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1575969/+subscriptions


Follow ups