php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52510 pg_query_params
Submitted: 2010-08-02 00:33 UTC Modified: 2013-02-18 00:34 UTC
Votes:9
Avg. Score:4.9 ± 0.3
Reproduced:8 of 8 (100.0%)
Same Version:5 (62.5%)
Same OS:5 (62.5%)
From: phpdev dot ru at gmail dot com Assigned:
Status: No Feedback Package: PostgreSQL related
PHP Version: 5.3.3 OS: Mac OS X 10.6.4
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2010-08-02 00:33 UTC] phpdev dot ru at gmail dot com
Description:
------------
Got a fatal error while trying to execute pg_query_params() or pg_execute()
php 5.3.3 with libpq 8.4.4

Test script:
---------------
<?php

$connection = pg_connect('dbname=test');
pg_query_params($connection, 'SELECT * FROM users WHERE id=$1', array(1));

Expected result:
----------------
The function works fine

Actual result:
--------------
Fatal error: Call to undefined function pg_query_params()

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-02 00:41 UTC] felipe@php.net
Probably the extension was compiled against an old libpq... because pg_execute() and pg_query_params() requires PgSQL 7.4 or later.
 [2010-08-03 01:38 UTC] felipe@php.net
-Status: Open +Status: Feedback
 [2010-10-29 05:07 UTC] bob at garettgroup dot com
My environment is:
Mac OS X 10.6.4
PHP 5.3.2
Apache 2.2.15
PostgreSQL 8.4.4

This is all confirm by phpinfo()

pg_connect() works as expected, however pg_query_params() is reported as not found.
 [2010-12-02 17:31 UTC] stclaus at tiscalinet dot it
It seems resolved with the trunk version (just compiled 5.3.4RC3-dev) on Mac OSX 10.6.5
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 23:01:32 2024 UTC