![]() ![]() | ![]() |
1.1 misho 1: <?php 2: $phar = new Phar(__FILE__); 3: var_dump($phar->getMetadata()); 4: mkdir("phar://" . __FILE__ . "/test"); 5: var_dump(is_dir("phar://" . __FILE__ . "/test")); 6: $phar2 = new Phar(__FILE__); 7: var_dump($phar2->getMetadata()); 8: var_dump(isset($phar["test"])); 9: var_dump(isset($phar2["test"])); 10: echo "ok\n"; 11: __HALT_COMPILER(); ?> 12: H &