/PHP-8.2/ext/spl/tests/ |
H A D | SplFileinfo_debugInfo_basic.phpt | 9 var_dump(new \SplFileInfo('d')); 21 object(SplFileInfo)#1 (2) { 27 object(SplFileInfo)#1 (2) { 33 object(SplFileInfo)#1 (2) { 39 object(SplFileInfo)#1 (2) { 45 object(SplFileInfo)#1 (2) { 51 object(SplFileInfo)#1 (2) { 57 object(SplFileInfo)#1 (2) { 63 object(SplFileInfo)#1 (2) { 69 object(SplFileInfo)#1 (2) { [all …]
|
H A D | SplFileinfo_getBasename_basic.phpt | 2 SPL: SplFileInfo::getBasename() basic test 6 echo (new \SplFileInfo('/path/to/a.txt'))->getBasename() . PHP_EOL; 7 echo (new \SplFileInfo('path/to/b'))->getBasename() . PHP_EOL; 8 echo (new \SplFileInfo('c.txt'))->getBasename() . PHP_EOL; 9 echo (new \SplFileInfo('d'))->getBasename() . PHP_EOL; 10 echo (new \SplFileInfo('~/path/to//e'))->getBasename() . PHP_EOL . PHP_EOL; 13 echo (new \SplFileInfo('path/to/a.txt'))->getBasename('.txt') . PHP_EOL; 14 echo (new \SplFileInfo('path/to/bbb.txt'))->getBasename('b.txt') . PHP_EOL; 16 echo (new \SplFileInfo('d.txt'))->getBasename('txt') . PHP_EOL; 17 echo (new \SplFileInfo('e.txt'))->getBasename('e.txt') . PHP_EOL; [all …]
|
H A D | SplFileInfo_setInfoClass_basic.phpt | 2 SplFileInfo::setInfoClass() expects SplFileInfo or child class 6 class MyInfoObject extends SplFileInfo {} 8 $info = new SplFileInfo(__FILE__); 14 $info->setInfoClass('SplFileInfo'); 22 SplFileInfo 23 SplFileInfo
|
H A D | SplFileinfo_getFilename_basic.phpt | 2 SPL: SplFileInfo::getFilename() basic test 6 echo (new \SplFileInfo('/path/to/a.txt'))->getFilename() . PHP_EOL; 7 echo (new \SplFileInfo('path/to/b'))->getFilename() . PHP_EOL; 8 echo (new \SplFileInfo('c.txt'))->getFilename() . PHP_EOL; 9 echo (new \SplFileInfo('d'))->getFilename() . PHP_EOL; 10 echo (new \SplFileInfo('~/path/to//e'))->getFilename() . PHP_EOL . PHP_EOL;
|
H A D | gh12721.phpt | 2 GH-12721 (SplFileInfo::getFilename() segfault in combination with GlobIterator and no directory sep… 36 object(SplFileInfo)#4 (2) { 37 ["pathName":"SplFileInfo":private]=> 39 ["fileName":"SplFileInfo":private]=> 46 object(SplFileInfo)#3 (2) { 47 ["pathName":"SplFileInfo":private]=> 49 ["fileName":"SplFileInfo":private]=>
|
H A D | SplFileInfo_setInfoClass_error.phpt | 2 SplFileInfo::setInfoClass() throws exception for invalid class 6 $info = new SplFileInfo(__FILE__); 16 SplFileInfo::setInfoClass(): Argument #1 ($class) must be a class name derived from SplFileInfo, st…
|
H A D | bug77431.phpt | 2 Bug #77431 (SplFileInfo::__construct() accepts NUL bytes) 5 new SplFileInfo("bad\0good"); 8 Fatal error: Uncaught ValueError: SplFileInfo::__construct(): Argument #1 ($filename) must not cont… 10 #0 %s(%d): SplFileInfo->__construct('bad\x00good')
|
H A D | dit_002.phpt | 50 SplFileInfo 53 SplFileInfo 59 SplFileInfo 62 SplFileInfo 68 SplFileInfo 71 SplFileInfo
|
H A D | SplFileInfo_getExtension_basic-win32.phpt | 2 SPL: SplFileInfo::getExtension() basic test 9 $file = md5('SplFileInfo::getExtension'); 13 $info = new SplFileInfo($file . $ext); 19 $file = md5('SplFileInfo::getExtension');
|
H A D | SplFileInfo_getExtension_basic.phpt | 2 SPL: SplFileInfo::getExtension() basic test 9 $file = md5('SplFileInfo::getExtension'); 13 $info = new SplFileInfo($file . $ext); 19 $file = md5('SplFileInfo::getExtension');
|
H A D | SplFileInfo_setFileClass_error.phpt | 2 SplFileInfo::setFileClass() throws exception for invalid class 6 $info = new SplFileInfo(__FILE__); 16 SplFileInfo::setFileClass(): Argument #1 ($class) must be a class name derived from SplFileObject, …
|
H A D | bug65213.phpt | 2 Bug #65213 (cannot cast SplFileInfo to boolean) 6 $o = new SplFileInfo('.');
|
H A D | SplFileInfo_getPerms_error.phpt | 15 $fileInfo = new SplFileInfo('not_existing'); 19 Fatal error: Uncaught RuntimeException: SplFileInfo::getPerms(): stat failed for %s in %s 21 #0 %s: SplFileInfo->getPerms()
|
H A D | SplFileInfo_getGroup_error.phpt | 15 $fileInfo = new SplFileInfo('not_existing'); 19 Fatal error: Uncaught RuntimeException: SplFileInfo::getGroup(): stat failed for not_existing in %s 21 #0 %s: SplFileInfo->getGroup()
|
H A D | SplFileInfo_getInode_error.phpt | 15 $fileInfo = new SplFileInfo('not_existing'); 19 Fatal error: Uncaught RuntimeException: SplFileInfo::getInode(): stat failed for not_existing in %s 21 #0 %s: SplFileInfo->getInode()
|
H A D | SplFileInfo_getOwner_error.phpt | 15 $fileInfo = new SplFileInfo('not_existing'); 19 Fatal error: Uncaught RuntimeException: SplFileInfo::getOwner(): stat failed for not_existing in %s 21 #0 %s: SplFileInfo->getOwner()
|
H A D | DirectoryIterator_getInode_error.phpt | 19 $fileInfo = new SplFileInfo('not_existing'); 23 Fatal error: Uncaught RuntimeException: SplFileInfo::getInode(): stat failed for %s in %s 25 #0 %s: SplFileInfo->getInode()
|
H A D | gh7809.phpt | 2 Bug GH-7809 (Cloning a faked SplFileInfo object may segfault) 5 class MySplFileInfo extends SplFileInfo {
|
H A D | SplFileInfo_setFileClass_basic.phpt | 2 SplFileInfo::setFileClass() expects SplFileObject or child class 8 $info = new SplFileInfo(__FILE__);
|
H A D | SplTempFileObject_constructor_basic.phpt | 9 ["pathName":"SplFileInfo":private]=> 11 ["fileName":"SplFileInfo":private]=>
|
/PHP-8.2/ext/spl/tests/SplFileObject/ |
H A D | fileobject_003.phpt | 2 SPL: SplFileInfo cloning 12 $o = new SplFileInfo($name); 51 object(SplFileInfo)#%d (2) { 52 ["pathName":"SplFileInfo":private]=> 54 ["fileName":"SplFileInfo":private]=> 57 object(SplFileInfo)#%d (2) { 58 ["pathName":"SplFileInfo":private]=> 77 object(SplFileInfo)#%d (2) { 83 object(SplFileInfo)#%d (2) { 95 object(SplFileInfo)#%d (2) { [all …]
|
H A D | fileobject_getfileinfo_basic.phpt | 14 $d = new SplFileInfo( __DIR__ ); 17 $d = new SplFileInfo( __DIR__."/" ); 22 object(SplFileInfo)#%d (2) { 23 ["pathName":"SplFileInfo":private]=> 25 ["fileName":"SplFileInfo":private]=> 30 object(SplFileInfo)#%d (2) { 31 ["pathName":"SplFileInfo":private]=> 33 ["fileName":"SplFileInfo":private]=> 38 object(SplFileInfo)#%d (2) { 39 ["pathName":"SplFileInfo":private]=> [all …]
|
/PHP-8.2/ext/spl/ |
H A D | spl_directory_arginfo.h | 277 ZEND_METHOD(SplFileInfo, getPath); 282 ZEND_METHOD(SplFileInfo, getPerms); 283 ZEND_METHOD(SplFileInfo, getInode); 284 ZEND_METHOD(SplFileInfo, getSize); 285 ZEND_METHOD(SplFileInfo, getOwner); 286 ZEND_METHOD(SplFileInfo, getGroup); 287 ZEND_METHOD(SplFileInfo, getATime); 290 ZEND_METHOD(SplFileInfo, getType); 294 ZEND_METHOD(SplFileInfo, isFile); 295 ZEND_METHOD(SplFileInfo, isDir); [all …]
|
H A D | spl_directory.stub.php | 6 class SplFileInfo implements Stringable class 77 public function getFileInfo(?string $class = null): SplFileInfo {} 80 public function getPathInfo(?string $class = null): ?SplFileInfo {} 92 public function setInfoClass(string $class = SplFileInfo::class): void {} 107 class DirectoryIterator extends SplFileInfo implements SeekableIterator 223 public function current(): string|SplFileInfo|FilesystemIterator {} 259 class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIterator
|
/PHP-8.2/ext/phar/tests/ |
H A D | phar_oo_006.phpt | 24 $phar->setFileClass('SplFileInfo'); 43 SplFileInfo::setFileClass(): Argument #1 ($class) must be a class name derived from SplFileObject, …
|