]> granicus.if.org Git - php/commitdiff
- skip 007 on non windows platform and add a win specific version (file not found...
authorPierre Joye <pajoye@php.net>
Thu, 21 Aug 2008 11:01:35 +0000 (11:01 +0000)
committerPierre Joye <pajoye@php.net>
Thu, 21 Aug 2008 11:01:35 +0000 (11:01 +0000)
ext/standard/tests/strings/007-win32.phpt [new file with mode: 0644]
ext/standard/tests/strings/007.phpt

diff --git a/ext/standard/tests/strings/007-win32.phpt b/ext/standard/tests/strings/007-win32.phpt
new file mode 100644 (file)
index 0000000..b16c566
--- /dev/null
@@ -0,0 +1,20 @@
+--TEST--
+php_strip_whitespace() and output buffer
+--SKIPIF--
+<?php if( substr(PHP_OS, 0, 3) != "WIN") die('skip Windows only test');?>
+--INI--
+log_errors_max_len=4096
+--FILE--
+<?php
+$file = str_repeat("A", PHP_MAXPATHLEN - strlen(__DIR__ . DIRECTORY_SEPARATOR . __FILE__));
+
+var_dump(php_strip_whitespace($file));
+var_dump(ob_get_contents());
+
+?>
+===DONE===
+--EXPECTF--    
+Warning: php_strip_whitespace(%s): failed to open stream: No such file or directory in %s on line %d
+string(0) ""
+bool(false)
+===DONE===
index d323e83a73793af9841baa6d80fb95c8c3a608b3..5dcf6e24f91c540c255ff7e248e26497d8e4684d 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 php_strip_whitespace() and output buffer
+--SKIPIF--
+<?php if( substr(PHP_OS, 0, 3) == "WIN") die('skip Non windows test');?>
 --INI--
 log_errors_max_len=4096
 --FILE--