|
File patch.txt, 489 bytes
(added by sci2tech, 5 months ago)
|
It seems to be a version related. With debian lenny I cant reproduce(mysql 5.0.51a-6, php 5.2.5). gOOvER can you test following patch? Its only for test to convince myself that I found the problem
|
| Line | |
|---|
| 1 |
--- class.database.php 2008-06-28 13:53:19.000000000 +0300 |
|---|
| 2 |
+++ /var/www/ispcp/gui/include/class.database.php 2008-07-03 01:13:10.000000000 +0300 |
|---|
| 3 |
@@ -25,6 +25,7 @@ |
|---|
| 4 |
private function __construct($user, $pass, $type, $host, $name) { |
|---|
| 5 |
$this->_db = new PDO($type . ':host=' . $host . ';dbname=' . $name, $user, $pass); |
|---|
| 6 |
$this->_db->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true); |
|---|
| 7 |
+ $this->_db->setAttribute(PDO::ATTR_EMULATE_PREPARES, true); |
|---|
| 8 |
} |
|---|
| 9 |
|
|---|
| 10 |
public function ErrorMsg() { |
|---|
|
Download in other formats:
#########################################################################
# Site footer - Contents are automatically inserted after main Trac HTML
?>