]> granicus.if.org Git - php/commitdiff
Fix for bug #51026 ssl not working
authorAndrey Hristov <andrey@php.net>
Thu, 8 Apr 2010 09:01:21 +0000 (09:01 +0000)
committerAndrey Hristov <andrey@php.net>
Thu, 8 Apr 2010 09:01:21 +0000 (09:01 +0000)
NEWS
ext/mysqli/mysqli_api.c

diff --git a/NEWS b/NEWS
index fd3b2dcc6fb586fedd60af8d945f6d59758b39ab..44aabb6fdeb5c1a8542cd549886860c628e2d57b 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -40,6 +40,7 @@ PHP                                                                        NEWS
   parsing date strings). (Derick)
 - Fixed bug #51086 (DBA DB4 doesn't work with Berkeley DB 4.8). (Chris Jones)
 - Fixed bug #51062 (DBA DB4 uses mismatched headers and libraries). (Chris Jones)
+- Fixed bug #51026 (mysqli_ssl_set not working). (Andrey)
 - Fixed bug #51023 (filter doesn't detect int overflows with GCC 4.4).
   (Raphael Geissert)
 - Fixed bug #50999 (unaligned memory access in dba_fetch()). (Felipe)
index f156346990d5294ec0d9e8c606573904736c16b9..6162cce92b5c5db93d4411f7afb3f1dda726d2e8 100644 (file)
@@ -2132,7 +2132,7 @@ PHP_FUNCTION(mysqli_ssl_set)
        if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Osssss", &mysql_link, mysqli_link_class_entry, &ssl_parm[0], &ssl_parm_len[0], &ssl_parm[1], &ssl_parm_len[1], &ssl_parm[2], &ssl_parm_len[2], &ssl_parm[3], &ssl_parm_len[3], &ssl_parm[4], &ssl_parm_len[4])   == FAILURE) {
                return;
        }
-       MYSQLI_FETCH_RESOURCE(mysql, MY_MYSQL *, &mysql_link, "mysqli_link", MYSQLI_STATUS_VALID);
+       MYSQLI_FETCH_RESOURCE(mysql, MY_MYSQL *, &mysql_link, "mysqli_link", MYSQLI_STATUS_INITIALIZED);
 
        for (i = 0; i < 5; i++) {
                if (!ssl_parm_len[i]) {