Doc #63332 [Opn->Nab]: The problem with __ toString and PDO.

From: Date: Mon, 22 Oct 2012 13:20:28 +0000
Subject: Doc #63332 [Opn->Nab]: The problem with __ toString and PDO.
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-8993@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=63332&edit=1 ID: 63332 Updated by: aharvey@php.net Reported by: jacek dot strzemieczny251 at gmail dot com Summary: The problem with __ toString and PDO. -Status: Open +Status: Not a bug Type: Documentation Problem Package: PDO related Operating System: Windows XP PHP Version: 5.3.18 Block user comment: N Private report: N New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. This appears to be caused by the fact that the $tresc property in the bazaDanych::$kwerenda variable created in utworzKwerende() is set to an object, rather than a string. At any rate, I would suggest working through this issue with one of the support channels listed above, as it doesn't appear to be a PHP bug. Previous Comments: ------------------------------------------------------------------------ [2012-10-22 13:14:34] jacek dot strzemieczny251 at gmail dot com Description: ------------ My problem is __ toString malfunction at the junction of queries PDO. Test script: --------------- http://wklejto.pl/136115 http://wklejto.pl/136116 http://wklejto.pl/136117 Expected result: ---------------- ( ! ) Catchable fatal error: Method szablon::__toString() must return a string value in C:\wamp\www\CMS\skrypty\PHP\IOBazaDanych.php on line 84 Call Stack # Time Memory Function Location 1 0.0005 382344 {main}( ) ..\zakladanie konta.php:0 2 0.0209 451320 bazaDanych->wykonajKwerende( ) ..\zakladanie konta.php:25 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=63332&edit=1

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