Sfoglia il codice sorgente

[php7] added missing functions to php7.Global

Alexander Kuzmenko 8 anni fa
parent
commit
783eb26c12
1 ha cambiato i file con 26 aggiunte e 1 eliminazioni
  1. 26 1
      std/php7/Global.hx

+ 26 - 1
std/php7/Global.hx

@@ -762,6 +762,11 @@ extern class Global {
 	**/
 	static function preg_match_all( pattern:String, subject:String, ?matches:NativeArray, ?flags:Int, ?offset:Int ) : EitherType<Bool,Int> ;
 
+	/**
+		@see http://php.net/manual/en/function.preg-quote.php
+	**/
+	static function preg_quote( str:String, ?delimiter:String ) : String;
+
 	/**
 		@see http://php.net/manual/en/function.preg-split.php
 	**/
@@ -1166,5 +1171,25 @@ extern class Global {
 	/**
 		@see http://php.net/manual/en/function.mail.php
 	**/
-	static function mail( $to:String, $subject:String, $message:String, ?$additional_headers:String, ?$additional_parameters:String ) : Bool;
+	static function mail( to:String, subject:String, message:String, ?additional_headers:String, ?additional_parameters:String ) : Bool;
+
+	/**
+		@see http://php.net/manual/en/function.require.php
+	**/
+	static function require( include_path:String ) : Void;
+
+	/**
+		@see http://php.net/manual/en/function.require-once.php
+	**/
+	static function require_once( include_path:String ) : Void;
+
+	/**
+		@see http://php.net/manual/en/function.include.php
+	**/
+	static function include( include_path:String ) : Void;
+
+	/**
+		@see http://php.net/manual/en/function.include-once.php
+	**/
+	static function include_once( include_path:String ) : Void;
 }