|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-05-15 12:28 UTC] deusmax at gmail dot com
[2008-07-30 19:54 UTC] bugs dot php dot net at zetafleet dot com
[2008-10-27 13:54 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 04:00:01 2025 UTC |
Description: ------------ when using pg_insert(),everything works, but when the program terminates it reports a "Segmentation fault". Data are properly inserted into table, db connection closed ok. too. create a small table create table test (regn text, mtow numeric(6,2), tonbl timestamp(0) with time zone); Actually, just using pg_convert() on the array causes the same segmentation fault to be reported. Without even trying to insert the data. Reproduce code: --------------- Use some data $data = array('regn' => 'defi', 'mtow' => 23.2, 'tonbl' => '2008-05-15T16:15:16+00'); insert using: $db = pg_connect("dbname=foo"); $res = pg_insert($db, 'test', $data); pg_close($db);