note 102867 added to mysqli.get-warnings

From: Date: Fri, 11 Mar 2011 08:57:01 +0000
Subject: note 102867 added to mysqli.get-warnings
Groups: php.notes 
Request: Send a blank email to php-notes+get-177785@lists.php.net to get a copy of this message
several bugs and side effects worth to know: 1. you can't use this with multi queries as it will get either segfault or empty result: #54221 2. mysqli::get_warnings() is seemingly unusable: #44880 3. mysqli->insert_id will return zero after mysqli->get_warnings() #54190 4. no safe way to retrieve warnings #41402 so in short, as the way the function is implemented, you can only fetch warnings from last query you ran. and your states get lost that are in $mysqli object. (the bug ids are from http://bugs.php.net but i can't paste links here as system thinks i'm spamming dammit) ---- Server IP: 69.147.83.197 Probable Submitter: 195.222.9.197 ---- Manual Page -- http://www.php.net/manual/en/mysqli.get-warnings.php Edit -- https://master.php.net/note/edit/102867 Del: integrated -- https://master.php.net/note/delete/102867/integrated Del: useless -- https://master.php.net/note/delete/102867/useless Del: bad code -- https://master.php.net/note/delete/102867/bad+code Del: spam -- https://master.php.net/note/delete/102867/spam Del: non-english -- https://master.php.net/note/delete/102867/non-english Del: in docs -- https://master.php.net/note/delete/102867/in+docs Del: other reasons-- https://master.php.net/note/delete/102867 Reject -- https://master.php.net/note/reject/102867 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#177785) next »