ID:               42340
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]

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

Reply via email to