php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #38531 Typo "secondes" Still in php.ini
Submitted: 2006-08-21 04:27 UTC Modified: 2006-09-03 11:40 UTC
From: imacat at mail dot imacat dot idv dot tw Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: All
Private report: No CVE-ID: None
 [2006-08-21 04:27 UTC] imacat at mail dot imacat dot idv dot tw
Description:
------------
    It seems that Bug #29641 has never been fixed in PHP 5 source.  It is only fixed in PHP 4 source.  In both php.ini-dist and php.ini-recommended in the latest PHP 5.1.5 source,

; Maximum time (in secondes) for connect timeout. -1 means no limit
mysql.connect_timeout = 60

    should be

; Maximum time (in seconds) for connect timeout. -1 means no limit
mysql.connect_timeout = 60

    unless there is a reason to write French here.  The latest PHP 4 source (4.4.3) does not suffer from this.

    I've made a simple patch that should help.  Please tell me if you need more information.  Thank you.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

diff -u -r php-5.1.5.orig/php.ini-dist php-5.1.5/php.ini-dist
- --- php-5.1.5.orig/php.ini-dist	2006-08-15 02:40:19.000000000 +0800
+++ php-5.1.5/php.ini-dist	2006-08-21 11:57:53.000000000 +0800
@@ -703,7 +703,7 @@
 ; file will be able to reveal the password as well.
 mysql.default_password =
 
- -; Maximum time (in secondes) for connect timeout. -1 means no limit
+; Maximum time (in seconds) for connect timeout. -1 means no limit
 mysql.connect_timeout = 60
 
 ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
diff -u -r php-5.1.5.orig/php.ini-recommended php-5.1.5/php.ini-recommended
- --- php-5.1.5.orig/php.ini-recommended	2006-08-15 02:40:19.000000000 +0800
+++ php-5.1.5/php.ini-recommended	2006-08-21 11:57:49.000000000 +0800
@@ -761,7 +761,7 @@
 ; file will be able to reveal the password as well.
 mysql.default_password =
 
- -; Maximum time (in secondes) for connect timeout. -1 means no limit
+; Maximum time (in seconds) for connect timeout. -1 means no limit
 mysql.connect_timeout = 60
 
 ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFE6TKei9gubzC5S1wRAuhKAJ4m6LrPWoIKjy5xE01/XTG846hyuwCfeV5f
BmvijAXjZ6AOlp/4iQBAs3s=
=6oQ1
-----END PGP SIGNATURE-----



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-03 11:40 UTC] nlopess@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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Nov 19 17:00:01 2025 UTC