Doc #54362 [Opn->Bgs]: Documentation example bug using '$error' when it's not instataited

From: Date: Thu, 24 Mar 2011 06:32:58 +0000
Subject: Doc #54362 [Opn->Bgs]: Documentation example bug using '$error' when it's not instataited
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6133@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=54362&edit=1 ID: 54362 Updated by: aharvey@php.net Reported by: bugs dot php dot net at creuzer dot com Summary: Documentation example bug using '$error' when it's not instataited -Status: Open +Status: Bogus Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Both code examples look fine to me and execute normally: $error is an out parameter from sqlite_exec() and SQLiteDatabase::queryExec() and is used appropriately. Previous Comments: ------------------------------------------------------------------------ [2011-03-23 20:28:40] bugs dot php dot net at creuzer dot com Description: ------------ --- From manual page: http://www.php.net/function.sqlite-exec#Examples --- exit("Error in query: '$error'"); The $error variable is out of context. A non-broken code example should be provided. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54362&edit=1

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