Details
-
Type:
Bug
-
Status:
Reopened
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.6.2, 1.7.0, 1.7.1, 1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.7.6, 1.7.7, 1.7.8, 1.7.9, 1.8.0, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.9.5, 1.9.6, 1.9.7, 1.9.8, 1.10.0, 1.10.1, 1.10.2, 1.10.3, 1.10.4, 1.10.5, 1.10.6, 1.10.7, 1.10.8, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.11.4
-
Fix Version/s: None
-
Component/s: Zend_Db
Description
This seems not to exactly be a Zend Framework bug, but more likely PHP or PRCE lib bug, but I'll post it here for your opinion.
On line 190 of Zend_Db_Statement is the following preg_replace:
$sql = preg_replace("/$q($qe|\\\\{2}|[^$q])*$q/", '', $sql);
When the sql passed is longer than about 4100 characters the process dies with the following error in the log:
[notice] child pid 7426 exit signal Segmentation fault (11)
I can drill it down to be this part of the regex that fails: /([^'])*/
The content in the sql i UTF8 encoded text - all characters are ascii though. I don't know if that might be of any help.
It seems to be somewhat related to this filed php bug:
http://bugs.php.net/bug.php?id=46551
I'm using PHP 5.2.6-0.dotdeb.1 with Suhosin-Patch 0.9.6.2 (cli) (built: May 2 2008 10:24:03) on a debian-server. I will upgrade to latest snapshot tomorrow to see if that helps.
Attachments
Issue Links
| This issue is duplicated by: | ||||
| ZF-8399 | Zend_Db Query crashes on insert more than 358 characters |
|
|
|
| ZF-10209 | I can not save large amounts of text. Error in function _stripQuoted ($ sql) function preg_replace () |
|
|
|
| ZF-7585 | query failed on very large sql statement |
|
|
|
| ZF-11249 | preg_replace crash on long sql queries |
|
|
|
| This issue is related to: | ||||
| ZF-3025 | Invalid bind-variable position when colon used in quoted parameter (using Mysqli) |
|
|
|
| This issue is related to: | ||||
| ZF-7911 | Zend_Db_Statement::_stripQuoted seems not to be complete |
|
|
|
I guess it has something to do with this: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=476419