pajoye                                   Wed, 26 Aug 2009 14:09:45 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=287747

Log:
- add win32 version

Changed paths:
    A   php/php-src/branches/PHP_5_3/ext/standard/tests/file/bug43353-win32.phpt
    U   php/php-src/branches/PHP_5_3/ext/standard/tests/file/bug43353.phpt
    A   php/php-src/trunk/ext/standard/tests/file/bug43353-win32.phpt
    U   php/php-src/trunk/ext/standard/tests/file/bug43353.phpt

Added: php/php-src/branches/PHP_5_3/ext/standard/tests/file/bug43353-win32.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/standard/tests/file/bug43353-win32.phpt    
                        (rev 0)
+++ php/php-src/branches/PHP_5_3/ext/standard/tests/file/bug43353-win32.phpt    
2009-08-26 14:09:45 UTC (rev 287747)
@@ -0,0 +1,23 @@
+--TEST--
+Bug #43353 wrong detection of 'data' wrapper
+--SKIPIF--
+<?php
+if(substr(PHP_OS, 0, 3) != "WIN")
+  die("skip Run only on Windows");
+?>
+--FILE--
+<?php
+
+var_dump(is_dir('file:///datafoo:test'));
+var_dump(is_dir('datafoo:test'));
+var_dump(file_get_contents('data:text/plain,foo'));
+var_dump(file_get_contents('datafoo:text/plain,foo'));
+
+?>
+--EXPECTF--
+bool(false)
+bool(false)
+string(3) "foo"
+
+Warning: file_get_contents(datafoo:text/plain,foo): failed to open stream: 
Invalid argument in %s
+bool(false)

Modified: php/php-src/branches/PHP_5_3/ext/standard/tests/file/bug43353.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/standard/tests/file/bug43353.phpt  
2009-08-26 14:05:48 UTC (rev 287746)
+++ php/php-src/branches/PHP_5_3/ext/standard/tests/file/bug43353.phpt  
2009-08-26 14:09:45 UTC (rev 287747)
@@ -1,5 +1,10 @@
 --TEST--
 Bug #43353 wrong detection of 'data' wrapper
+--SKIPIF--
+<?php
+if(substr(PHP_OS, 0, 3) == "WIN")
+  die("skip on Windows");
+?>
 --FILE--
 <?php


Added: php/php-src/trunk/ext/standard/tests/file/bug43353-win32.phpt
===================================================================
--- php/php-src/trunk/ext/standard/tests/file/bug43353-win32.phpt               
                (rev 0)
+++ php/php-src/trunk/ext/standard/tests/file/bug43353-win32.phpt       
2009-08-26 14:09:45 UTC (rev 287747)
@@ -0,0 +1,23 @@
+--TEST--
+Bug #43353 wrong detection of 'data' wrapper
+--SKIPIF--
+<?php
+if(substr(PHP_OS, 0, 3) != "WIN")
+  die("skip Run only on Windows");
+?>
+--FILE--
+<?php
+
+var_dump(is_dir('file:///datafoo:test'));
+var_dump(is_dir('datafoo:test'));
+var_dump(file_get_contents('data:text/plain,foo'));
+var_dump(file_get_contents('datafoo:text/plain,foo'));
+
+?>
+--EXPECTF--
+bool(false)
+bool(false)
+string(3) "foo"
+
+Warning: file_get_contents(datafoo:text/plain,foo): failed to open stream: 
Invalid argument in %s
+bool(false)

Modified: php/php-src/trunk/ext/standard/tests/file/bug43353.phpt
===================================================================
--- php/php-src/trunk/ext/standard/tests/file/bug43353.phpt     2009-08-26 
14:05:48 UTC (rev 287746)
+++ php/php-src/trunk/ext/standard/tests/file/bug43353.phpt     2009-08-26 
14:09:45 UTC (rev 287747)
@@ -1,5 +1,10 @@
 --TEST--
 Bug #43353 wrong detection of 'data' wrapper
+--SKIPIF--
+<?php
+if(substr(PHP_OS, 0, 3) == "WIN")
+  die("skip on Windows");
+?>
 --FILE--
 <?php


-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to