php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #60368 pg_query_params() like function
Submitted: 2011-11-23 18:04 UTC Modified: 2017-04-24 17:49 UTC
Votes:2
Avg. Score:4.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: olafvdspek at gmail dot com Assigned:
Status: Not a bug Package: MySQLi related
PHP Version: 5.4.0RC1 OS: *
Private report: No CVE-ID: None
 [2011-11-23 18:04 UTC] olafvdspek at gmail dot com
Description:
------------
This is a great function. Could you add a MySQL variant?

http://php.net/manual/en/function.pg-query-params.php

It might be easier to pass the params as normal params instead of as an array.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-04-24 10:01 UTC] fjanisze@php.net
-Status: Open +Status: Not a bug
 [2017-04-24 10:01 UTC] fjanisze@php.net
No one considered this as potential feature since 2011, time to close the ticket.
 [2017-04-24 13:12 UTC] olafvdspek at gmail dot com
SQL injection attacks are obviously no longer a problem so yeah, doesn't make sense to implement this.
 [2017-04-24 14:08 UTC] requinix@php.net
pg_query_params is prepared statements. mysqli has supported those since forever.
 [2017-04-24 17:49 UTC] olafvdspek at gmail dot com
I know, but this interface is way more convenient.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Oct 26 03:03:35 2021 UTC