Bug #52440 [NEW]: Add note for mysql/mysqli/pdo_mysql when using mysqlnd
| From: | anthon dot pang at gmail dot com | Date: | Sun, 25 Jul 2010 18:47:18 +0000 |
| Subject: | Bug #52440 [NEW]: Add note for mysql/mysqli/pdo_mysql when using mysqlnd | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-4735@lists.php.net to get a copy of this message | ||
From:
Operating system: n/a
PHP version: 5.3.3
Package: Documentation problem
Bug Type: Bug
Bug description:Add note for mysql/mysqli/pdo_mysql when using mysqlnd
Description:
------------
Since the one-line patch in #52434 was rejected, please add a 'Note' to
document the following backwards incompatibility.
First, the "more complete example" shown on this page
http://www.php.net/manual/en/ref.pdo-mysql.connection.php
:
mysql:host=localhost;port=3307;dbname=testdb
requires that a unix socket be configured in php.ini (even though the
intent is clearly to connect via tcp) if php is built
'--with-pdo-mysql=mysqlnd'.
(This is a compat buster because the same DSN and php.ini works when php is
instead linked against the mysql client libraries.)
Second, this incompatibility also occurs when php is built
'--with-mysqli=mysqlnd' (and presumably '--with-mysql=mysqlnd'). Thus,
please add similar Notes to:
http://www.php.net/manual/en/mysqli.connect.php
http://ca2.php.net/mysqli_real_connect
http://ca.php.net/mysql_connect
Third, add comments to php.ini-development and php.ini-production files to
clearly state that these *must* be configured when php is built with
mysqlnd:
pdo_mysql.default_socket =
mysql.default_socket =
mysqli.default_socket =
(Though the configure script looks for and finds
/var/run/mysqld/mysqld.sock, this information isn't used by mysqlnd.)
--
Edit bug report at http://bugs.php.net/bug.php?id=52440&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52440&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52440&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52440&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=52440&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52440&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=52440&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=52440&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=52440&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=52440&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=52440&r=support
Expected behavior: http://bugs.php.net/fix.php?id=52440&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=52440&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=52440&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=52440&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52440&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52440&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=52440&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=52440&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=52440&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=52440&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=52440&r=mysqlcfg