Edit report at https://bugs.php.net/bug.php?id=55414&edit=1
ID: 55414 Comment by: lgandras at gmail dot com Reported by: jbboehr at gmail dot com Summary: Segmentation fault with MySQLi_Result::fetch_fields() Status: Feedback Type: Bug Package: MySQLi related Operating System: CentOS release 5.6 (Final) PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: It's still reproducible in PHP 5.3.8. Previous Comments: ------------------------------------------------------------------------ [2011-08-22 22:34:18] lgandras at gmail dot com Mysql Server 5.1.56-log Linked against libmysql ------------------------------------------------------------------------ [2011-08-22 18:17:41] lgandras at gmail dot com Hi, sorry. We're not able to install till cpanel upgrades it's packages. This usually takes a few weeks. I'm subscribed anyway and will update you as soon as cpanel gets us a newer release. ------------------------------------------------------------------------ [2011-08-22 14:32:39] ka...@php.net Hi Does this happen with PHP 5.3.7, what MySQL server version are you using and what MySQL client library is PHP linked against (libmysql or mysqlnd)? ------------------------------------------------------------------------ [2011-08-16 01:48:29] jbboehr at gmail dot com PS Thanks for the gdb ------------------------------------------------------------------------ [2011-08-16 01:48:02] jbboehr at gmail dot com @lgandras For now, we're just using a work-around case for MySQLi, maybe it'll help you: if( $adapter instanceof Zend_Db_Adapter_Mysqli ) { // Fixes MySQLI segfault in fetch_fields() with SHOW ENGINES $connection = $adapter->getConnection(); $result = mysqli_query($connection, 'SHOW ENGINES'); if ( !$result instanceof MySQLi_STMT ){ return $this->_error('badAdapter'); } $data = array(); while ( $row = $result->fetch_array() ){ $data[] = $row; } } else { try { $data = $adapter->query('SHOW ENGINES')->fetchAll(); } catch( Exception $e ) { return $this->_error('badAdapter'); } } ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=55414 -- Edit this bug report at https://bugs.php.net/bug.php?id=55414&edit=1