Bug #61734 [Opn->Wfx]: XP mysql_connect() gives Bad handshake error message
| From: | fjanisze@php.net | Date: | Wed, 19 Apr 2017 10:11:42 +0000 |
| Subject: | Bug #61734 [Opn->Wfx]: XP mysql_connect() gives Bad handshake error message | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-208664@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61734&edit=1
ID: 61734
Updated by: fjanisze@php.net
Reported by: php at lanar dot com dot au
Summary: XP mysql_connect() gives Bad handshake error message
-Status: Open
+Status: Wont fix
Type: Bug
Package: MySQL related
Operating System: Windows XP
PHP Version: 5.4.0
Block user comment: N
Private report: N
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
mysql_connect is a deprecated function and was removed in PHP 7.0.0.
Previous Comments:
------------------------------------------------------------------------
[2012-04-15 01:25:14] php at lanar dot com dot au
Description:
------------
---
From manual page: http://www.php.net/function.mysql-connect#refsect1-function.mysql-connect-description
---
Host MySQL 5.5.21. Client php 5.4.0
php -r "mysql_connect( 'host','user','pass', TRUE );"
works but
php -r "mysql_connect( 'host','user','pass', TRUE,
MYSQL_CLIENT_SSL );"
gives error message
Warning: mysql_connect(): Bad handshake in Command line code on line 1
Test script:
---------------
php -r "mysql_connect( $host, $user, $pass, TRUE, MYSQL_CLIENT_SSL );"
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61734&edit=1