Mysqli, Model Destructors, PHP 5.16 and You - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Mysqli, Model Destructors, PHP 5.16 and You (/showthread.php?tid=9603) |
Mysqli, Model Destructors, PHP 5.16 and You - El Forum - 07-01-2008 [eluser]beseku[/eluser] Just a little bug report - its more likely to be in this version of PHP, (5.1.6) as I don't get it locally, but thought people might get it anyway ... If you are using an active record database function, (we use inserts for logging) in a model's destructor, (__destruct), the MYSQLI driver falls over and throws warnings - it basically won't work. It turns out that this has something to do with MYSQLI specifically, since it works fine using MYSQL drivers. I tried commenting out the _close function in the driver, and the close() call in Codeigniter.php and it didn't work. |