#46789 [Opn]: Create function mysql_warning_count()

From: Date: Sun, 07 Dec 2008 07:14:46 +0000
Subject: #46789 [Opn]: Create function mysql_warning_count()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-131707@lists.php.net to get a copy of this message
ID: 46789 Updated by: lstrojny@php.net Reported By: tomas at matfyz dot cz Status: Open Bug Type: Feature/Change Request PHP Version: 5.2.7 -Assigned To: +Assigned To: johannes New Comment: johannes, are you planning do add this feature? Previous Comments: ------------------------------------------------------------------------ [2008-12-06 23:42:09] tomas at matfyz dot cz Description: ------------ Please create function mysql_warning_count() which will return the warning count of the last mysql command. The information is available in the mysql OK packet since version 4.1, see http://forge.mysql.com/wiki/MySQL_Internals_ClientServer_Protocol#OK_Packet - so there is no need to contact the server again for this purpose. Just make the information from the OK packet avaliable. Thanks! (Please note that the information on warning count cannot be taken from the mysql_info() due to mysql bugs #41283 and #41285 http://bugs.mysql.com/?id=41283 http://bugs.mysql.com/?id=41285 ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46789&edit=1

« previous php.bugs (#131707) next »