<?php
require_once './cakephp_weaver.class.php';

ini_set('xdebug.max_nesting_level', 2000);

// Main
$weaver=new CakePHPWeaver;
$filelist = $weaver->findAllFiles("../workdir/cache", '/\.ast$/', '/^$/');
$asts=array();

echo memory_get_usage()."\n";

foreach ($filelist as $f) {
	echo "Unserializing '$f'\n";
	$asts[]=$weaver->unserializeAST($f);
}

echo memory_get_usage()."\n";
 
?>