src/Stream/StringWrapper.php
public function url_stat($path, $flags = 0)
	{
		$now     = time();
		$refPath = StringController::getRef(str_replace('string://', '', $path));
		$string  = &$refPath;
		$stat    = array(
			'dev'     => 0,
			'ino'     => 0,
			'mode'    => 0,
			'nlink'   => 1,
			'uid'     => 0,
			'gid'     => 0,
			'rdev'    => 0,
			'size'    => \strlen($string),
			'atime'   => $now,
			'mtime'   => $now,
			'ctime'   => $now,
			'blksize' => '512',
			'blocks'  => ceil(\strlen($string) / 512),
		);

		return $stat;
	}
public function url_stat($path, $flags = 0)
	{
		$now     = time();
		$refPath = StringController::getRef(str_replace('string://', '', $path));
		$string  = &$refPath;
		$stat    = array(
			'dev'     => 0,
			'ino'     => 0,
			'mode'    => 0,
			'nlink'   => 1,
			'uid'     => 0,
			'gid'     => 0,
			'rdev'    => 0,
			'size'    => \strlen($string),
			'atime'   => $now,
			'mtime'   => $now,
			'ctime'   => $now,
			'blksize' => '512',
			'blocks'  => ceil(\strlen($string) / 512),
		);

		return $stat;
	}
public function url_stat ( $ path , $ flags = 0 ) { $ now = time ( ) ; $ refPath = StringController :: getRef ( str_replace ( 'string://' , '' , $ path ) ) ; $ string = & $ refPath ; $ stat = array ( 'dev' => 0 , 'ino' => 0 , 'mode' => 0 , 'nlink' => 1 , 'uid' => 0 , 'gid' => 0 , 'rdev' => 0 , 'size' => \ strlen ( $ string ) , 'atime' => $ now , 'mtime' => $ now , 'ctime' => $ now , 'blksize' => '512' , 'blocks' => ceil ( \ strlen ( $ string ) / 512 ) , ) ; return $ stat ; }
Method to retrieve information about a file.

@param   string   $path   File path or URL to stat
@param   integer  $flags  Additional flags set by the streams API

@return  array

@link    https://www.php.net/manual/en/streamwrapper.url-stat.php
@since   1.3.0
Method to retrieve information about a file .