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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: olafvdspek at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 12 17:01:31 2024 UTC