From: [EMAIL PROTECTED]
Operating system: Linux
PHP version: 4.4.7
PHP Bug Type: PostgreSQL related
Bug description: pg_trace does not work
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 bug report at http://bugs.php.net/?id=42340&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=42340&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=42340&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=42340&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42340&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=42340&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42340&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42340&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42340&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42340&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42340&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=42340&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=42340&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42340&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42340&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42340&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42340&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42340&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42340&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42340&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42340&r=mysqlcfg