Explorar el Código

[php] setup appveyor

Alexander Kuzmenko hace 8 años
padre
commit
e01046f6f6
Se han modificado 2 ficheros con 6 adiciones y 3 borrados
  1. 4 1
      appveyor.yml
  2. 2 2
      std/php/_std/StringTools.hx

+ 4 - 1
appveyor.yml

@@ -10,7 +10,8 @@ environment:
         MYSQL_USER: root
         MYSQL_PASSWORD: Password12!
     matrix:
-        - TEST: "neko,python,cs,java,macro,php7"
+        - TEST: "neko,python,cs,java,macro"
+        - TEST: "php7,php"
         - TEST: "cpp"
 
 services:
@@ -40,6 +41,8 @@ install:
     - echo extension=php_mysqli.dll >> C:\tools\php71\php.ini
     - echo extension=php_sqlite3.dll >> C:\tools\php71\php.ini
     - echo extension=php_openssl.dll >> C:\tools\php71\php.ini
+    - echo extension=php_pdo_mysql.dll >> C:\tools\php71\php.ini
+    - echo extension=php_pdo_sqlite.dll >> C:\tools\php71\php.ini
     - RefreshEnv
     - neko -version
     # setup python

+ 2 - 2
std/php/_std/StringTools.hx

@@ -118,7 +118,7 @@
 	/**
 		Character codes of the characters that will be escaped by `quoteWinArg(_, true)`.
 	*/
-	public static var winMetaCharacters = [" ".code, "(".code, ")".code, "%".code, "!".code, "^".code, "\"".code, "<".code, ">".code, "&".code, "|".code, "\n".code, "\r".code];
+	public static var winMetaCharacters = [";".code, ",".code, " ".code, "(".code, ")".code, "%".code, "!".code, "^".code, "\"".code, "<".code, ">".code, "&".code, "|".code, "\n".code, "\r".code];
 
 	/**
 		Returns a String that can be used as a single command line argument
@@ -136,7 +136,7 @@
 	public static function quoteWinArg(argument:String, escapeMetaCharacters:Bool):String {
 		// If there is no space, tab, back-slash, or double-quotes, and it is not an empty string.
 		if (!~/^[^ \t\\"]+$/.match(argument)) {
-			
+
 			// Based on cpython's subprocess.list2cmdline().
 			// https://hg.python.org/cpython/file/50741316dd3a/Lib/subprocess.py#l620