![]() ![]() | ![]() |
1.1 ! misho 1: <?php ! 2: $p = new Phar(__FILE__); ! 3: var_dump($p->getStub()); ! 4: $p2 = new Phar(__FILE__); ! 5: $a = fopen("phar://" . __FILE__ . "/test.txt", "r"); ! 6: $p->setStub($a); ! 7: echo $p2->getStub(),"\n"; ! 8: echo "ok\n"; ! 9: __HALT_COMPILER(); ?> ! 10: 6 &