• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mysqli, Model Destructors, PHP 5.16 and You

#1
[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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.