]> granicus.if.org Git - php/commitdiff
Skip test case on x86 where it otherwise fails [ci skip]
authorChristoph M. Becker <cmbecker69@gmx.de>
Fri, 7 Feb 2020 20:00:27 +0000 (21:00 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Fri, 7 Feb 2020 20:09:35 +0000 (21:09 +0100)
`-2200000000` can't be converted to integer on x86, so the constructor
call would fail.

ext/com_dotnet/tests/bug73679.phpt

index b5b884553fadebba80e0a29b453218fc446853bf..b1ccdc1650285ada3d39bfa9b8bb123d8ae5b56c 100644 (file)
@@ -2,7 +2,9 @@
 Bug #73679 DOTNET read access violation using invalid codepage
 --SKIPIF--
 <?php # vim:ft=php
-if (!extension_loaded("com_dotnet")) print "skip COM/.Net support not present"; ?>
+if (!extension_loaded("com_dotnet")) print "skip COM/.Net support not present";
+if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only");
+?>
 --FILE--
 <?php