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

Reply via email to