From: Andrey Hristov Date: Thu, 8 Apr 2010 09:01:21 +0000 (+0000) Subject: Fix for bug #51026 ssl not working X-Git-Tag: php-5.3.3RC1~328 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8338d48828f3ee0ef27e82e78c3f3871d1d36e97;p=php Fix for bug #51026 ssl not working --- diff --git a/NEWS b/NEWS index fd3b2dcc6f..44aabb6fde 100644 --- 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) diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c index f156346990..6162cce92b 100644 --- a/ext/mysqli/mysqli_api.c +++ b/ext/mysqli/mysqli_api.c @@ -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]) {