Doc #51317 [Asn->Csd]: Errors/Exceptions section is incorrect

From: Date: Wed, 20 Oct 2010 05:09:22 +0000
Subject: Doc #51317 [Asn->Csd]: Errors/Exceptions section is incorrect
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5271@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51317&edit=1 ID: 51317 Updated by: kalle@php.net Reported by: laurenty at gmail dot com Summary: Errors/Exceptions section is incorrect -Status: Assigned +Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: 5.2.13 Assigned To: kalle Block user comment: 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. Previous Comments: ------------------------------------------------------------------------ [2010-10-20 07:08:57] kalle@php.net Automatic comment from SVN on behalf of kalle Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=304529 Log: Fixed bug #51317 (Errors/Exceptions section is incorrect) ------------------------------------------------------------------------ [2010-03-18 07:06:39] joey@php.net Appears to be a missing ChangeLog table on DateTime::__construct. ------------------------------------------------------------------------ [2010-03-18 07:03:52] laurenty at gmail dot com Description: ------------ The section states that "Emits Exception in case of an error." but fails to mention that this behavior only applies to PHP 5 >= 5.3.0. If 5.2, DateTime::__construct triggers an error, not an exception. Test script: --------------- <?php set_error_handler('dummy'); try { $date = new DateTime('not a date'); } catch (Exception $e) { die("\ncaught exception"); } die("\ndying"); function dummy() { echo "\ndummy function"; } ?> Expected result: ---------------- "caught exception" Actual result: -------------- "dummy" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51317&edit=1

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