Edit report at http://bugs.php.net/bug.php?id=54583&edit=1
ID: 54583 Comment by: an0nym at narod dot ru Reported by: an0nym at narod dot ru Summary: Segfault when trying to reexecute statement after exception with libmysql Status: Open Type: Bug Package: PDO related Operating System: CentOS 5.5 x86_64 PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: There was a similar problem that was patched in PHP 5.3.6. http://bugs.php.net/53551 Previous Comments: ------------------------------------------------------------------------ [2011-04-21 08:28:36] an0nym at narod dot ru Description: ------------ PHP segfaults when prepared statement that threw an exception is reexecuted. pdo_mysql, libmysql. Haven't tested with mysqlnd yet. Test script: --------------- <?php $DB = new PDO("mysql:dbname=test;host=localhost", "root", "", array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::ATTR_EMULATE_PREPARES => false)); $DB->exec("CREATE TEMPORARY TABLE t(f VARCHAR(1))"); $stmt = $DB->prepare("INSERT INTO t VALUES(:value)"); $value = "aa"; $stmt->bindParam(":value", $value); try { $stmt->execute(); } catch (PDOException $e) {} $stmt->execute(); Expected result: ---------------- Script successfully executed Actual result: -------------- Segmentation fault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54583&edit=1