Problem with adodb when use pdo_mysql driver
|Reported by:||safari||Owned by:||moo|
<? require_once(dirname(__FILE__).'/adodb/adodb-exceptions.inc.php'); require_once(dirname(__FILE__).'/adodb/adodb.inc.php'); echo "<BR>before"; $conn =& NewADOConnection("pdo_mysql://user:pwd@localhost/dbname?persist"); var_dump($conn); ?>
When not use xCache, will see "before" and the dump of $conn value.
When use xCache, see "before" only; change connection type to mysql/mysqli, it worked again.
No error found in apache/php log.
I guess that xCache has problem when compiling/caching file adodb-pdo.inc.php or adodb-pdo_mysql.inc.php. When the error happened, the file adodb-pdo.inc.php was compiled/cached, but adodb-pdo_mysql.inc.php was not.
This bug also happened with eaccelerator, wonder why? (use the same code/idea???); but worked fine with APC.