fileobject_004.phpt 403 B

1234567891011121314151617181920
  1. --TEST--
  2. SPL: SplFileObject realpath and include_path
  3. --FILE--
  4. <?php
  5. set_include_path('tests');
  6. chdir(dirname(__DIR__)); // ext/spl
  7. $fo = new SplFileObject('fileobject_004.phpt', 'r', true);
  8. var_dump($fo->getPath());
  9. var_dump($fo->getFilename());
  10. var_dump($fo->getRealPath());
  11. ?>
  12. --EXPECTF--
  13. string(%d) "%sspl%stests"
  14. string(19) "fileobject_004.phpt"
  15. string(%d) "%sspl%stests%sfileobject_004.phpt"