com php-src: add test: ext/standard/tests/php_version_win _const.phpt

From: Date: Sun, 31 May 2015 16:13:33 +0000
Subject: com php-src: add test: ext/standard/tests/php_version_win _const.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-87017@lists.php.net to get a copy of this message
Commit: 05351f9ccb68619879d80110ea744cd411634cd4 Author: Anatol Belski <ab@php.net> Sun, 31 May 2015 18:13:33 +0200 Parents: 930fb8b1f32437851b7a162a36cce56e5f54e4f9 Branches: PHP-5.5 PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=05351f9ccb68619879d80110ea744cd411634cd4 Log: add test Changed paths: A ext/standard/tests/php_version_win_const.phpt Diff: diff --git a/ext/standard/tests/php_version_win_const.phpt b/ext/standard/tests/php_version_win_const.phpt new file mode 100644 index 0000000..12de79b --- /dev/null +++ b/ext/standard/tests/php_version_win_const.phpt @@ -0,0 +1,18 @@ +--TEST-- +Check that windows version constants are initialized +--SKIPIF-- +<?php +if (substr(PHP_OS, 0, 3) != 'WIN') { + die('skip.. Windows only'); +} +?> +--FILE-- +<?php +var_dump(PHP_WINDOWS_VERSION_MAJOR > 0, PHP_WINDOWS_VERSION_MAJOR, PHP_WINDOWS_VERSION_MINOR); +?> +==DONE== +--EXPECTF-- +bool(true) +int(%d) +int(%d) +==DONE==

« previous php.cvs (#87017) next »