Bug #51026 [Asn->Csd]: ssl not working
Edit report at http://bugs.php.net/bug.php?id=51026&edit=1
ID: 51026
Updated by: andrey@php.net
Reported by: fuxa_kos at unihost dot cz
Summary: ssl not working
-Status: Assigned
+Status: Closed
Type: Bug
Package: MySQLi related
Operating System: Linux
PHP Version: 5.3.3-dev
Assigned To: mysql
New Comment:
Fixed. Fix will appear in 5.3.3 . The bug doesn't affect 5.2 and earlier
branches, which means that it only exists in 5.3.0, 5.3.1 and 5.3.2
Previous Comments:
------------------------------------------------------------------------
[2010-04-08 11:01:23] andrey@php.net
Automatic comment from SVN on behalf of andrey
Revision: http://svn.php.net/viewvc/?view=revision&revision=297688
Log: Fix for bug #51026 ssl not working
------------------------------------------------------------------------
[2010-02-17 01:07:02] emartinez at usgs dot gov
Looking into the source, "mysqli_init" sets the resource status to
"MYSQLI_STATUS_INITIALIZED" and then immediately afterward in
"mysqli_ssl_set" the source expects the the resource status to be at
least, "MYSQLI_STATUS_VALID" (one step above
MYSQLI_STATUS_INITIALIZED).
The problem seems to go away if you modify mysqli_api.c::ssl_set to
require only a status of "MYSQLI_STATUS_INITIALIZED" (about line 2043).
------------------------------------------------------------------------
[2010-02-12 21:46:16] fuxa_kos at unihost dot cz
In my case, tested at latest CentOS 5 and 4. All 64-bit boxes, PHP
compiled myself from sources. With Mysql 5.0.89, 5.0.90, 5.1.42.
------------------------------------------------------------------------
[2010-02-12 21:39:48] fuxa_kos at unihost dot cz
same problem
phpinfo()
PHP Version => 5.3.3-dev
# ssl_set
mysqli::ssl_set(): invalid object or resource mysqli
var_dump returns NULL
# real_connect, without MYSQLI_CLIENT_SSL
error: mysqli::real_connect(): (28000/1045): Access denied for
user '...' (using password: YES)
errno: 1045
# real_connect, with MYSQLI_CLIENT_SSL
error: mysqli::real_connect(): (HY000/2003): Can't connect to MySQL
server on '...' (113)
errno: 2003
------------------------------------------------------------------------
[2010-02-12 16:14:01] jani@php.net
Please try using this snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/bug.php?id=51026
--
Edit this bug report at http://bugs.php.net/bug.php?id=51026&edit=1
Thread (8 messages)