From: p dot elagin at gmail dot com
Operating system: Linux ded-agr21463.ht-systems.ru
PHP version: 5.2.6
PHP Bug Type: PDO related
Bug description: segmentation fault, when exit script (when i open PGSQL
conection)
Description:
------------
when script exit i get segmentation fault Error
i create instanse of PDO object (use DNS - PGSQL)
if i use another driver (SQLITE), no segmentation fault when i exit
Reproduce code:
---------------
/* Version PHP */
> php -v
PHP 5.2.6-1 with Suhosin-Patch 0.9.6.2 (cli) (built: May 4 2008
19:41:04)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by
eAccelerator
with Xdebug v2.0.3, Copyright (c) 2002-2007, by Derick Rethans
/* Test Script PHP */
> cat test-do.php
<?
$PGDB = new PDO( 'pgsql:user=html host=localhost dbname=***
password=*****' );
////$PGDB = new PDO( 'pgsql:host=localhost dbname=*******', 'html',
'*******' );
//$PGDB = null;
//unset( $PGDB );
die;
?>
/* Run Script PHP */
> php test-pdo.php
segmentation fault php test-pdo.php
Expected result:
----------------
segmentation fault
Actual result:
--------------
no seg fault , when exit
--
Edit bug report at http://bugs.php.net/?id=45209&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=45209&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=45209&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=45209&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45209&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=45209&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45209&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45209&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45209&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45209&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45209&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=45209&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=45209&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45209&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45209&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45209&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45209&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45209&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45209&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45209&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45209&r=mysqlcfg