#46715 [Opn->Fbk]: Segfault on long sql query in pdo_mysql
| From: | kalle@php.net | Date: | Thu, 08 Jan 2009 05:31:35 +0000 |
| Subject: | #46715 [Opn->Fbk]: Segfault on long sql query in pdo_mysql | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-132651@lists.php.net to get a copy of this message | ||
ID: 46715
Updated by: kalle@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