note 128977 added to pdo.query
| From: | JJimenez at main dot php dot net | Date: | Mon, 23 Oct 2023 10:00:33 +0000 |
| Subject: | note 128977 added to pdo.query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220934@lists.php.net to get a copy of this message | ||
When you make a wraper for PDO:query, you must define the method like this:
public function query( string $sql, ?int $fetchMode = null, mixed ...$fetchModeArgs) :
\PDOStatement|false
if you delete one of the parameters or use one of the oficials parameters you get a Fatal error
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.157.134 (proxied: 148.56.167.84)
----
Manual Page -- https://php.net/manual/en/pdo.query.php
Edit -- https://main.php.net/note/edit/128977
Del: integrated -- https://main.php.net/note/delete/128977/integrated
Del: useless -- https://main.php.net/note/delete/128977/useless
Del: bad code -- https://main.php.net/note/delete/128977/bad+code
Del: spam -- https://main.php.net/note/delete/128977/spam
Del: non-english -- https://main.php.net/note/delete/128977/non-english
Del: in docs -- https://main.php.net/note/delete/128977/in+docs
Del: other reasons-- https://main.php.net/note/delete/128977
Reject -- https://main.php.net/note/reject/128977
Search -- https://main.php.net/manage/user-notes.php