]> granicus.if.org Git - php/commitdiff
- disable on win
authorPierre Joye <pajoye@php.net>
Mon, 5 Sep 2011 13:04:12 +0000 (13:04 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 5 Sep 2011 13:04:12 +0000 (13:04 +0000)
ext/standard/tests/network/ip2long_variation1.phpt

index ac3c9c81e19ec127d70812bedff99940c10aa038..7cf3f0fcdfb21c216076750c24ef995713afda46 100644 (file)
@@ -1,5 +1,9 @@
 --TEST--
 Test ip2long() function : usage variation 
+<?php
+if(substr(PHP_OS, 0, 3) == "WIN")
+  die("Windows is more compliant (like 0 for localhost, etc.)");
+?>
 --FILE--
 <?php
 /* Prototype  : int ip2long(string ip_address)
@@ -196,4 +200,4 @@ bool(false)
 --resource--
 Error: 2 - ip2long() expects parameter 1 to be string, resource given, %s(%d)
 NULL
-===DONE===
\ No newline at end of file
+===DONE===