Effectivement... Quand je mate le error.log d'Apache, j'ai ça :
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 35 bytes) in /var/www/web1/web/pdf/parsingHTML.class.php on line 191
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 16 bytes) in /var/www/web1/web/pdf/parsingHTML.class.php on line 182
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 4 bytes) in /var/www/web1/web/pdf/parsingHTML.class.php on line 188
Et dans mon php.ini :
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 16M ; Maximum amount of memory a script may consume (16MB)
J'hésite à passer de 16 à 36, sauf si je cible sur le dossier /pdf/ via un .htaccess :
<FilesMatch "\.(php|html?)$">
php_value memory_limit 36M
</FilesMatch>
Qu'en penses-tu, Spipu ? Ca me parait lourd malgré tout... Je peux essayer d'optimiser, sans trop savoir où ça coince, mais bon la différence est assez large