mirror of
https://github.com/php/php-src.git
synced 2024-12-03 23:05:57 +08:00
23 lines
341 B
PHP
23 lines
341 B
PHP
--TEST--
|
||
SPL: SplFileObject::getSize
|
||
--CREDITS--
|
||
H<EFBFBD>vard Eide <nucleuz at gmail.com>
|
||
#Testfest php.no
|
||
--INI--
|
||
include_path=.
|
||
--FILE--
|
||
<?php
|
||
$file = __DIR__ ."/data.txt";
|
||
file_put_contents($file, "foobar");
|
||
|
||
$s = new SplFileObject( $file );
|
||
echo $s->getSize();
|
||
?>
|
||
--CLEAN--
|
||
<?php
|
||
$file = __DIR__ ."/data.txt";
|
||
unlink($file);
|
||
?>
|
||
--EXPECT--
|
||
6
|