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