Bug #51026 [Com]: ssl not working
| From: | fuxa_kos at unihost dot cz | Date: | Fri, 23 Jul 2010 13:22:00 +0000 |
| Subject: | Bug #51026 [Com]: ssl not working | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-152680@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51026&edit=1
ID: 51026
Comment by: fuxa_kos at unihost dot cz
Reported by: fuxa_kos at unihost dot cz
Summary: ssl not working
Status: Closed
Type: Bug
Package: MySQLi related
Operating System: Linux
PHP Version: 5.3.3-dev
Assigned To: mysql
New Comment:
5.1.6 at Centos 5 is affected too.
rpm -qi php
Name : php Relocations: (not
relocatable)
Version : 5.1.6 Vendor: CentOS
Release : 27.el5 Build Date: Wed 31 Mar 2010
08:53:10 AM CEST
Previous Comments:
------------------------------------------------------------------------
[2010-04-08 11:04:55] andrey@php.net
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
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
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