php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #61833 Throws a different Exception on PHP5.2
Submitted: 2012-04-24 10:48 UTC Modified: 2012-04-27 21:59 UTC
From: brendan at bloodbone dot ws Assigned: salathe (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Linux
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: brendan at bloodbone dot ws
New email:
PHP Version: OS:

 

 [2012-04-24 10:48 UTC] brendan at bloodbone dot ws
Description:
------------
---
From manual page: http://www.php.net/directoryiterator.construct#refsect1-directoryiterator.construct-errors
---

The documentation says that an UnexpectedValueException is thrown if this call fails, however on PHP5.2 a RuntimeException is also/instead thrown.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-04-24 11:11 UTC] salathe@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: salathe
 [2012-04-24 11:11 UTC] salathe@php.net
It will throw the following exceptions depending on versions:

  5.0.x throws Exception
  5.1.x throws RuntimeException
  5.2.x throws RuntimeException
  5.3.x throws UnexpectedValueException
  5.4.x throws UnexpectedValueException
 [2012-04-27 21:57 UTC] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&revision=325477
Log: changelog for directoryiterator constructor exceptions (doc #61833)
 [2012-04-27 21:59 UTC] salathe@php.net
-Status: Assigned +Status: Closed
 [2012-04-27 21:59 UTC] salathe@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.

A changelog section has been added to this page describing the changes over time 
with regards to exceptions.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 19:00:01 2026 UTC