php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42340 pg_trace does not work
Submitted: 2007-08-19 10:32 UTC Modified: 2008-01-02 11:54 UTC
From: yuw@php.net Assigned:
Status: Wont fix Package: PostgreSQL related
PHP Version: 4.4.7 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
50 - 9 = ?
Subscribe to this entry?

 
 [2007-08-19 10:32 UTC] yuw@php.net
Description:
------------
pg_trace does not work.

PHP:4.4.7
PostgreSQL: 8.2.4


Reproduce code:
---------------
$ createdb testdb
$ psql -d testdb
testdb=> create table test_tbl (id serial, val text);

<?php
$dbconn = pg_connect("dbname=testdb");
pg_trace("/tmp/pg_trace.log","w",$dbconn);
$sql = "insert into test_tbl (val) values ('aaaaaaaaaaa')";
$result = pg_query($dbconn, $sql);
var_dump(pg_affected_rows($result));
?>



Expected result:
----------------
something trace information in /tmp/pg_trace.log


Actual result:
--------------
$ cat /tmp/pg_trace.log
$ (empty)



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-02 11:54 UTC] hholzgra@php.net
Works in PHP 5.x, won't fix in 4.x as this as now reached "end of life"
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 09:01:27 2024 UTC