CHAPTER 6 – PEAR DB – Portability Features
Portability in PEAR DB is a balance between performance and portability. Dif- ferent users have different needs, so from DB 1.6, you have the option of enabling or disabling specific portability features. Older versions of DB had a catch-all "optimize for speed" or "optimize for portability" setting that is depre- cated and not covered here. Portability features are controlled with the portability configuration option (see "Configuration Options" earlier in this chapter). To combine more than one feature, use a bitwise OR, such as this: $dbh->setOption("portability", DB_PORTABILITY_RTRIM | DB_PORTABILITY_LOWERCASE);