RE: [PHP] PDO Changes from 5.0.x To 5.1.x
| From: | Jared Williams | Date: | Wed, 01 Mar 2006 13:49:59 +0000 |
| Subject: | RE: [PHP] PDO Changes from 5.0.x To 5.1.x | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-231256@lists.php.net to get a copy of this message | ||
Hi,
Only way I know is to import them into the global scope with define()
If (!defined(PDO_FETCH_ASSOC))
define('PDO_FETCH_ASSOC', PDO::FETCH_ASSOC);
As for further differences, I'm not aware of any.
Jared
>
> According to documentation, PDO globals constants in 5.0.3+
> were changed to class constants in 5.1.
>
> Does anyone have a suggestion for portability of constants
> between the 5.0.x branch and the 5.1 branch without having to
> rewrite code.
>
> Besides the constants, what other differences exist in PDO
> for 5.0.x and 5.1 that may effect portability/functionality?
>
> Chris D.
>
> --
> PHP General Mailing List (http://www.php.net/) To
> unsubscribe, visit: http://www.php.net/unsub.php
>