#21981 [Opn->Csd]: MYSQL_CLIENT_SSL constant is undefined

From: Date: Fri, 31 Jan 2003 17:12:46 +0000
Subject: #21981 [Opn->Csd]: MYSQL_CLIENT_SSL constant is undefined
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969351434@lists.php.net to get a copy of this message
ID: 21981 Updated by: georg@php.net Reported By: rabus@users.sourceforge.net -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Windows NT 5.1 PHP Version: 4CVS-2003-01-31 (stable) New Comment: This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Thx for the hint. MySQL-SSL Support will be available in PHP 5.0 Previous Comments: ------------------------------------------------------------------------ [2003-01-31 10:43:22] rabus@users.sourceforge.net Of course I meant SSL :o) Changed category to "Documentation problem" ------------------------------------------------------------------------ [2003-01-31 10:40:44] rabus@users.sourceforge.net 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@php.net s/SSH/SSL ------------------------------------------------------------------------ [2003-01-31 09:55:53] georg@php.net 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@users.sourceforge.net 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

« previous php.doc (#969351434) next »