Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
September 14, 2013, 12:12 am
rate this thread
access to a PostgreSQL database, could you please check if this results
in a segfault for you?
$conn = pg_connect("dbname=postgres user=temp");
pg_trace("_trace.log", "w", $conn);
pg_query($conn, "SELECT 1 FROM xxx");
//pg_untrace($conn); // <-- untrace prevents segfault
echo "still alive\n";
The database and query don't matter, as long as you can connect and the
pg_query() statement does not succeed.
I strongly suspect (from previous experience with several segfaults in
the pg module over the years) that this bug is still present in the
master branch, but I can't report it because I'm running PHP 5.4.9.
Compiling and configuring PHP with the necessary dependencies to
reproduce this bug is a major PITA, I don't have time for this. If I can
get confirmation that this is still an issue, I'll report it, otherwise
hopefully somebody else will discover and report it in the future.