This example, however, works perfect:
<?php
header("Content-Type: text/plain");
ini_set('max_execution_time', 10);
$st_tm = time();
$diff = 0;
while (1){
$image = new \Imagick(realpath('./IMG_2466.JPG'));
$image->thumbnailImage(64, 48, true, false);
$image->clear;
$image = null;
if ((time() - $st_tm) > $diff) {
$diff = (time() - $st_tm);
echo "Waiting to Die " . date('h:i:s') . "\n";
flush();
}
}
?>
So you only need a single big image (I used 11 MB jpeg). Doesn't work
with newImage probabaly because thumbnailImage takes no time to complete
and we need script killed while thumbnailImage is still working.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1677578
Title:
php-fcgi: max_execution_time causes memory leaks
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php7.0/+bug/1677578/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs