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
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to