#46715 [Opn]: Segfault on long sql query in pdo_mysql
ID: 46715
User updated by: svoboda at svoon dot net
Reported By: svoboda at svoon dot net
Status: Open
Bug Type: PDO related
Operating System: debian etch
PHP Version: 5.2CVS-2008-11-29 (snap)
New Comment:
full source is on the page http://www.tojeono.cz/script/php-bug.phps
ondrej
Previous Comments:
------------------------------------------------------------------------
[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
Thread (8 messages)