exec php
2020-12-13 16:34
标签:style class blog code color get 备忘,用exec函数做对文件的递归调用,防止单次执行内存消耗过大导致内存泄漏 exec php,搜素材,soscw.com exec php 标签:style class blog code color get 原文地址:http://www.cnblogs.com/sunnystone85/p/3800195.html$m = memory_get_usage();
echo $m;
require_once(‘include/entryPoint.php‘);
// for ($i=0; $i
if ($argc == 1) {
for ($i=0; $i $i++) {
exec(‘php -d display_errors ‘ . $argv[0] . ‘ ‘ . $i , $output, $return);
echo $output;
}
} elseif (isset($argv[1])) {
for ($i=0; $i $i++) {
$rliBean[] = BeanFactory::newBean(‘ibm_RevenueLineItems‘); // 消耗内存的代码
}
$am = memory_get_usage();
//echo PHP_EOL;
//echo $am;
echo PHP_EOL;
echo $am - $m;
}
上一篇:php拾遗: 类型约束