php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #27649 Doc is wrong since change in PHP5b4
Submitted: 2004-03-19 04:21 UTC Modified: 2004-05-24 16:07 UTC
Votes:144
Avg. Score:5.0 ± 0.0
Reproduced:43 of 43 (100.0%)
Same Version:43 (100.0%)
Same OS:43 (100.0%)
From: bs_php at 4maitcs dot ch Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.0.0RC1 OS: -
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bs_php at 4maitcs dot ch
New email:
PHP Version: OS:

 

 [2004-03-19 04:21 UTC] bs_php at 4maitcs dot ch
Description:
------------
Doc is wrong (see below) sinc the change in Version 5.0.0 Beta 4 12-Feb-2004 where it states:
"Changed exceptions so that they *must* now inherit from the built-in Exception class. This allows for a general catch(Exception $e) statement to catch all exceptions. (Andi, Zeev)"

- - -

The Doc under 
  http://www.php.net/zend-engine-2.php
sais:
"Even though the above example shows that it is possible to define exception classes that don't inherit from Exception it is best to do so."

- - -

So the examlple and the text is worong.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-24 16:07 UTC] nlopess@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:12 UTC] phpdocbot@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=15d583e6a38e7fcbe3aa14ff5625087334a4d0a1
Log: fix #27440 amd #27649 and some examples
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Nov 20 15:00:01 2025 UTC