Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-07-2007, 07:39 AM
Junior Member
 
Join Date: May 2007
Posts: 1
Default Zend_Memory Problem

Hello!

Does anybody Has been using Zend_Memory Component.
It seems it doesn't work on my machine (Windows).
I didn't check what would be happen on UNIX machine.

But my problem is that - I use File Backend and any file in cacheDir Has not been created !!
So any data cannot be swapped form memory to File and vice versa.

Please help me, I would be very gratefull

My code:
PHP Code:
$backendOptions = array( 
    
'cacheDir' =>  realpath('..\\tmp\\cache\\memory'// Directory where to put the swapped memory blocks 
); 
$memoryManager Zend_Memory::factory('File'$backendOptions);
$memoryManager->setMemoryLimit(16384);
$memoryManager->setMinSize(4096);
$memObject $memoryManager->create();

for(
$i 0$i $aLot$i++) {
    .......
    
$memObject->value[$i] = serialize($sampleArray);
    unset(
$sampleArray);

My memory_limit = 32M in php.ini file

I've Got this error

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1259 bytes) in ...


Regards,
Piotr Sadowski
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:50 PM.