Doc #51960 [Opn->Csd]: PDO::MYSQL_ATTR_LOCAL_INFILE cause error always
| From: | kalle@php.net | Date: | Sat, 23 Oct 2010 12:50:37 +0000 |
| Subject: | Doc #51960 [Opn->Csd]: PDO::MYSQL_ATTR_LOCAL_INFILE cause error always | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-5375@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51960&edit=1
ID: 51960
Updated by: kalle@php.net
Reported by: walkinraven at gmail dot com
Summary: PDO::MYSQL_ATTR_LOCAL_INFILE cause error always
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: Ubuntu 8.04
PHP Version: 5.2SVN-2010-06-01 (SVN)
-Assigned To:
+Assigned To: kalle
Block user comment: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2010-10-23 14:50:29] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=304657
Log: Fixed bug #51960 (#51960 PDO::MYSQL_ATTR_LOCAL_INFILE cause error
always)
# Also fixed this for PDO::MYSQL_ATTR_INIT_COMMAND
------------------------------------------------------------------------
[2010-06-02 07:38:34] walkinraven at gmail dot com
Thank you!
For there is no notice about this problem in user's manual (
http://www.php.net/manual/en/ref.pdo-mysql.php
), I have changed this
into a problem of documentation.
PDO::MYSQL_ATTR_LOCAL_INFILE can be set only at object initialization.
------------------------------------------------------------------------
[2010-06-02 07:35:32] walkinraven at gmail dot com
Thank you!
For there is no notice about this problem in user's manual (
http://www.php.net/manual/en/ref.pdo-mysql.php
), I have changed this
into a problem of documentation.
PDO::MYSQL_ATTR_LOCAL_INFILE can be set only at object initialization.
------------------------------------------------------------------------
[2010-06-02 05:42:27] rgagnon24 at gmail dot com
A correction to my comment above after reviewing the source code more.
The attribute PDO::MYSQL_ATTR_LOCAL_INFILE is supported by PDO, but only
during the initial creation of the PDO object. You must set
PDO::MYSQL_ATTR_LOCAL_INFILE in your options array.
That means this is not a bug.
------------------------------------------------------------------------
[2010-06-02 00:33:23] rgagnon24 at gmail dot com
Looking in ext/pdo/mysql_driver.c, there is no support within
get_attribute() nor set_attribute() for this attribute.
This is why you always get false back. Its just not doing anything. We
were running into just this same thing ourselves today in fact.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/bug.php?id=51960
--
Edit this bug report at http://bugs.php.net/bug.php?id=51960&edit=1