Current time: 05-06-2024, 06:50 PM Hello There, Guest! (LoginRegister)


Post Reply 
Upgrade Error. Ubuntu Hardy, ispcp 1.0.7
Author Message
patrick.geschke Offline
Junior Member
*

Posts: 13
Joined: Nov 2009
Reputation: 0
Post: #3
RE: Upgrade Error. Ubuntu Hardy, ispcp 1.0.7
Okay, that actually worked.

This is the modified code:

PHP Code:
public function prepare($stmt$driver_options null) {

                if (
version_compare(PHP_VERSION'5.2.5''<')) {
                        if (
preg_match('/(ALTER |CREATE |DROP |GRANT |REVOKE |FLUSH )/i',
                                
$stmt)) {

                                
$this->_db->setAttribute(PDO::MYSQL_ATTR_DIRECT_QUERYtrue);
                        } else {
                                
$this->_db->setAttribute(PDO::MYSQL_ATTR_DIRECT_QUERYtrue);
                        }
                } 

What Did this modification do?
And will I get into problems in future? On Upgrades/Etc.?

Regards,
Patrick
05-15-2011 11:17 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Upgrade Error. Ubuntu Hardy, ispcp 1.0.7 - patrick.geschke - 05-15-2011 11:17 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)