i have a class that extends the PDO class. it's called Database. but in a particular function, the commit() function, it gets an memory overflow error.
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261900 bytes) in C:\wamp\www\igadgets\application\includes\base\classes\database.php on line 130
the function was:
function commit() {
return $this->commit();
}
the curious is: when i change my class to not extend PDO anymore, but just contain it in a variable, the error disappears.
this works fine:
function commit() {
return $this->pdo->commit();
}
why is that?