Documentation Syntax Change Needed - PDO_ATTR_DRIVER_NAME
| From: | Kevin Bonneville | Date: | Wed, 28 Mar 2018 13:18:09 +0000 |
| Subject: | Documentation Syntax Change Needed - PDO_ATTR_DRIVER_NAME | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969386906@lists.php.net to get a copy of this message | ||
Hi,
this syntax error MUST be changed.
PDO_ATTR_DRIVER_NAME does not exist.
PDO::ATTR_DRIVER_NAME is the correct syntax. Notice the :: double colon.
A Google search shows the errors exist on these pages. Plus a host of screen scraper sites too
numerous to mention.
http://docs.php.net/manual/da/ref.pdo-firebird.php
http://php.net/manual/en/ref.pdo-mysql.php
https://dev.mysql.com/doc/connectors/en/apis-php-pdo-mysql.html
It's really bad when the MYSQL documentation is wrong.
I just wasted a few hours thanks to this syntax error. I'll make the change myself if need be.
Kevin Bonneville