Bug #47257 [Opn->Csd]: SQLite3->__construct has no sane way to detect errors

From: Date: Mon, 12 Nov 2012 22:37:19 +0000
Subject: Bug #47257 [Opn->Csd]: SQLite3->__construct has no sane way to detect errors
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9101@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=47257&edit=1 ID: 47257 Updated by: salathe@php.net Reported by: cellog@php.net Summary: SQLite3->__construct has no sane way to detect errors -Status: Open +Status: Closed Type: Bug Package: Documentation problem Operating System: * PHP Version: 5.3.0beta1 -Assigned To: +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. Committed Niel's patch, thank you very much. User note also deleted. Previous Comments: ------------------------------------------------------------------------ [2012-11-12 22:35:19] salathe@php.net Automatic comment from SVN on behalf of salathe Revision: http://svn.php.net/viewvc/?view=revision&revision=328340 Log: Adds mention of exception thrown if constructor fails. (doc #47257) -- Provided by Niel Archer (niel.archer@gmail.com) ------------------------------------------------------------------------ [2012-10-02 23:33:44] niel dot archer at gmail dot com Doc updated via PHP DOE. If accepted there is also a user note to remove when closing this. ------------------------------------------------------------------------ [2009-02-10 01:07:19] cellog@php.net the constructor throws exceptions (for the doc team) ------------------------------------------------------------------------ [2009-02-10 00:44:36] scottmac@php.net This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2009-02-01 17:51:57] scottmac@php.net I'll add an error mode option and probably default it to an exception. I'm not a huge fan of heavy exception throwing code, you end up wrapping huge blocks of code in try {}. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=47257 -- Edit this bug report at https://bugs.php.net/bug.php?id=47257&edit=1

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