php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #61003
Patch rein-mysqli_prop.patch revision 2012-02-07 14:59 UTC by rein at basefarm dot no

Patch rein-mysqli_prop.patch for MySQLi related Bug #61003

Patch version 2012-02-07 14:59 UTC

Return to Bug #61003 | Download this patch
Patch Revisions:

Developer: rein@basefarm.no

Index: ext/mysqli/mysqli_prop.c
===================================================================
RCS file: /f/CVSROOT/drift/www/php/ext/mysqli/mysqli_prop.c,v
retrieving revision 1.1.1.13
retrieving revision 1.2
diff -u -u -r1.1.1.13 -r1.2
--- ext/mysqli/mysqli_prop.c	4 Feb 2012 11:34:49 -0000	1.1.1.13
+++ ext/mysqli/mysqli_prop.c	7 Feb 2012 14:42:58 -0000	1.2
@@ -223,6 +223,8 @@
 			ZVAL_STRINGL(*retval, stat_msg, stat_msg_len, 0);
 		}
 #else
+		CHECK_STATUS(MYSQLI_STATUS_VALID);
+
 		if ((stat_msg = (char *) mysql_stat(mysql->mysql))) {
 			ZVAL_STRING(*retval, stat_msg, 1);
 		}
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Nov 24 13:01:32 2024 UTC