/hphp/test/zend/bad/ext/reflection/tests/ReflectionClass_getInterfaces_002.php

http://github.com/facebook/hiphop-php · PHP · 13 lines · 12 code · 1 blank · 0 comment · 0 complexity · 8d7f9ab500b1cefea71423a8ec7d37db MD5 · raw file

  1. <?php
  2. interface I1 {}
  3. interface I2 {}
  4. interface I3 {}
  5. interface I4 extends I3 {}
  6. interface I5 extends I4 {}
  7. interface I6 extends I5, I1, I2 {}
  8. interface I7 extends I6 {}
  9. $rc = new ReflectionClass('I7');
  10. $interfaces = $rc->getInterfaces();
  11. print_r($interfaces);
  12. ?>