php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #21981 MYSQL_CLIENT_SSL should be removed from the doc
Submitted: 2003-01-31 07:36 UTC Modified: 2004-07-26 21:55 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: rabus at users dot sourceforge dot net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4CVS-2003-01-31 (stable) OS: ANY
Private report: No CVE-ID: None
 [2003-01-31 07:36 UTC] rabus at users dot sourceforge dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-31 09:55 UTC] 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 10:07 UTC] georg@php.net
s/SSH/SSL
 [2003-01-31 10:40 UTC] rabus at users dot sourceforge dot 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:43 UTC] rabus at users dot sourceforge dot net
Of course I meant SSL :o)
Changed category to "Documentation problem"
 [2003-01-31 11:12 UTC] georg@php.net
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
 [2003-01-31 13:15 UTC] sniper@php.net
It's only available if PHP's mysql extension is build
against mysql 4 client libs..which is not the case for win32
binaries, AFAIK. (the bundled mysql libs are 3.23.49)

 [2003-01-31 16:28 UTC] nicos@php.net
Verified, changing this to a documentation problem.
 [2003-01-31 16:34 UTC] nicos@php.net
Just a remember to add some comments about this in the doc.
 [2004-07-26 21:55 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:12 UTC] phpdocbot@php.net
Automatic comment on behalf of georg
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=c78054870b57739a63e543ef7eb1f2dc21206565
Log: fixed bug #21981 (removed SSL constant)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 15:01:36 2024 UTC