Hi Véronique,
I executed your sample script on a linux production server running PHP
5.2.0 and Zend Framework 1.0.2 and got the following result with
memory_get_usage(true) :
before : 262144
after : 262144
and with false:
before : 45208
after : 176512
I don't know exactly how accurate the output of this function is but I
noticed that your memory_limit directive is set to 128M, which is very
high. Any particular reason for that ?
Regards.
Olivier
Andrew Bidochko a écrit :
Veronique,
I just executed your code sample and received
before : 262144 bytes
after : 786432 bytes
Kinda interesting, Zend_Db_Adapter_Pdo_Mysql
class instantiating doesn't change memory consumption ...
Having just <?php 'require_once 'Zend/Db/Adapter/Pdo/Mysql.php'; ?>
brings memory usage to the same 786432 bytes.
PS: PHP 5.2.1 (cli), Zend Framework 1.0.2