note 107681 added to pdo.prepare
| From: | Anonymous | Date: | Sat, 25 Feb 2012 19:47:26 +0000 |
| Subject: | note 107681 added to pdo.prepare | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186364@lists.php.net to get a copy of this message | ||
For those of you subclassing PDO while using PHP_STRICT...
While the above suggests the signature for this method is:
public function prepare ($statement, array $driver_options = array());
In fact you need to use:
public function prepare ($statement, $driver_options = array());
PDO::prepare will however barf an error if parameter 2 is not an array (including if it is null)
----
Server IP: 208.69.120.55
Probable Submitter: 75.132.149.143
----
Manual Page -- http://www.php.net/manual/en/pdo.prepare.php
Edit -- https://master.php.net/note/edit/107681
Del: integrated -- https://master.php.net/note/delete/107681/integrated
Del: useless -- https://master.php.net/note/delete/107681/useless
Del: bad code -- https://master.php.net/note/delete/107681/bad+code
Del: spam -- https://master.php.net/note/delete/107681/spam
Del: non-english -- https://master.php.net/note/delete/107681/non-english
Del: in docs -- https://master.php.net/note/delete/107681/in+docs
Del: other reasons-- https://master.php.net/note/delete/107681
Reject -- https://master.php.net/note/reject/107681
Search -- https://master.php.net/manage/user-notes.php