ID: 46789 Updated by: [EMAIL PROTECTED] 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