#45005 [Opn->Fbk]: pg_insert causes segmentation fault at end of program execution
ID: 45005
Updated by: felipe@php.net
Reported By: deusmax at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: PostgreSQL related
Operating System: ubuntu linux gutsy
PHP Version: 5.2CVS-2008-05-15 (CVS)
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2008-05-15 11:53:44] deusmax at gmail dot com
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);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45005&edit=1
Thread (5 messages)