Ticket #52 (closed defect: fixed)
Problem with adodb when use pdo_mysql driver
| Reported by: | safari | Owned by: | moo |
|---|---|---|---|
| Priority: | major | Milestone: | 1.2 |
| Component: | cacher | Version: | 1.1-rc1 |
| Keywords: | Cc: | ||
| Blocked By: | PHP Version: | ||
| Application: | Need User Feedback: | ||
| Other Exts: | SAPI: | ||
| Probability: | Blocking: |
Description
Code:
<?
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.
Change History
Note: See
TracTickets for help on using
tickets.

