Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Duplicate
-
Affects Version/s: 1.9.5
-
Fix Version/s: None
-
Component/s: Zend_Db
Description
On inserting more than 358 characters with insert sql on Zend_Db
php crashes. My given sample works fine if you change number of
inserted characters to 358. The crash is database adapter
independent and can reproduct with Pdo_Mysql and Pdo_Oci.
On executing following code php crashes(tested on php 5.3):
==============================================================
$val = str_repeat('x', 359);
$sql = "INSERT INTO `test` (`test`) VALUES ('$val')";
$db = Zend_Db::factory(
'Pdo_Mysql',
array('host' => 'localhost', 'username' => 'root', 'password' => '', 'dbname' => 'testdb')
);
$db->getConnection();
$db->query($sql);
Database schema to reproduce:
=================================
CREATE TABLE `testdb`.`test` ( `test` TEXT NOT NULL ) ENGINE = MYISAM ;
I have forget to say that the problem are on WAMP Systems. I have at moment no chance for testing on LAMP.