Doc #61833 [Asn->Csd]: Throws a different Exception on PHP5.2

From: Date: Fri, 27 Apr 2012 21:59:06 +0000
Subject: Doc #61833 [Asn->Csd]: Throws a different Exception on PHP5.2
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-8308@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: Assigned +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: Linux PHP Version: Irrelevant Assigned To: salathe Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2012-04-27 21:57:44] 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-24 11:11:25] 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-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

« previous php.doc.bugs (#8308) next »