Browse Source

[php] Add extern for `filesize()` (#9832)

Cédric Belin 5 years ago
parent
commit
6976658c70
1 changed files with 5 additions and 0 deletions
  1. 5 0
      std/php/Global.hx

+ 5 - 0
std/php/Global.hx

@@ -705,6 +705,11 @@ extern class Global {
 	**/
 	static function filemtime(filename:String):EitherType<Int, Bool>;
 
+	/**
+		@see http://php.net/manual/en/function.filesize.php
+	**/
+	static function filesize(filename:String):EitherType<Int, Bool>;
+
 	/**
 		@see http://php.net/manual/en/function.clearstatcache.php
 	**/