|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-01-02 11:54 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 12:00:01 2025 UTC |
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)