From: svoboda at svoon dot net Operating system: debian etch PHP version: 5.2CVS-2008-11-29 (snap) PHP Bug Type: PDO related Bug description: Segfault on long sql query in pdo_mysql
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 bug report at http://bugs.php.net/?id=46715&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46715&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46715&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46715&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46715&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46715&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=46715&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46715&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46715&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46715&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46715&r=support Expected behavior: http://bugs.php.net/fix.php?id=46715&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46715&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46715&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46715&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46715&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46715&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46715&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46715&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46715&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46715&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46715&r=mysqlcfg