[PHP-DOC] #21981 [Csd->Opn]: MYSQL_CLIENT_SSL constant is undefined From: rabus <email protected>
Date: 01/31/03

 ID: 21981
 User updated by: rabus <email protected>
 Reported By: rabus <email protected>
-Status: Closed
+Status: Open
-Bug Type: MySQL related
+Bug Type: Documentation problem
 Operating System: Windows NT 5.1
 PHP Version: 4CVS-2003-01-31 (stable)
 New Comment:

Of course I meant SSL :o)
Changed category to "Documentation problem"

Previous Comments:
------------------------------------------------------------------------

[2003-01-31 10:40:44] rabus <email protected>

No,
it's still in. Please follow the link mentioned above. There you'll
find this passage:

The client_flags parameter can be a combination of the constants
MYSQL_CLIENT_SSL, MYSQL_CLIENT_COMPRESS, MYSQL_CLIENT_IGNORE_SPACE or
MYSQL_CLIENT_INTERACTIVE.

Thanks for the information, could you tell when SLL support will be
enabled?

------------------------------------------------------------------------

[2003-01-31 10:07:19] georg <email protected>

s/SSH/SSL

------------------------------------------------------------------------

[2003-01-31 09:55:53] georg <email protected>

SSH-Client constant was removed from the documentation (en) ~5 months
ago. PHP's current mysql extension doesn't support SSH connects.

------------------------------------------------------------------------

[2003-01-31 07:36:42] rabus <email protected>

My Config:
Windows NT 5.1 ("XP")
Apache 2.0.44
PHP 4.3.1-CVS (stable)
MySQL 4.0.9-gamma-max-nt

I tried to connect to a MySQL 4.0.9 server using SSL encryption.

<?php

$dbh = mysql_connect('foohost', 'foouser', 'foopass', FALSE,
MYSQL_CLIENT_SSL);

?>

This resulted in a warning because the constant "MYSQL_CLIENT_SSL" was
not defined, unlike to what the documentation says:
http://www.php.net/manual/en/function.mysql-connect.php

A look into the phpinfo() output told me, that your Win32 binary
distributions seem to be compiled with the MySQL client API version
3.23.49.
As far as I know, MySQL supports SSL since 4.0.0 so your client API
appears obsolete to me.

------------------------------------------------------------------------

-- 
Edit this bug report at http://bugs.php.net/?id=21981&edit=1

-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php