@@ -877,53 +877,6 @@ function glob(string $pattern, int $flags = 0): array
877877}
878878
879879
880- /**
881- * Tells whether the filename is executable.
882- *
883- * @param string $filename Path to the file.
884- * @throws FilesystemException
885- *
886- */
887- function is_executable (string $ filename ): void
888- {
889- error_clear_last ();
890- $ result = \is_executable ($ filename );
891- if ($ result === false ) {
892- throw FilesystemException::createFromPhpError ();
893- }
894- }
895-
896-
897- /**
898- * Returns TRUE if the file named by filename was
899- * uploaded via HTTP POST. This is useful to help ensure that a
900- * malicious user hasn't tried to trick the script into working on
901- * files upon which it should not be working--for instance,
902- * /etc/passwd.
903- *
904- * This sort of check is especially important if there is any chance
905- * that anything done with uploaded files could reveal their
906- * contents to the user, or even to other users on the same
907- * system.
908- *
909- * For proper working, the function is_uploaded_file needs
910- * an argument like $_FILES['userfile']['tmp_name'], - the name of the uploaded
911- * file on the client's machine $_FILES['userfile']['name'] does not work.
912- *
913- * @param string $filename The filename being checked.
914- * @throws FilesystemException
915- *
916- */
917- function is_uploaded_file (string $ filename ): void
918- {
919- error_clear_last ();
920- $ result = \is_uploaded_file ($ filename );
921- if ($ result === false ) {
922- throw FilesystemException::createFromPhpError ();
923- }
924- }
925-
926-
927880/**
928881 * Attempts to change the group of the symlink filename
929882 * to group.
0 commit comments