From: deusmax at gmail dot com Operating system: ubuntu linux gutsy PHP version: 5.2CVS-2008-05-15 (CVS) PHP Bug Type: PostgreSQL related Bug description: pg_insert causes segmentation fault at end of program execution
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 bug report at http://bugs.php.net/?id=45005&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45005&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45005&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45005&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45005&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45005&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45005&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45005&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45005&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45005&r=support Expected behavior: http://bugs.php.net/fix.php?id=45005&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45005&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45005&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45005&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45005&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45005&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45005&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45005&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45005&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45005&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45005&r=mysqlcfg