diff options
Diffstat (limited to 'poc/poc02-compiling-cake/src/php-weave/main2.php')
-rw-r--r-- | poc/poc02-compiling-cake/src/php-weave/main2.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/poc/poc02-compiling-cake/src/php-weave/main2.php b/poc/poc02-compiling-cake/src/php-weave/main2.php new file mode 100644 index 0000000..faf3ac1 --- /dev/null +++ b/poc/poc02-compiling-cake/src/php-weave/main2.php @@ -0,0 +1,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(); + +?> |