ofs | hex dump | ascii |
---|
0000 | 3c 3f 70 68 70 0a 24 70 68 61 72 20 3d 20 6e 65 77 20 50 68 61 72 28 5f 5f 46 49 4c 45 5f 5f 29 | <?php.$phar.=.new.Phar(__FILE__) |
0020 | 3b 0a 24 64 20 3d 20 64 69 72 6e 61 6d 65 28 5f 5f 46 49 4c 45 5f 5f 29 20 2e 20 22 2f 63 6f 70 | ;.$d.=.dirname(__FILE__)..."/cop |
0040 | 79 6f 6e 77 72 69 74 65 36 22 3b 0a 6d 6b 64 69 72 28 24 64 29 3b 0a 66 69 6c 65 5f 70 75 74 5f | yonwrite6";.mkdir($d);.file_put_ |
0060 | 63 6f 6e 74 65 6e 74 73 28 24 64 20 2e 20 22 2f 66 69 6c 65 31 22 2c 20 22 66 69 6c 65 31 5c 6e | contents($d..."/file1",."file1\n |
0080 | 22 29 3b 0a 66 69 6c 65 5f 70 75 74 5f 63 6f 6e 74 65 6e 74 73 28 24 64 20 2e 20 22 2f 66 69 6c | ");.file_put_contents($d..."/fil |
00a0 | 65 32 22 2c 20 22 66 69 6c 65 32 5c 6e 22 29 3b 0a 24 61 72 72 20 3d 20 24 70 68 61 72 2d 3e 62 | e2",."file2\n");.$arr.=.$phar->b |
00c0 | 75 69 6c 64 46 72 6f 6d 49 74 65 72 61 74 6f 72 28 6e 65 77 20 52 65 63 75 72 73 69 76 65 44 69 | uildFromIterator(new.RecursiveDi |
00e0 | 72 65 63 74 6f 72 79 49 74 65 72 61 74 6f 72 28 24 64 2c 20 52 65 63 75 72 73 69 76 65 44 69 72 | rectoryIterator($d,.RecursiveDir |
0100 | 65 63 74 6f 72 79 49 74 65 72 61 74 6f 72 3a 3a 53 4b 49 50 5f 44 4f 54 53 29 2c 24 64 29 3b 0a | ectoryIterator::SKIP_DOTS),$d);. |
0120 | 24 61 72 72 20 3d 20 24 70 68 61 72 2d 3e 62 75 69 6c 64 46 72 6f 6d 44 69 72 65 63 74 6f 72 79 | $arr.=.$phar->buildFromDirectory |
0140 | 28 24 64 29 3b 0a 6b 73 6f 72 74 28 24 61 72 72 29 3b 0a 76 61 72 5f 64 75 6d 70 28 24 61 72 72 | ($d);.ksort($arr);.var_dump($arr |
0160 | 29 3b 0a 24 70 68 61 72 32 20 3d 20 6e 65 77 20 50 68 61 72 28 5f 5f 46 49 4c 45 5f 5f 29 3b 0a | );.$phar2.=.new.Phar(__FILE__);. |
0180 | 24 61 72 72 20 3d 20 61 72 72 61 79 28 29 3b 0a 66 6f 72 65 61 63 68 20 28 24 70 68 61 72 32 20 | $arr.=.array();.foreach.($phar2. |
01a0 | 61 73 20 24 6e 61 6d 65 20 3d 3e 20 24 66 69 6c 65 29 20 7b 0a 09 24 61 72 72 5b 24 6e 61 6d 65 | as.$name.=>.$file).{..$arr[$name |
01c0 | 5d 20 3d 20 24 66 69 6c 65 2d 3e 67 65 74 43 6f 6e 74 65 6e 74 28 29 3b 0a 7d 0a 6b 73 6f 72 74 | ].=.$file->getContent();.}.ksort |
01e0 | 28 24 61 72 72 29 3b 0a 66 6f 72 65 61 63 68 20 28 24 61 72 72 20 61 73 20 24 6e 61 6d 65 20 3d | ($arr);.foreach.($arr.as.$name.= |
0200 | 3e 20 24 63 6f 6e 74 65 6e 74 29 20 7b 0a 09 65 63 68 6f 20 24 6e 61 6d 65 2c 20 22 20 22 2c 20 | >.$content).{..echo.$name,.".",. |
0220 | 24 63 6f 6e 74 65 6e 74 3b 0a 7d 0a 65 63 68 6f 20 22 6f 6b 5c 6e 22 3b 0a 5f 5f 48 41 4c 54 5f | $content;.}.echo."ok\n";.__HALT_ |
0240 | 43 4f 4d 50 49 4c 45 52 28 29 3b 20 3f 3e 0d 0a 30 00 00 00 01 00 00 00 11 00 00 00 01 00 00 00 | COMPILER();.?>..0............... |
0260 | 00 00 00 00 00 00 02 00 00 00 68 69 03 00 00 00 c8 70 9f 49 03 00 00 00 7a 7a 6f ed b6 01 00 00 | ..........hi.....p.I....zzo..... |
0280 | 00 00 00 00 68 69 0a cf ac cc 42 45 9b bf 40 c4 78 25 0c 93 43 1e 10 dc 63 72 17 02 00 00 00 47 | ....hi....BE..@.x%..C...cr.....G |
02a0 | 42 4d 42 | BMB |