Doc #61833 [Opn->Asn]: Throws a different Exception on PHP5.2
| From: | salathe@php.net | Date: | Tue, 24 Apr 2012 11:11:25 +0000 |
| Subject: | Doc #61833 [Opn->Asn]: Throws a different Exception on PHP5.2 | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-8292@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61833&edit=1
ID: 61833
Updated by: salathe@php.net
Reported by: brendan at bloodbone dot ws
Summary: Throws a different Exception on PHP5.2
-Status: Open
+Status: Assigned
Type: Documentation Problem
Package: Documentation problem
Operating System: Linux
PHP Version: Irrelevant
-Assigned To:
+Assigned To: salathe
Block user comment: N
Private report: N
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2012-04-24 10:48:21] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61833&edit=1