"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Symfony/Component/Filesystem/Filesystem.php" between
symfony-4.4.14.tar.gz and symfony-4.4.15.tar.gz

About: Symfony is a web application framework for PHP projects. Source code (4.4 series).

Filesystem.php  (symfony-4.4.14):Filesystem.php  (symfony-4.4.15)
skipping to change at line 600 skipping to change at line 600
* @param string $file A file path * @param string $file A file path
* *
* @return bool * @return bool
*/ */
public function isAbsolutePath($file) public function isAbsolutePath($file)
{ {
if (null === $file) { if (null === $file) {
@trigger_error(sprintf('Calling "%s()" with a null in the $file argu ment is deprecated since Symfony 4.4.', __METHOD__), \E_USER_DEPRECATED); @trigger_error(sprintf('Calling "%s()" with a null in the $file argu ment is deprecated since Symfony 4.4.', __METHOD__), \E_USER_DEPRECATED);
} }
return strspn($file, '/\\', 0, 1) return '' !== (string) $file && (strspn($file, '/\\', 0, 1)
|| (\strlen($file) > 3 && ctype_alpha($file[0]) || (\strlen($file) > 3 && ctype_alpha($file[0])
&& ':' === $file[1] && ':' === $file[1]
&& strspn($file, '/\\', 2, 1) && strspn($file, '/\\', 2, 1)
) )
|| null !== parse_url($file, \PHP_URL_SCHEME) || null !== parse_url($file, \PHP_URL_SCHEME)
; );
} }
/** /**
* Creates a temporary file with support for custom stream wrappers. * Creates a temporary file with support for custom stream wrappers.
* *
* @param string $dir The directory where the temporary filename will be created * @param string $dir The directory where the temporary filename will be created
* @param string $prefix The prefix of the generated temporary filename * @param string $prefix The prefix of the generated temporary filename
* Note: Windows uses only the first three characters of prefix * Note: Windows uses only the first three characters of prefix
* *
* @return string The new temporary filename (with path), or throw an except ion on failure * @return string The new temporary filename (with path), or throw an except ion on failure
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)