php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #46789 Create function mysql_warning_count()
Submitted: 2008-12-06 23:42 UTC Modified: 2008-12-07 15:56 UTC
From: tomas at matfyz dot cz Assigned: johannes (profile)
Status: Not a bug Package: Feature/Change Request
PHP Version: 5.2.7 OS:
Private report: No CVE-ID: None
 [2008-12-06 23:42 UTC] 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
)



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-07 07:14 UTC] lstrojny@php.net
johannes, are you planning do add this feature?
 [2008-12-07 15:56 UTC] johannes@php.net
The mysql extension won't get new features. Please use mysqli.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 21:01:29 2024 UTC