Bug->Doc #53269 [Opn->Asn]: Fatal error in Example #6

From: Date: Tue, 09 Nov 2010 03:22:17 +0000
Subject: Bug->Doc #53269 [Opn->Asn]: Fatal error in Example #6
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5510@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53269&edit=1 ID: 53269 Updated by: aharvey@php.net Reported by: martyniuk dot vasyl at gmail dot com Summary: Fatal error in Example #6 -Status: Open +Status: Assigned -Type: Bug +Type: Documentation Problem Package: Documentation problem PHP Version: 5.3.3 -Assigned To: +Assigned To: aharvey Block user comment: N Previous Comments: ------------------------------------------------------------------------ [2010-11-08 20:45:44] martyniuk dot vasyl at gmail dot com Description: ------------ --- From manual page: http://www.php.net/pdo.transactions --- In Example #6 Executing a batch in a transaction, if connection to db failed, then $dbh variable is not initiated with object PDO, and it causes the fatal error : Fatal error: Call to a member function rollBack() on a non-object in E:\xampp\htdocs\func.php on line 16 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53269&edit=1

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