diff --git a/php.json b/php.json
index 597897878c..a64e16ef73 100644
--- a/php.json
+++ b/php.json
@@ -5,5 +5,9 @@
"url": "http://windows.php.net/downloads/releases/php-5.6.0-Win32-VC11-x86.zip",
"hash": "sha1:ff7ad8ae2211b0e2e9a6d45f6132e8899fb48790",
"bin": "php.exe",
- "post_install": "cp \"$dir\\php.ini-production\" \"$dir\\php.ini\""
+ "post_install": "cp \"$dir\\php.ini-production\" \"$dir\\php.ini\"",
+ "checkver": {
+ "url": "http://windows.php.net/download/",
+ "re": "
.*?\\(([0-9\\.]+)\\)
"
+ }
}
diff --git a/php53.json b/php53.json
index bc0e548b6d..4e6639cf80 100644
--- a/php53.json
+++ b/php53.json
@@ -5,5 +5,9 @@
"url": "http://windows.php.net/downloads/releases/php-5.3.29-Win32-VC9-x86.zip",
"hash": "sha1:61615fe9db85c3ab630fe35673a1b6f45782e5d4",
"bin": "php.exe",
- "post_install": "cp \"$dir\\php.ini-production\" \"$dir\\php.ini\""
+ "post_install": "cp \"$dir\\php.ini-production\" \"$dir\\php.ini\"",
+ "checkver": {
+ "url": "http://windows.php.net/download/",
+ "re": ".*?\\(([0-9\\.]+)\\)
"
+ }
}
diff --git a/php54.json b/php54.json
index 7eedd15590..44c9ebd57f 100644
--- a/php54.json
+++ b/php54.json
@@ -5,5 +5,9 @@
"url": "http://windows.php.net/downloads/releases/php-5.4.32-Win32-VC9-x86.zip",
"hash": "sha1:6f50c17a01ab1aaed9580c6567af7495ef39e276",
"bin": "php.exe",
- "post_install": "cp \"$dir\\php.ini-production\" \"$dir\\php.ini\""
+ "post_install": "cp \"$dir\\php.ini-production\" \"$dir\\php.ini\"",
+ "checkver": {
+ "url": "http://windows.php.net/download/",
+ "re": ".*?\\(([0-9\\.]+)\\)
"
+ }
}
diff --git a/php55.json b/php55.json
index b13aff3cca..f3de18db4f 100644
--- a/php55.json
+++ b/php55.json
@@ -5,5 +5,9 @@
"url": "http://windows.php.net/downloads/releases/php-5.5.16-Win32-VC11-x86.zip",
"hash": "sha1:878becf0c25e5dc487e047305dcb3488be8075ce",
"bin": "php.exe",
- "post_install": "cp \"$dir\\php.ini-production\" \"$dir\\php.ini\""
+ "post_install": "cp \"$dir\\php.ini-production\" \"$dir\\php.ini\"",
+ "checkver": {
+ "url": "http://windows.php.net/download/",
+ "re": ".*?\\(([0-9\\.]+)\\)
"
+ }
}