|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2006-03-01 17:05 UTC] kfbombar at us dot ibm dot com
  [2006-03-06 08:30 UTC] martin dot hutchins at bluesq dot com
  [2006-03-16 17:03 UTC] kfbombar at us dot ibm dot com
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 07:00:01 2025 UTC | 
Description: ------------ PHP 5.1.1 and pdo_informix 1.0.0 on Solaris 9.. PHP segfaults when trying to When trying to execute prepared, parameterized SQL. It seems the driver_data structure pointer gets nullified somewhere where it shouldnt(!?) I *suspect* something v odd happened in stmt_bind_parameter()... Any help appreciated! Reproduce code: --------------- <?php $db = new PDO("informix:database=martin; server=test1_dbs; EnableScrollableCursors=1", "test", "test"); echo "Dumping db\n"; var_dump($db); $stmt = $db->prepare('select tabname from systables where tabname = :p_name' ); echo "Dumping stmt\n"; var_dump($stmt); $x = $stmt->execute(array(':p_name' => "systables")); echo "Dumping x\n"; var_dump($x); $stmt = null; $db = null; echo "All done\n"; ?> Actual result: -------------- I get: Dumping db object(PDO)#1 (0) { } Dumping stmt object(PDOStatement)#2 (1) { ["queryString"]=> string(53) "select tabname from systables where tabname = :p_name" } Segmentation Fault(coredump) I tried to get a backtrace..... #0 0x00125604 in stmt_parameter_pre_execute (stmt=0x69b888, curr=0x6d2a78) at /opt/php-5.1.2/ext/pdo_informix/informix_statement.c:409 409 if (param_res->ctype == SQL_C_LONG) (gdb) (gdb) bt #0 0x00125604 in stmt_parameter_pre_execute (stmt=0x69b888, curr=0x6d2a78) at /opt/php-5.1.2/ext/pdo_informix/informix_statement.c:409 #1 0x00126550 in informix_stmt_param_hook (stmt=0x69b888, param=0x6d2a78, event_type=6933776) at /opt/php-5.1.2/ext/pdo_informix/informix_statement.c:745 #2 0x00117310 in dispatch_param_event (stmt=0x69b888, event_type=7154296) at /opt/php-5.1.2/ext/pdo/pdo_stmt.c:149