pajoye Sat, 30 Jan 2010 17:56:00 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=294252
Log: - cs Changed paths: U php/php-src/branches/PHP_5_3/ext/standard/tests/file/tempnam_variation7-win32.phpt U php/php-src/trunk/ext/standard/tests/file/tempnam_variation7-win32.phpt Modified: php/php-src/branches/PHP_5_3/ext/standard/tests/file/tempnam_variation7-win32.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/standard/tests/file/tempnam_variation7-win32.phpt 2010-01-30 17:06:06 UTC (rev 294251) +++ php/php-src/branches/PHP_5_3/ext/standard/tests/file/tempnam_variation7-win32.phpt 2010-01-30 17:56:00 UTC (rev 294252) @@ -17,50 +17,47 @@ echo "*** Testing tempnam() with invalid/non-existing directory names ***\n"; /* An array of names, which will be passed as a dir name */ $names_arr = array( - /* Invalid args */ - -1, - TRUE, - FALSE, - NULL, - "", - " ", - "\0", - array(), + /* Invalid args */ + -1, + TRUE, + FALSE, + NULL, + "", + " ", + "\0", + array(), - /* Non-existing dirs */ - "/no/such/file/dir", - "php" - + /* Non-existing dirs */ + "/no/such/file/dir", + "php" ); for( $i=0; $i<count($names_arr); $i++ ) { - echo "-- Iteration $i --\n"; - $file_name = tempnam($names_arr[$i], "tempnam_variation3.tmp"); + echo "-- Iteration $i --\n"; + $file_name = tempnam($names_arr[$i], "tempnam_variation3.tmp"); - if( file_exists($file_name) ){ + if( file_exists($file_name) ){ - echo "File name is => "; - print($file_name); - echo "\n"; + echo "File name is => "; + print($file_name); + echo "\n"; - echo "File permissions are => "; - printf("%o", fileperms($file_name) ); - echo "\n"; - - echo "File created in => "; - $file_dir = dirname($file_name); - if (realpath($file_dir) == realpath(sys_get_temp_dir()) || realpath($file_dir."\\") == realpath(sys_get_temp_dir())) { - echo "temp dir\n"; - } - else { - echo "unknown location\n"; - } - } - else { - echo "-- File is not created --\n"; - } - - unlink($file_name); + echo "File permissions are => "; + printf("%o", fileperms($file_name) ); + echo "\n"; + + echo "File created in => "; + $file_dir = dirname($file_name); + if (realpath($file_dir) == realpath(sys_get_temp_dir()) || realpath($file_dir."\\") == realpath(sys_get_temp_dir())) { + echo "temp dir\n"; + } else { + echo "unknown location\n"; + } + } else { + echo "-- File is not created --\n"; + } + + unlink($file_name); } echo "\n*** Done ***\n"; Modified: php/php-src/trunk/ext/standard/tests/file/tempnam_variation7-win32.phpt =================================================================== --- php/php-src/trunk/ext/standard/tests/file/tempnam_variation7-win32.phpt 2010-01-30 17:06:06 UTC (rev 294251) +++ php/php-src/trunk/ext/standard/tests/file/tempnam_variation7-win32.phpt 2010-01-30 17:56:00 UTC (rev 294252) @@ -17,50 +17,47 @@ echo "*** Testing tempnam() with invalid/non-existing directory names ***\n"; /* An array of names, which will be passed as a dir name */ $names_arr = array( - /* Invalid args */ - -1, - TRUE, - FALSE, - NULL, - "", - " ", - "\0", - array(), + /* Invalid args */ + -1, + TRUE, + FALSE, + NULL, + "", + " ", + "\0", + array(), - /* Non-existing dirs */ - "/no/such/file/dir", - "php" - + /* Non-existing dirs */ + "/no/such/file/dir", + "php" ); for( $i=0; $i<count($names_arr); $i++ ) { - echo "-- Iteration $i --\n"; - $file_name = tempnam($names_arr[$i], "tempnam_variation3.tmp"); + echo "-- Iteration $i --\n"; + $file_name = tempnam($names_arr[$i], "tempnam_variation3.tmp"); - if( file_exists($file_name) ){ + if( file_exists($file_name) ){ - echo "File name is => "; - print($file_name); - echo "\n"; + echo "File name is => "; + print($file_name); + echo "\n"; - echo "File permissions are => "; - printf("%o", fileperms($file_name) ); - echo "\n"; - - echo "File created in => "; - $file_dir = dirname($file_name); - if (realpath($file_dir) == realpath(sys_get_temp_dir()) || realpath($file_dir."\\") == realpath(sys_get_temp_dir())) { - echo "temp dir\n"; - } - else { - echo "unknown location\n"; - } - } - else { - echo "-- File is not created --\n"; - } - - unlink($file_name); + echo "File permissions are => "; + printf("%o", fileperms($file_name) ); + echo "\n"; + + echo "File created in => "; + $file_dir = dirname($file_name); + if (realpath($file_dir) == realpath(sys_get_temp_dir()) || realpath($file_dir."\\") == realpath(sys_get_temp_dir())) { + echo "temp dir\n"; + } else { + echo "unknown location\n"; + } + } else { + echo "-- File is not created --\n"; + } + + unlink($file_name); } echo "\n*** Done ***\n";
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php