Bug #52510 [Opn]: pg_query_params
| From: | felipe@php.net | Date: | Sun, 01 Aug 2010 22:41:48 +0000 |
| Subject: | Bug #52510 [Opn]: pg_query_params | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-153022@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52510&edit=1
ID: 52510
Updated by: felipe@php.net
Reported by: phpdev dot ru at gmail dot com
Summary: pg_query_params
Status: Open
Type: Bug
Package: PostgreSQL related
Operating System: Mac OS X 10.6.4
PHP Version: 5.3.3
Block user comment: N
New Comment:
Probably the extension was compiled against an old libpq... because
pg_execute() and pg_query_params() requires PgSQL 7.4 or later.
Previous Comments:
------------------------------------------------------------------------
[2010-08-02 00:33:09] 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()
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52510&edit=1