add bitset operations and tests
[hiphop-php.git] / hphp / test / slow / pinit / pinit-throw.php
blob601df2cf81fa6e8448a0a8cc6b19a41b5ff2e873
1 <?php
3 function __autoload($cls) {
4 echo "__autoloading $cls\n";
5 if ($cls === 'Y') {
6 throw new Exception("x");
10 class X {
11 public $p = Y::FOO;
14 function test() {
15 for ($i = 0; $i < 3; $i++) {
16 try {
17 var_dump(new X);
18 } catch (Exception $e) {
19 echo "Caught exception constructing an X: ".$e->getMessage()."\n";
24 test();