Yep, here's the offending code (also available in the github repo for
CakePHP Datasources).
/**
* Returns an array of sources (tables) in the database.
*
* @return array Array of tablenames in the database
*/
function listSources() {
$cache = parent::listSources();
On Mon, Mar 28, 2011 at 12:49 PM, mhamann wrote:
> More info...
>
> I've been tearing apart the listSources() method in attempts to figure
> out what's going on. I ran PHP's odbc_result_all() method on the
> result and got a table with the correct number of rows, but with
> really weird, messed up
More info...
I've been tearing apart the listSources() method in attempts to figure
out what's going on. I ran PHP's odbc_result_all() method on the
result and got a table with the correct number of rows, but with
really weird, messed up data. Instead of containing info from my DB,
it seemed to co
Outside the CakePHP framework, the same odbc_tables() call followed by
pushing the returned values into an array (i.e. the same thing the
ODBC driver is doing) requires less than 1MB of memory. Obviously,
Cake will require more than that due to additional overhead, but I
can't see any reason for it
On Mar 24, 2011, at 16:31, mhamann wrote:
> I'm trying to access a DB2 database via ODBC and I'm getting the
> following error when Cake attempts to list all of the tables:
> "Fatal error: Allowed memory size of 33554432 bytes exhausted (tried
> to allocate 551995385 bytes)"
Your PHP is configur
Hello,
I'm trying to access a DB2 database via ODBC and I'm getting the
following error when Cake attempts to list all of the tables:
"Fatal error: Allowed memory size of 33554432 bytes exhausted (tried
to allocate 551995385 bytes)"
I'm using the ODBC Datasource located in the cakephp/datasources