#42340 [Opn->WFx]: pg_trace does not work

From: Date: Wed, 02 Jan 2008 11:54:24 +0000
Subject: #42340 [Opn->WFx]: pg_trace does not work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-120985@lists.php.net to get a copy of this message
 ID:               42340
 Updated by:       hholzgra@php.net
 Reported By:      yuw@php.net
-Status:           Open
+Status:           Wont fix
 Bug Type:         PostgreSQL related
 Operating System: Linux
 PHP Version:      4.4.7
 New Comment:

Works in PHP 5.x, won't fix in 4.x as this as now reached "end of life"


Previous Comments:
------------------------------------------------------------------------

[2007-08-19 10:32:38] 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)




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42340&edit=1


Thread (2 messages)

« previous php.bugs (#120985) next »