php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #75865 Extending exceptions has not been updated with Throwable
Submitted: 2018-01-23 22:56 UTC Modified: 2018-01-28 13:20 UTC
From: misc at youngish dot org Assigned: vrana (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: misc at youngish dot org
New email:
PHP Version: OS:

 

 [2018-01-23 22:56 UTC] misc at youngish dot org
Description:
------------
The documentation here:

http://php.net/manual/en/language.exceptions.extending.php

Provides an old version of the Exception base class which does not implement the Throwable interface.  As such its guidance is poor for new PHP code.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-01-24 08:32 UTC] requinix@php.net
-Status: Open +Status: Verified -Package: Documentation problem +Package: Scripting Engine problem -PHP Version: 7.0Git-2018-01-23 (snap) +PHP Version: Irrelevant
 [2018-01-24 08:32 UTC] requinix@php.net
Literally the only difference is adding "implements Throwable" into the definition, and that doesn't affect how to extend the class.
 [2018-01-24 13:57 UTC] cmb@php.net
-Type: Bug +Type: Documentation Problem
 [2018-01-28 13:20 UTC] vrana@php.net
Automatic comment from SVN on behalf of vrana
Revision: http://svn.php.net/viewvc/?view=revision&revision=344005
Log: Document that Exception extends Throwable (fix #75865)
 [2018-01-28 13:20 UTC] vrana@php.net
-Status: Verified +Status: Closed -Assigned To: +Assigned To: vrana
 [2020-02-07 06:05 UTC] phpdocbot@php.net
Automatic comment on behalf of vrana
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=3d1b737b25cfb0b7e4a8750def40d23d19fe2161
Log: Document that Exception extends Throwable (fix #75865)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 13:01:33 2025 UTC