pajoye          Thu Aug 21 11:01:55 2008 UTC

  Added files:                 (Branch: PHP_5_3)
    /php-src/ext/standard/tests/strings 007-win32.phpt 

  Modified files:              
    /php-src/ext/standard/tests/strings 007.phpt 
  Log:
  - MFH: skip 007 on non windows platform and add a win specific version (file 
not found instead of filename too long)
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/007.phpt?r1=1.1.2.2.2.2&r2=1.1.2.2.2.3&diff_format=u
Index: php-src/ext/standard/tests/strings/007.phpt
diff -u php-src/ext/standard/tests/strings/007.phpt:1.1.2.2.2.2 
php-src/ext/standard/tests/strings/007.phpt:1.1.2.2.2.3
--- php-src/ext/standard/tests/strings/007.phpt:1.1.2.2.2.2     Mon Mar 24 
10:09:41 2008
+++ php-src/ext/standard/tests/strings/007.phpt Thu Aug 21 11:01:55 2008
@@ -1,11 +1,12 @@
 --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--
 <?php
-
-$file = str_repeat("A", 1024);
+$file = str_repeat("A", PHP_MAXPATHLEN - strlen(__DIR__ . DIRECTORY_SEPARATOR 
. __FILE__));
 
 var_dump(php_strip_whitespace($file));
 var_dump(ob_get_contents());
@@ -13,7 +14,7 @@
 ?>
 ===DONE===
 --EXPECTF--    
-Warning: 
php_strip_whitespace(AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA!
 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA): failed to 
open stream: File name too long in %s007.php on line %d
+Warning: php_strip_whitespace(%s): failed to open stream: File name too long 
in %s007.php on line %d
 string(0) ""
 bool(false)
 ===DONE===

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/007-win32.phpt?view=markup&rev=1.1
Index: php-src/ext/standard/tests/strings/007-win32.phpt
+++ php-src/ext/standard/tests/strings/007-win32.phpt
--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===



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

Reply via email to