Daniel, I changed PDODatabase in my branch so it detects if class constants are available. This guarantees compatibility with PDO versions used with PHP 5.0.x
- David > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Daniel Swarbrick > Sent: Monday, October 24, 2005 11:18 PM > To: [email protected] > Subject: [agavi-dev] Patch against PDODatabase.class.php > > This patch fixes PHP errors with the latest RC of PHP 5.1. PDO constants > have been moved to the 'PDO::' "namespace". > > --- PDODatabase.class.php.bak 2005-10-25 09:58:46.000000000 +1300 > +++ PDODatabase.class.php 2005-10-25 09:59:23.000000000 +1300 > @@ -74,7 +74,7 @@ > } > > // lets generate exceptions instead of silent failures > - $this->connection->setAttribute(PDO_ATTR_ERRMODE, > PDO_ERRMODE_EXCEPTION); > + $this->connection->setAttribute(PDO::ATTR_ERRMODE, > PDO::ERRMODE_EXCEPTION); > > } > _______________________________________________ > agavi-dev mailing list > [email protected] > http://labworkz.com/cgi-bin/mailman/listinfo/agavi-dev _______________________________________________ agavi-dev mailing list [email protected] http://labworkz.com/cgi-bin/mailman/listinfo/agavi-dev
