ID: 46715 Updated by: ka...@php.net Reported By: svoboda at svoon dot net -Status: Open +Status: Feedback Bug Type: PDO related Operating System: debian etch PHP Version: 5.2CVS-2008-11-29 (snap) New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2008-12-07 10:36:15] svoboda at svoon dot net this bug still remains in 5.2.7 version. ondrej ------------------------------------------------------------------------ [2008-11-29 09:17:18] svoboda at svoon dot net full source is on the page http://www.tojeono.cz/script/php-bug.phps ondrej ------------------------------------------------------------------------ [2008-11-29 09:16:23] svoboda at svoon dot net Description: ------------ when use long sql query I get segmentation fault. I use latest zend framework. I was trying versions 5.2.6, 5.2 snapshot and 5.3 snapshot, I was trying to coplime php with mysql version 4.1, 5.0 and 5.1 but still the same result. Reproduce code: --------------- set_include_path(get_include_path() . PATH_SEPARATOR . '../../../data/library' . PATH_SEPARATOR ); require_once('Zend/Loader.php'); Zend_Loader::registerAutoload(); $db = Zend_Db::factory('pdo_mysql',array ('host'=>'xx','username'=>'xx','password'=>'xxx','dbname'=>'')); $db->query("SET NAMES utf8"); $db->query("LONG UPDATE QUERY..."); <- on this line I get segfault echo 'ok'; full source is on the page. if use shorter sql query the script works fine. Expected result: ---------------- it should print just ok :) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46715&edit=1