add bitset operations and tests
[hiphop-php.git] / hphp / test / slow / ext_phar / basic.php
blob7a29e4b416e3228457c00b85420d3ffc1d479288
1 <?php
2 /**
3 * Regular Phar
4 */
5 echo ".phar:\n";
6 include __DIR__."/basic.phar";
8 echo "\n.phar with phar:// prefix:\n";
9 include 'phar://'.__DIR__."/basic.phar";
11 // TODO: not working somewhere deep inside HHVM; if you know how to fix - do it
12 //echo "\n.phar.gz:\n";
13 //include __DIR__."/basic.phar.gz";
15 echo "\n.phar.gz with phar:// prefix:\n";
16 include 'phar://'.__DIR__."/basic.phar.gz";
18 // TODO: not working somewhere deep inside HHVM; if you know how to fix - do it
19 //echo "\n.phar.bz2:\n";
20 //include __DIR__."/basic.phar.bz2";
22 echo "\n.phar.bz2 with phar:// prefix:\n";
23 include 'phar://'.__DIR__."/basic.phar.bz2";
25 /**
26 * Tar-based Phar
28 // TODO: not working somewhere deep inside HHVM; if you know how to fix - do it
29 //echo "\n.phar.tar:\n";
30 //include __DIR__."/basic.phar.tar";
32 echo "\n.phar.tar with phar:// prefix:\n";
33 include 'phar://'.__DIR__."/basic.phar.tar";
35 // TODO: not working somewhere deep inside HHVM; if you know how to fix - do it
36 //echo "\n.phar.tar.gz:\n";
37 //include __DIR__."/basic.phar.tar.gz";
39 echo "\n.phar.tar.gz with phar:// prefix:\n";
40 include 'phar://'.__DIR__."/basic.phar.tar.gz";
42 // TODO: not working somewhere deep inside HHVM; if you know how to fix - do it
43 //echo "\n.phar.tar.bz2:\n";
44 //include __DIR__."/basic.phar.tar.bz2";
46 echo "\n.phar.tar.bz2 with phar:// prefix:\n";
47 include 'phar://'.__DIR__."/basic.phar.tar.bz2";
49 /**
50 * Zip-based Phar
52 // TODO: not working somewhere deep inside HHVM; if you know how to fix - do it
53 //echo "\n.phar.zip:\n";
54 //include __DIR__."/basic.phar.zip";
56 echo "\n.phar.zip with phar:// prefix:\n";
57 include 'phar://'.__DIR__."/basic.phar.zip";
59 /**
60 * Tar with extension of regular Phar
62 // TODO: not working somewhere deep inside HHVM; if you know how to fix - do it
63 //echo ".phar (which is .phar.tar):\n";
64 //include __DIR__."/basic-tar.phar";
66 echo "\n.phar (which is .phar.tar) with phar:// prefix:\n";
67 include 'phar://'.__DIR__."/basic-tar.phar";
69 /**
70 * Tar GZ with extension of regular Phar
72 // TODO: not working somewhere deep inside HHVM; if you know how to fix - do it
73 //echo ".phar (which is .phar.tar.gz):\n";
74 //include __DIR__."/basic-tar-gz.phar";
76 echo "\n.phar (which is .phar.tar.gz) with phar:// prefix:\n";
77 include 'phar://'.__DIR__."/basic-tar-gz.phar";
79 /**
80 * Tar BZ2 with extension of regular Phar
82 // TODO: not working somewhere deep inside HHVM; if you know how to fix - do it
83 //echo ".phar (which is .phar.tar.bz2):\n";
84 //include __DIR__."/basic-tar-bz2.phar";
86 echo "\n.phar (which is .phar.tar.bz2) with phar:// prefix:\n";
87 include 'phar://'.__DIR__."/basic-tar-bz2.phar";
89 /**
90 * Zip with extension of regular Phar
92 // TODO: not working somewhere deep inside HHVM; if you know how to fix - do it
93 //echo ".phar (which is .phar.zip):\n";
94 //include __DIR__."/basic-zip.phar";
96 echo "\n.phar (which is .phar.zip) with phar:// prefix:\n";
97 include 'phar://'.__DIR__."/basic-zip.phar";