summaryrefslogtreecommitdiff
path: root/poc/poc02-compiling-cake/src/php-weave/main2.php
blob: faf3ac1770553ffda2cc17fe423f6f76b72fb0cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?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();
foreach ($filelist as $f) {
	echo "Unserializing '$f'\n";
	$asts[]=$weaver->unserializeAST($f);
}

echo memory_get_usage();
 
?>