cvs: php-src(PHP_5_3) /ext/standard/tests/file 005_error.phpt 006_error.phpt 006_variation2.phpt bug37864.phpt bug38450.phpt bug38450_1.phpt
bug39551.phpt bug40374.phpt bug41815.phpt clearstatcache_error.phpt copy_basic.phpt copy_error.phpt copy_variation1.phpt copy_variation10.phpt
copy_variation11.phpt copy_variation13.phpt copy_variation14.phpt copy_variation15.phpt copy_variation16-win32.phpt copy_variation17.phpt
copy_variation18.phpt copy_variation2-win32.phpt copy_variation2.phpt copy_variation3-win32.phpt copy_variation3.phpt copy_variation4-win32.phpt
copy_variation4.phpt copy_variation5-win32.phpt copy_variation5.phpt copy_variation6.phpt copy_variation7.phpt copy_variation9.phpt
disk_free_space_basic.phpt disk_free_space_error-win32.phpt disk_free_space_error.phpt disk_free_space_variation.phpt disk_total_space_basic.phpt
disk_total_space_error-win32.phpt disk_total_space_error.phpt disk_total_space_variation.phpt fflush_error.phpt fflush_variation1-win32! .phpt
fflush_variation1.phpt fflush_variation2.phpt fflush_variation3.phpt fflush_variation4.phpt file_basic.phpt file_error.phpt file_variation.phpt
filegroup_error.phpt fileinode_basic.phpt fileinode_error.phpt fileinode_variation.phpt fileowner_basic.phpt fileowner_error.phpt filesize_basic.phpt
filesize_error.phpt filesize_variation2.phpt filesize_variation3-win32.phpt filesize_variation4-win32.phpt filesize_variation4.phpt
filetype_error.phpt flock_variation.phpt fnmatch_error.phpt fnmatch_variation.phpt fpassthru_basic.phpt fputcsv.phpt fputcsv_error.phpt
fputcsv_variation1.phpt fputcsv_variation10.phpt fputcsv_variation11.phpt fputcsv_variation12.phpt fputcsv_variation13.phpt fputcsv_variation14.phpt
fputcsv_variation2.phpt fputcsv_variation3.phpt fputcsv_variation4.phpt fputcsv_variation5.phpt fputcsv_variation6.phpt fputcsv_variation7.phpt
fputcsv_variation8.phpt fputcsv_variation9.phpt fscanf.phpt fscanf_error.phpt fscanf_variation1.phpt fscanf_variation10.phpt fs! canf_variation11.phpt
fscanf_variation12.phpt fscanf_variation13.phpt fscanf_variation14.phpt fscanf_variation15.phpt fscanf_variation16.phpt fscanf_variation17.phpt
fscanf_variation18.phpt fscanf_variation19.phpt fscanf_variation2.phpt fscanf_variation20.phpt fscanf_variation21.phpt fscanf_variation22.phpt
fscanf_variation2

From: Date: Mon, 05 Nov 2007 17:43:23 +0000
Subject: cvs: php-src(PHP_5_3) /ext/standard/tests/file 005_error.phpt 006_error.phpt 006_variation2.phpt bug37864.phpt bug38450.phpt bug38450_1.phpt
bug39551.phpt bug40374.phpt bug41815.phpt clearstatcache_error.phpt copy_basic.phpt copy_error.phpt copy_variation1.phpt copy_variation10.phpt
copy_variation11.phpt copy_variation13.phpt copy_variation14.phpt copy_variation15.phpt copy_variation16-win32.phpt copy_variation17.phpt
copy_variation18.phpt copy_variation2-win32.phpt copy_variation2.phpt copy_variation3-win32.phpt copy_variation3.phpt copy_variation4-win32.phpt
copy_variation4.phpt copy_variation5-win32.phpt copy_variation5.phpt copy_variation6.phpt copy_variation7.phpt copy_variation9.phpt
disk_free_space_basic.phpt disk_free_space_error-win32.phpt disk_free_space_error.phpt disk_free_space_variation.phpt disk_total_space_basic.phpt
disk_total_space_error-win32.phpt disk_total_space_error.phpt disk_total_space_variation.phpt fflush_error.phpt fflush_variation1-win32! .phpt
fflush_variation1.phpt fflush_variation2.phpt fflush_variation3.phpt fflush_variation4.phpt file_basic.phpt file_error.phpt file_variation.phpt
filegroup_error.phpt fileinode_basic.phpt fileinode_error.phpt fileinode_variation.phpt fileowner_basic.phpt fileowner_error.phpt filesize_basic.phpt
filesize_error.phpt filesize_variation2.phpt filesize_variation3-win32.phpt filesize_variation4-win32.phpt filesize_variation4.phpt
filetype_error.phpt flock_variation.phpt fnmatch_error.phpt fnmatch_variation.phpt fpassthru_basic.phpt fputcsv.phpt fputcsv_error.phpt
fputcsv_variation1.phpt fputcsv_variation10.phpt fputcsv_variation11.phpt fputcsv_variation12.phpt fputcsv_variation13.phpt fputcsv_variation14.phpt
fputcsv_variation2.phpt fputcsv_variation3.phpt fputcsv_variation4.phpt fputcsv_variation5.phpt fputcsv_variation6.phpt fputcsv_variation7.phpt
fputcsv_variation8.phpt fputcsv_variation9.phpt fscanf.phpt fscanf_error.phpt fscanf_variation1.phpt fscanf_variation10.phpt fs! canf_variation11.phpt
fscanf_variation12.phpt fscanf_variation13.phpt fscanf_variation14.phpt fscanf_variation15.phpt fscanf_variation16.phpt fscanf_variation17.phpt
fscanf_variation18.phpt fscanf_variation19.phpt fscanf_variation2.phpt fscanf_variation20.phpt fscanf_variation21.phpt fscanf_variation22.phpt
fscanf_variation2
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-46984@lists.php.net to get a copy of this message
jani Mon Nov 5 17:43:23 2007 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/standard/tests/file 005_error.phpt 006_error.phpt 006_variation2.phpt bug37864.phpt bug38450.phpt bug38450_1.phpt bug39551.phpt bug40374.phpt bug41815.phpt clearstatcache_error.phpt copy_basic.phpt copy_error.phpt copy_variation1.phpt copy_variation10.phpt copy_variation11.phpt copy_variation13.phpt copy_variation14.phpt copy_variation15.phpt copy_variation16-win32.phpt copy_variation17.phpt copy_variation18.phpt copy_variation2-win32.phpt copy_variation2.phpt copy_variation3-win32.phpt copy_variation3.phpt copy_variation4-win32.phpt copy_variation4.phpt copy_variation5-win32.phpt copy_variation5.phpt copy_variation6.phpt copy_variation7.phpt copy_variation9.phpt disk_free_space_basic.phpt disk_free_space_error-win32.phpt disk_free_space_error.phpt disk_free_space_variation.phpt disk_total_space_basic.phpt disk_total_space_error-win32.phpt disk_total_space_error.phpt disk_total_space_variation.phpt fflush_error.phpt fflush_variation1-win32.phpt fflush_variation1.phpt fflush_variation2.phpt fflush_variation3.phpt fflush_variation4.phpt file_basic.phpt file_error.phpt file_variation.phpt filegroup_error.phpt fileinode_basic.phpt fileinode_error.phpt fileinode_variation.phpt fileowner_basic.phpt fileowner_error.phpt filesize_basic.phpt filesize_error.phpt filesize_variation2.phpt filesize_variation3-win32.phpt filesize_variation4-win32.phpt filesize_variation4.phpt filetype_error.phpt flock_variation.phpt fnmatch_error.phpt fnmatch_variation.phpt fpassthru_basic.phpt fputcsv.phpt fputcsv_error.phpt fputcsv_variation1.phpt fputcsv_variation10.phpt fputcsv_variation11.phpt fputcsv_variation12.phpt fputcsv_variation13.phpt fputcsv_variation14.phpt fputcsv_variation2.phpt fputcsv_variation3.phpt fputcsv_variation4.phpt fputcsv_variation5.phpt fputcsv_variation6.phpt fputcsv_variation7.phpt fputcsv_variation8.phpt fputcsv_variation9.phpt fscanf.phpt fscanf_error.phpt fscanf_variation1.phpt fscanf_variation10.phpt fscanf_variation11.phpt fscanf_variation12.phpt fscanf_variation13.phpt fscanf_variation14.phpt fscanf_variation15.phpt fscanf_variation16.phpt fscanf_variation17.phpt fscanf_variation18.phpt fscanf_variation19.phpt fscanf_variation2.phpt fscanf_variation20.phpt fscanf_variation21.phpt fscanf_variation22.phpt fscanf_variation23.phpt fscanf_variation24.phpt fscanf_variation25.phpt fscanf_variation26.phpt fscanf_variation27.phpt fscanf_variation28.phpt fscanf_variation29.phpt fscanf_variation3.phpt fscanf_variation30.phpt fscanf_variation31.phpt fscanf_variation32.phpt fscanf_variation33.phpt fscanf_variation34.phpt fscanf_variation35.phpt fscanf_variation36.phpt fscanf_variation37.phpt fscanf_variation38.phpt fscanf_variation39.phpt fscanf_variation4.phpt fscanf_variation40.phpt fscanf_variation41.phpt fscanf_variation42.phpt fscanf_variation43.phpt fscanf_variation44.phpt fscanf_variation45.phpt fscanf_variation46.phpt fscanf_variation47.phpt fscanf_variation49.phpt fscanf_variation5.phpt fscanf_variation50.phpt fscanf_variation51.phpt fscanf_variation52.phpt fscanf_variation53.phpt fscanf_variation54.phpt fscanf_variation55.phpt fscanf_variation6.phpt fscanf_variation7.phpt fscanf_variation8.phpt fscanf_variation9.phpt fseek_ftell_rewind_basic1.phpt fseek_ftell_rewind_basic2-win32.phpt fseek_ftell_rewind_basic2.phpt fseek_ftell_rewind_variation1.phpt fseek_ftell_rewind_variation2-win32.phpt fseek_ftell_rewind_variation2.phpt fseek_ftell_rewind_variation3.phpt fseek_ftell_rewind_variation4-win32.phpt fseek_ftell_rewind_variation4.phpt fseek_ftell_rewind_variation5.phpt fseek_ftell_rewind_variation6-win32.phpt fseek_ftell_rewind_variation6.phpt fseek_ftell_rewind_variation7.phpt fseek_ftell_rewind_variation8-win32.phpt fseek_ftell_rewind_variation8.phpt ftruncate_error.phpt ftruncate_variation1-win32.phpt ftruncate_variation2-win32.phpt ftruncate_variation3-win32.phpt ftruncate_variation4-win32.phpt ftruncate_variation5-win32.phpt ftruncate_variation6-win32.phpt ftruncate_variation7-win32.phpt htmlentities19.phpt htmlspecialchars.phpt is_dir_error.phpt is_dir_variation2.phpt is_dir_variation3.phpt is_executable_basic.phpt is_executable_error.phpt is_executable_variation1.phpt is_executable_variation2.phpt is_executable_variation3.phpt is_file_error.phpt is_file_variation3.phpt is_readable_error.phpt is_readable_variation1.phpt is_readable_variation2.phpt is_readable_variation3.phpt is_writable_error.phpt is_writable_variation1.phpt is_writable_variation2.phpt is_writable_variation3.phpt lstat_stat_error.phpt lstat_stat_variation14.phpt lstat_stat_variation18.phpt lstat_stat_variation19.phpt lstat_stat_variation2.phpt lstat_stat_variation21.phpt lstat_stat_variation5.phpt lstat_stat_variation6.phpt lstat_stat_variation7.phpt lstat_stat_variation8.phpt lstat_stat_variation9.phpt mkdir_rmdir_error.phpt mkdir_rmdir_variation2.phpt popen_pclose_basic-win32.phpt popen_pclose_basic.phpt popen_pclose_error-sunos.phpt popen_pclose_error-win32.phpt popen_pclose_error.phpt readfile_basic-win32.phpt readfile_basic.phpt readfile_variation2.phpt readfile_variation3.phpt realpath_basic-win32.phpt realpath_error-win32.phpt realpath_variation-win32.phpt rename_variation-win32.phpt stat_basic-win32.phpt stat_error-win32.phpt stat_variation1-win32.phpt stat_variation2-win32.phpt stat_variation3-win32.phpt stat_variation4-win32.phpt stat_variation5-win32.phpt stat_variation6-win32.phpt stat_variation7-win32.phpt stat_variation8-win32.phpt stream_get_line.phpt stream_rfc2397_001.phpt symlink_link_linkinfo_is_link_error2.phpt tempnam_error.phpt tempnam_variation3.phpt tempnam_variation7.phpt touch.phpt umask_basic.phpt unlink_error-win32.phpt unlink_error.phpt unlink_variation1-win32.phpt unlink_variation1.phpt unlink_variation2-win32.phpt unlink_variation4.phpt userdirstream.phpt userfilters.phpt userstreams.phpt /php-src/ext/standard/tests/general_functions phpcredits.phpt /php-src/ext/standard/tests/network bug41347.phpt /php-src/ext/standard/tests/strings convert_cyr_string.phpt Log: Fix tests (MFH)

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/005_error.phpt?r1=1.1.2.1.2.1&r2=1.1.2.1.2.2&diff_format=u Index: php-src/ext/standard/tests/file/005_error.phpt diff -u php-src/ext/standard/tests/file/005_error.phpt:1.1.2.1.2.1 php-src/ext/standard/tests/file/005_error.phpt:1.1.2.1.2.2 --- php-src/ext/standard/tests/file/005_error.phpt:1.1.2.1.2.1 Wed Oct 31 13:22:45 2007 +++ php-src/ext/standard/tests/file/005_error.phpt Mon Nov 5 17:43:19 2007 @@ -54,7 +54,7 @@ var_dump( filectime(__FILE__, TRUE) ); var_dump( touch(__FILE__, 10, 100, 123) ); -echo "\n*** Done ***\n"; +echo "\nDone"; ?> --EXPECTF-- *** Testing error conditions *** @@ -72,54 +72,55 @@ Warning: touch(): Unable to create file /no/such/file/or/dir because No such file or directory in %s on line %d bool(false) -Warning: Wrong parameter count for fileatime() in %s on line %d +Warning: fileatime() expects exactly 1 parameter, 2 given in %s on line %d NULL -Warning: Wrong parameter count for filemtime() in %s on line %d +Warning: filemtime() expects exactly 1 parameter, 2 given in %s on line %d NULL -Warning: Wrong parameter count for filectime() in %s on line %d +Warning: filectime() expects exactly 1 parameter, 2 given in %s on line %d NULL -Warning: Wrong parameter count for touch() in %s on line %d +Warning: touch() expects at most 3 parameters, 4 given in %s on line %d NULL -- Testing No.of arguments less than expected -- -Warning: Wrong parameter count for fileatime() in %s on line %d +Warning: fileatime() expects exactly 1 parameter, 0 given in %s on line %d NULL -Warning: Wrong parameter count for filemtime() in %s on line %d +Warning: filemtime() expects exactly 1 parameter, 0 given in %s on line %d NULL -Warning: Wrong parameter count for filectime() in %s on line %d +Warning: filectime() expects exactly 1 parameter, 0 given in %s on line %d NULL -Warning: Wrong parameter count for touch() in %s on line %d +Warning: touch() expects at least 1 parameter, 0 given in %s on line %d NULL -- Testing No.of arguments greater than expected -- -Warning: Wrong parameter count for fileatime() in %s on line %d +Warning: fileatime() expects exactly 1 parameter, 2 given in %s on line %d NULL -Warning: Wrong parameter count for filemtime() in %s on line %d +Warning: filemtime() expects exactly 1 parameter, 2 given in %s on line %d NULL -Warning: Wrong parameter count for filectime() in %s on line %d +Warning: filectime() expects exactly 1 parameter, 2 given in %s on line %d NULL -Warning: Wrong parameter count for touch() in %s on line %d +Warning: touch() expects at most 3 parameters, 4 given in %s on line %d NULL -Warning: Wrong parameter count for fileatime() in %s on line %d +Warning: fileatime() expects exactly 1 parameter, 2 given in %s on line %d NULL -Warning: Wrong parameter count for filemtime() in %s on line %d +Warning: filemtime() expects exactly 1 parameter, 2 given in %s on line %d NULL -Warning: Wrong parameter count for filectime() in %s on line %d +Warning: filectime() expects exactly 1 parameter, 2 given in %s on line %d NULL -Warning: Wrong parameter count for touch() in %s on line %d +Warning: touch() expects at most 3 parameters, 4 given in %s on line %d NULL -*** Done *** +Done + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/006_error.phpt?r1=1.1.2.3.2.1&r2=1.1.2.3.2.2&diff_format=u Index: php-src/ext/standard/tests/file/006_error.phpt diff -u php-src/ext/standard/tests/file/006_error.phpt:1.1.2.3.2.1 php-src/ext/standard/tests/file/006_error.phpt:1.1.2.3.2.2 --- php-src/ext/standard/tests/file/006_error.phpt:1.1.2.3.2.1 Sun Oct 21 15:41:29 2007 +++ php-src/ext/standard/tests/file/006_error.phpt Mon Nov 5 17:43:19 2007 @@ -83,25 +83,25 @@ bool(false) -Warning: Wrong parameter count for chmod() in %s on line %d +Warning: chmod() expects exactly 2 parameters, 1 given in %s on line %d NULL -Warning: Wrong parameter count for chmod() in %s on line %d +Warning: chmod() expects exactly 2 parameters, 1 given in %s on line %d NULL -Warning: Wrong parameter count for chmod() in %s on line %d +Warning: chmod() expects exactly 2 parameters, 0 given in %s on line %d NULL -Warning: Wrong parameter count for fileperms() in %s on line %d +Warning: fileperms() expects exactly 1 parameter, 0 given in %s on line %d NULL -Warning: Wrong parameter count for chmod() in %s on line %d +Warning: chmod() expects exactly 2 parameters, 3 given in %s on line %d NULL -Warning: Wrong parameter count for fileperms() in %s on line %d +Warning: fileperms() expects exactly 1 parameter, 2 given in %s on line %d NULL -Warning: Wrong parameter count for fileperms() in %s on line %d +Warning: fileperms() expects exactly 1 parameter, 2 given in %s on line %d NULL *** Done *** http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/006_variation2.phpt?r1=1.1.2.3&r2=1.1.2.3.2.1&diff_format=u Index: php-src/ext/standard/tests/file/006_variation2.phpt diff -u php-src/ext/standard/tests/file/006_variation2.phpt:1.1.2.3 php-src/ext/standard/tests/file/006_variation2.phpt:1.1.2.3.2.1 --- php-src/ext/standard/tests/file/006_variation2.phpt:1.1.2.3 Thu Sep 13 18:24:26 2007 +++ php-src/ext/standard/tests/file/006_variation2.phpt Mon Nov 5 17:43:19 2007 @@ -148,23 +148,39 @@ bool(true) 43567 -- Iteration 12 -- -bool(true) -100000 -bool(true) -40000 + +Warning: chmod() expects parameter 2 to be long, string given in %s on line %d +NULL +103567 + +Warning: chmod() expects parameter 2 to be long, string given in %s on line %d +NULL +43567 -- Iteration 13 -- -bool(true) -100000 -bool(true) -40000 + +Warning: chmod() expects parameter 2 to be long, string given in %s on line %d +NULL +103567 + +Warning: chmod() expects parameter 2 to be long, string given in %s on line %d +NULL +43567 -- Iteration 14 -- -bool(true) -100000 -bool(true) -40000 + +Warning: chmod() expects parameter 2 to be long, string given in %s on line %d +NULL +103567 + +Warning: chmod() expects parameter 2 to be long, string given in %s on line %d +NULL +43567 -- Iteration 15 -- -bool(true) -100000 -bool(true) -40000 + +Warning: chmod() expects parameter 2 to be long, string given in %s on line %d +NULL +103567 + +Warning: chmod() expects parameter 2 to be long, string given in %s on line %d +NULL +43567 *** Done *** http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/bug37864.phpt?r1=1.1.2.3&r2=1.1.2.3.2.1&diff_format=u Index: php-src/ext/standard/tests/file/bug37864.phpt diff -u php-src/ext/standard/tests/file/bug37864.phpt:1.1.2.3 php-src/ext/standard/tests/file/bug37864.phpt:1.1.2.3.2.1 --- php-src/ext/standard/tests/file/bug37864.phpt:1.1.2.3 Tue Jun 20 21:49:16 2006 +++ php-src/ext/standard/tests/file/bug37864.phpt Mon Nov 5 17:43:19 2007 @@ -2,7 +2,7 @@ Bug #37864 (file_get_contents() leaks on empty file) --FILE-- <?php - $tmpfname = tempnam("/tmp", "emptyfile"); + $tmpfname = tempnam(sys_get_temp_dir(), "emptyfile"); var_dump(file_get_contents($tmpfname)); echo "done.\n"; unlink($tmpfname); http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/bug38450.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/bug38450.phpt diff -u php-src/ext/standard/tests/file/bug38450.phpt:1.1.2.2 php-src/ext/standard/tests/file/bug38450.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/bug38450.phpt:1.1.2.2 Tue Aug 15 08:54:15 2006 +++ php-src/ext/standard/tests/file/bug38450.phpt Mon Nov 5 17:43:19 2007 @@ -88,9 +88,9 @@ $fp = fopen("var://myvar", "r+"); -fwrite($fp, "line1\n"); -fwrite($fp, "line2\n"); -fwrite($fp, "line3\n"); +fwrite($fp, b"line1\n"); +fwrite($fp, b"line2\n"); +fwrite($fp, b"line3\n"); rewind($fp); while (!feof($fp)) { http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/bug38450_1.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/bug38450_1.phpt diff -u php-src/ext/standard/tests/file/bug38450_1.phpt:1.1.2.2 php-src/ext/standard/tests/file/bug38450_1.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/bug38450_1.phpt:1.1.2.2 Tue Aug 15 08:54:15 2006 +++ php-src/ext/standard/tests/file/bug38450_1.phpt Mon Nov 5 17:43:19 2007 @@ -88,9 +88,9 @@ $fp = fopen("var://myvar", "r+"); -fwrite($fp, "line1\n"); -fwrite($fp, "line2\n"); -fwrite($fp, "line3\n"); +fwrite($fp, b"line1\n"); +fwrite($fp, b"line2\n"); +fwrite($fp, b"line3\n"); rewind($fp); while (!feof($fp)) { http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/bug39551.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/bug39551.phpt diff -u php-src/ext/standard/tests/file/bug39551.phpt:1.1.2.2 php-src/ext/standard/tests/file/bug39551.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/bug39551.phpt:1.1.2.2 Tue Nov 21 18:17:11 2006 +++ php-src/ext/standard/tests/file/bug39551.phpt Mon Nov 5 17:43:19 2007 @@ -22,7 +22,3 @@ ?> --EXPECTF-- Done ---UEXPECTF-- -Done - -Notice: Unknown: 0 character unicode buffer downcoded for binary stream runtime_encoding in Unknown on line 0 http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/bug40374.phpt?r1=1.1.2.3&r2=1.1.2.3.2.1&diff_format=u Index: php-src/ext/standard/tests/file/bug40374.phpt diff -u php-src/ext/standard/tests/file/bug40374.phpt:1.1.2.3 php-src/ext/standard/tests/file/bug40374.phpt:1.1.2.3.2.1 --- php-src/ext/standard/tests/file/bug40374.phpt:1.1.2.3 Sun Feb 11 20:06:19 2007 +++ php-src/ext/standard/tests/file/bug40374.phpt Mon Nov 5 17:43:19 2007 @@ -5,7 +5,7 @@ $file = tempnam(sys_get_temp_dir(), "test_"); var_dump($file); -$fp = fopen($file, "w"); +$fp = fopen($file, "wt"); fwrite($fp, "test"); fclose($fp); unlink($file); http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/bug41815.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/bug41815.phpt diff -u php-src/ext/standard/tests/file/bug41815.phpt:1.1.2.2 php-src/ext/standard/tests/file/bug41815.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/bug41815.phpt:1.1.2.2 Thu Jul 12 11:14:22 2007 +++ php-src/ext/standard/tests/file/bug41815.phpt Mon Nov 5 17:43:19 2007 @@ -6,7 +6,7 @@ $filename = dirname(__FILE__)."/concur_rw.txt"; @unlink($filename); -$writer = fopen($filename, "w"); +$writer = fopen($filename, "wt"); $reader = fopen($filename, "r"); fread($reader, 1); fwrite($writer, "foo"); http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/clearstatcache_error.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/clearstatcache_error.phpt diff -u php-src/ext/standard/tests/file/clearstatcache_error.phpt:1.1.2.1 php-src/ext/standard/tests/file/clearstatcache_error.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/clearstatcache_error.phpt:1.1.2.1 Mon Aug 13 11:40:57 2007 +++ php-src/ext/standard/tests/file/clearstatcache_error.phpt Mon Nov 5 17:43:19 2007 @@ -7,12 +7,13 @@ Description: clears files status cache */ -echo "*** Testing clearstatcache() function: error conditions --"; +echo "*** Testing clearstatcache() function: error conditions ***\n"; var_dump( clearstatcache("file") ); //No.of args more than expected echo "*** Done ***\n"; ?> --EXPECTF-- -*** Testing clearstatcache() function: error conditions -- +*** Testing clearstatcache() function: error conditions *** + Warning: Wrong parameter count for clearstatcache() in %s on line %d NULL *** Done *** http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/copy_basic.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/copy_basic.phpt diff -u php-src/ext/standard/tests/file/copy_basic.phpt:1.1.2.1 php-src/ext/standard/tests/file/copy_basic.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/copy_basic.phpt:1.1.2.1 Wed Jun 13 22:38:49 2007 +++ php-src/ext/standard/tests/file/copy_basic.phpt Mon Nov 5 17:43:19 2007 @@ -55,3 +55,4 @@ %d %d *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/copy_error.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/copy_error.phpt diff -u php-src/ext/standard/tests/file/copy_error.phpt:1.1.2.1 php-src/ext/standard/tests/file/copy_error.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/copy_error.phpt:1.1.2.1 Wed Jun 13 22:38:49 2007 +++ php-src/ext/standard/tests/file/copy_error.phpt Mon Nov 5 17:43:19 2007 @@ -27,12 +27,13 @@ Warning: copy(/no/file): failed to open stream: No such file or directory in %s on line %d bool(false) -Warning: Wrong parameter count for copy() in %s on line %d +Warning: copy() expects at least 2 parameters, 0 given in %s on line %d NULL -Warning: Wrong parameter count for copy() in %s on line %d +Warning: copy() expects at least 2 parameters, 1 given in %s on line %d NULL -Warning: Wrong parameter count for copy() in %s on line %d +Warning: copy() expects parameter 3 to be resource, string given in %s on line %d NULL *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/copy_variation1.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/copy_variation1.phpt diff -u php-src/ext/standard/tests/file/copy_variation1.phpt:1.1.2.1 php-src/ext/standard/tests/file/copy_variation1.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/copy_variation1.phpt:1.1.2.1 Fri Aug 10 02:57:30 2007 +++ php-src/ext/standard/tests/file/copy_variation1.phpt Mon Nov 5 17:43:19 2007 @@ -15,7 +15,7 @@ $file_path = dirname(__FILE__); $src_file_name = $file_path."/copy_variation1.tmp"; $file_handle = fopen($src_file_name, "w"); -fwrite( $file_handle, str_repeat("Hello2World...\n", 100) ); +fwrite( $file_handle, str_repeat(b"Hello2World...\n", 100) ); fclose($file_handle); /* array of destination file names */ http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/copy_variation10.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/copy_variation10.phpt diff -u php-src/ext/standard/tests/file/copy_variation10.phpt:1.1.2.1 php-src/ext/standard/tests/file/copy_variation10.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/copy_variation10.phpt:1.1.2.1 Fri Aug 10 02:57:30 2007 +++ php-src/ext/standard/tests/file/copy_variation10.phpt Mon Nov 5 17:43:19 2007 @@ -14,7 +14,7 @@ echo "*** Test copy(): Trying to create a copy of file with the same source name ***\n"; $file = $file_path."/copy_variation10.tmp"; $file_handle = fopen($file, "w"); -fwrite($file_handle, str_repeat("Hello2world...\n", 100)); +fwrite($file_handle, str_repeat(b"Hello2world...\n", 100)); fclose($file_handle); var_dump( copy($file, $file) ); http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/copy_variation11.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/copy_variation11.phpt diff -u php-src/ext/standard/tests/file/copy_variation11.phpt:1.1.2.1 php-src/ext/standard/tests/file/copy_variation11.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/copy_variation11.phpt:1.1.2.1 Fri Aug 10 02:57:30 2007 +++ php-src/ext/standard/tests/file/copy_variation11.phpt Mon Nov 5 17:43:19 2007 @@ -14,7 +14,7 @@ echo "*** Test copy() function: Trying to create a copy of source file as a dir ***\n"; $file = $file_path."/copy_variation11.tmp"; $file_handle = fopen($file, "w"); -fwrite($file_handle, str_repeat("Hello, world...", 20)); +fwrite($file_handle, str_repeat(b"Hello, world...", 20)); fclose($file_handle); $dir = $file_path."/copy_variation11"; http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/copy_variation13.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/copy_variation13.phpt diff -u php-src/ext/standard/tests/file/copy_variation13.phpt:1.1.2.2 php-src/ext/standard/tests/file/copy_variation13.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/copy_variation13.phpt:1.1.2.2 Sun Aug 12 16:29:43 2007 +++ php-src/ext/standard/tests/file/copy_variation13.phpt Mon Nov 5 17:43:19 2007 @@ -1,5 +1,5 @@ --TEST-- -Test copy() function: usage variations - src as dir and dest as an existing file(Bug #42243) +Test copy() function: usage variations - src as dir and dest as an existing file (Bug #42243) --FILE-- <?php /* Prototype: bool copy ( string $source, string $dest ); http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/copy_variation14.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/copy_variation14.phpt diff -u php-src/ext/standard/tests/file/copy_variation14.phpt:1.1.2.1 php-src/ext/standard/tests/file/copy_variation14.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/copy_variation14.phpt:1.1.2.1 Fri Aug 10 02:57:30 2007 +++ php-src/ext/standard/tests/file/copy_variation14.phpt Mon Nov 5 17:43:20 2007 @@ -15,7 +15,7 @@ echo "*** Test copy() function: Trying to create a copy of non-existing source in existing destination ***"; $file = $file_path."/copy_variation14.tmp"; $file_handle = fopen($file, "w"); -fwrite($file_handle, str_repeat("Hello2world...\n", 100)); +fwrite($file_handle, str_repeat(b"Hello2world...\n", 100)); fclose($file_handle); var_dump( copy($file_path."/nosuchfile.tmp", $file_path."/copy_nosuchfile.tmp") ); //With non-existing source http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/copy_variation15.phpt?r1=1.1.2.5&r2=1.1.2.5.2.1&diff_format=u Index: php-src/ext/standard/tests/file/copy_variation15.phpt diff -u php-src/ext/standard/tests/file/copy_variation15.phpt:1.1.2.5 php-src/ext/standard/tests/file/copy_variation15.phpt:1.1.2.5.2.1 --- php-src/ext/standard/tests/file/copy_variation15.phpt:1.1.2.5 Thu Sep 13 18:24:26 2007 +++ php-src/ext/standard/tests/file/copy_variation15.phpt Mon Nov 5 17:43:20 2007 @@ -28,7 +28,7 @@ echo "*** Test copy() function: Trying to create a copy of file in a dir which doesn't have write permissions ***"; $file = $file_path."/copy_variation15.tmp"; $file_handle = fopen($file, "w"); -fwrite($file_handle, str_repeat("Hello, world...", 20)); +fwrite($file_handle, str_repeat(b"Hello, world...", 20)); fclose($file_handle); $dir = $file_path."/copy_variation15"; http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/copy_variation16-win32.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/copy_variation16-win32.phpt diff -u php-src/ext/standard/tests/file/copy_variation16-win32.phpt:1.1.2.1 php-src/ext/standard/tests/file/copy_variation16-win32.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/copy_variation16-win32.phpt:1.1.2.1 Fri Aug 10 02:57:30 2007 +++ php-src/ext/standard/tests/file/copy_variation16-win32.phpt Mon Nov 5 17:43:20 2007 @@ -27,7 +27,7 @@ $src_file_name = dirname(__FILE__)."/copy_variation16.tmp"; $file_handle = fopen($src_file_name, "w"); -fwrite($file_handle, str_repeat("Hello world, this is 2007 year ...\n", 100)); +fwrite($file_handle, str_repeat(b"Hello world, this is 2007 year ...\n", 100)); fclose($file_handle); echo "- Size of source file => "; http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/copy_variation17.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/copy_variation17.phpt diff -u php-src/ext/standard/tests/file/copy_variation17.phpt:1.1.2.1 php-src/ext/standard/tests/file/copy_variation17.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/copy_variation17.phpt:1.1.2.1 Fri Aug 10 02:57:30 2007 +++ php-src/ext/standard/tests/file/copy_variation17.phpt Mon Nov 5 17:43:20 2007 @@ -14,7 +14,7 @@ echo "*** Test copy() function: With source file names containing wild-card chars ***\n"; $src_file = $file_path."/copy_variation17.tmp"; $file_handle = fopen($src_file, "w"); -fwrite($file_handle, str_repeat("Hello2world...\n", 100)); +fwrite($file_handle, str_repeat(b"Hello2world...\n", 100)); fclose($file_handle); $dir = $file_path."/copy_variation17"; http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/copy_variation18.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/copy_variation18.phpt diff -u php-src/ext/standard/tests/file/copy_variation18.phpt:1.1.2.1 php-src/ext/standard/tests/file/copy_variation18.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/copy_variation18.phpt:1.1.2.1 Fri Aug 10 02:57:30 2007 +++ php-src/ext/standard/tests/file/copy_variation18.phpt Mon Nov 5 17:43:20 2007 @@ -16,7 +16,7 @@ echo "*** Test copy() function: stat of file before and after copy ***\n"; $src_file_name = $file_path."/copy_variation18.tmp"; $file_handle = fopen($src_file_name, "w"); -fwrite($file_handle, str_repeat("Hello2world...\n", 100)); +fwrite($file_handle, str_repeat(b"Hello2world...\n", 100)); fclose($file_handle); $dest_file_name = $file_path."/copy_copy_variation18.tmp"; @@ -43,7 +43,6 @@ unlink(dirname(__FILE__)."/copy_copy_variation18.tmp"); unlink(dirname(__FILE__)."/copy_variation18.tmp"); ?> - --EXPECTF-- *** Test copy() function: stat of file before and after copy *** Copy operation => bool(true) http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/copy_variation2-win32.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/copy_variation2-win32.phpt diff -u php-src/ext/standard/tests/file/copy_variation2-win32.phpt:1.1.2.1 php-src/ext/standard/tests/file/copy_variation2-win32.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/copy_variation2-win32.phpt:1.1.2.1 Fri Aug 10 02:57:30 2007 +++ php-src/ext/standard/tests/file/copy_variation2-win32.phpt Mon Nov 5 17:43:20 2007 @@ -20,7 +20,7 @@ $file_path = dirname(__FILE__); $src_file_name = $file_path."/copy_variation2.tmp"; $file_handle = fopen($src_file_name, "w"); -fwrite( $file_handle, str_repeat("Hello2World...\n", 100) ); +fwrite( $file_handle, str_repeat(b"Hello2World...\n", 100) ); fclose($file_handle); /* array of destination file names */ @@ -31,7 +31,6 @@ "@copy_variation2.tmp", "#copy_variation2.tmp", "+copy_variation2.tmp", - "*copy_variation2.tmp", "?copy_variation2.tmp", ">copy_variation2.tmp", "!copy_variation2.tmp", @@ -136,90 +135,84 @@ Existence of destination file => bool(false) -- Iteration 7 -- -Copy operation => -Warning: copy(%s): %s -bool(false) -Existence of destination file => bool(false) - --- Iteration 8 -- Copy operation => bool(true) Existence of destination file => bool(true) Destination file name => %s/!copy_variation2.tmp Size of source file => int(1500) Size of destination file => int(1500) --- Iteration 9 -- +-- Iteration 8 -- Copy operation => bool(true) Existence of destination file => bool(true) Destination file name => %s/&copy_variation2.tmp Size of source file => int(1500) Size of destination file => int(1500) --- Iteration 10 -- +-- Iteration 9 -- Copy operation => bool(true) Existence of destination file => bool(true) Destination file name => %s/(copy_variation2.tmp Size of source file => int(1500) Size of destination file => int(1500) --- Iteration 11 -- +-- Iteration 10 -- Copy operation => Warning: copy(%s): %s bool(false) Existence of destination file => bool(false) --- Iteration 12 -- +-- Iteration 11 -- Copy operation => bool(true) Existence of destination file => bool(true) Destination file name => %s/;copy_variation2.tmp Size of source file => int(1500) Size of destination file => int(1500) --- Iteration 13 -- +-- Iteration 12 -- Copy operation => bool(true) Existence of destination file => bool(true) Destination file name => %s/=copy_variation2.tmp Size of source file => int(1500) Size of destination file => int(1500) --- Iteration 14 -- +-- Iteration 13 -- Copy operation => bool(true) Existence of destination file => bool(true) Destination file name => %s/[copy_variation2.tmp Size of source file => int(1500) Size of destination file => int(1500) --- Iteration 15 -- +-- Iteration 14 -- Copy operation => bool(true) Existence of destination file => bool(true) Destination file name => %s/^copy_variation2.tmp Size of source file => int(1500) Size of destination file => int(1500) --- Iteration 16 -- +-- Iteration 15 -- Copy operation => bool(true) Existence of destination file => bool(true) Destination file name => %s/{copy_variation2.tmp Size of source file => int(1500) Size of destination file => int(1500) --- Iteration 17 -- +-- Iteration 16 -- Copy operation => Warning: copy(%s): %s bool(false) Existence of destination file => bool(false) --- Iteration 18 -- +-- Iteration 17 -- Copy operation => bool(true) Existence of destination file => bool(true) Destination file name => %s/~copy_variation2.tmp Size of source file => int(1500) Size of destination file => int(1500) --- Iteration 19 -- +-- Iteration 18 -- Copy operation => bool(true) Existence of destination file => bool(true) Destination file name => %s/$copy_variation2.tmp Size of source file => int(1500) Size of destination file => int(1500) -*** Done *** \ No newline at end of file +*** Done *** http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/copy_variation2.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/copy_variation2.phpt diff -u php-src/ext/standard/tests/file/copy_variation2.phpt:1.1.2.1 php-src/ext/standard/tests/file/copy_variation2.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/copy_variation2.phpt:1.1.2.1 Fri Aug 10 02:57:30 2007 +++ php-src/ext/standard/tests/file/copy_variation2.phpt Mon Nov 5 17:43:20 2007 @@ -20,7 +20,7 @@ $file_path = dirname(__FILE__); $src_file_name = $file_path."/copy_variation2.tmp"; $file_handle = fopen($src_file_name, "w"); -fwrite( $file_handle, str_repeat("Hello2World...\n", 100) ); +fwrite( $file_handle, str_repeat(b"Hello2World...\n", 100) ); fclose($file_handle); /* array of destination file names */ http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/copy_variation3-win32.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/copy_variation3-win32.phpt diff -u php-src/ext/standard/tests/file/copy_variation3-win32.phpt:1.1.2.1 php-src/ext/standard/tests/file/copy_variation3-win32.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/copy_variation3-win32.phpt:1.1.2.1 Fri Aug 10 02:57:30 2007 +++ php-src/ext/standard/tests/file/copy_variation3-win32.phpt Mon Nov 5 17:43:20 2007 @@ -20,7 +20,7 @@ $file_path = dirname(__FILE__); $src_file_name = $file_path."/copy_variation3.tmp"; $file_handle = fopen($src_file_name, "w"); -fwrite( $file_handle, str_repeat("Hello2World...\n", 100) ); +fwrite( $file_handle, str_repeat(b"Hello2World...\n", 100) ); fclose($file_handle); /* array of destination file names */ @@ -106,4 +106,4 @@ Warning: copy(%s): %s bool(false) Existence of destination file => bool(false) -*** Done *** \ No newline at end of file +*** Done *** http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/copy_variation3.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/copy_variation3.phpt diff -u php-src/ext/standard/tests/file/copy_variation3.phpt:1.1.2.1 php-src/ext/standard/tests/file/copy_variation3.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/copy_variation3.phpt:1.1.2.1 Fri Aug 10 02:57:30 2007 +++ php-src/ext/standard/tests/file/copy_variation3.phpt Mon Nov 5 17:43:20 2007 @@ -20,7 +20,7 @@ $file_path = dirname(__FILE__); $src_file_name = $file_path."/copy_variation3.tmp"; $file_handle = fopen($src_file_name, "w"); -fwrite( $file_handle, str_repeat("Hello2World...\n", 100) ); +fwrite( $file_handle, str_repeat(b"Hello2World...\n", 100) ); fclose($file_handle); /* array of destination file names */ @@ -107,4 +107,4 @@ Destination file name => Size of source file => int(1500) Size of destination file => int(1500) -*** Done *** \ No newline at end of file +*** Done *** http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/copy_variation4-win32.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/copy_variation4-win32.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/copy_variation4.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/copy_variation4.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/copy_variation5-win32.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/copy_variation5-win32.phpt diff -u php-src/ext/standard/tests/file/copy_variation5-win32.phpt:1.1.2.1 php-src/ext/standard/tests/file/copy_variation5-win32.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/copy_variation5-win32.phpt:1.1.2.1 Fri Aug 10 02:57:30 2007 +++ php-src/ext/standard/tests/file/copy_variation5-win32.phpt Mon Nov 5 17:43:20 2007 @@ -20,7 +20,7 @@ $file_path = dirname(__FILE__); $src_file_name = $file_path."/copy_variation5.tmp"; $file_handle = fopen($src_file_name, "w"); -fwrite( $file_handle, str_repeat("Hello2World...\n", 100) ); +fwrite( $file_handle, str_repeat(b"Hello2World...\n", 100) ); fclose($file_handle); /* array of destination file names */ http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/copy_variation5.phpt?r1=1.1.2.3&r2=1.1.2.3.2.1&diff_format=u Index: php-src/ext/standard/tests/file/copy_variation5.phpt diff -u php-src/ext/standard/tests/file/copy_variation5.phpt:1.1.2.3 php-src/ext/standard/tests/file/copy_variation5.phpt:1.1.2.3.2.1 --- php-src/ext/standard/tests/file/copy_variation5.phpt:1.1.2.3 Tue Sep 4 08:37:51 2007 +++ php-src/ext/standard/tests/file/copy_variation5.phpt Mon Nov 5 17:43:20 2007 @@ -20,7 +20,7 @@ $file_path = dirname(__FILE__); $src_file_name = $file_path."/copy_variation5.tmp"; $file_handle = fopen($src_file_name, "w"); -fwrite( $file_handle, str_repeat("Hello2World...\n", 100) ); +fwrite( $file_handle, str_repeat(b"Hello2World...\n", 100) ); fclose($file_handle); /* array of destination file names */ @@ -64,7 +64,6 @@ $count++; } - $count = 1; foreach($dest_files as $dest_file) { unlink($file_path."/".$dest_file); http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/copy_variation6.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/copy_variation6.phpt diff -u php-src/ext/standard/tests/file/copy_variation6.phpt:1.1.2.1 php-src/ext/standard/tests/file/copy_variation6.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/copy_variation6.phpt:1.1.2.1 Fri Aug 10 02:57:30 2007 +++ php-src/ext/standard/tests/file/copy_variation6.phpt Mon Nov 5 17:43:20 2007 @@ -3,7 +3,7 @@ --SKIPIF-- <?php if(substr(PHP_OS, 0, 3) == "WIN") - die("skip do not run on Windows"); + die("skip Do not run on Windows"); ?> --FILE-- <?php http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/copy_variation7.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/copy_variation7.phpt diff -u php-src/ext/standard/tests/file/copy_variation7.phpt:1.1.2.1 php-src/ext/standard/tests/file/copy_variation7.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/copy_variation7.phpt:1.1.2.1 Fri Aug 10 02:57:30 2007 +++ php-src/ext/standard/tests/file/copy_variation7.phpt Mon Nov 5 17:43:20 2007 @@ -20,7 +20,7 @@ echo "*** Testing copy() with symlink and hardlink ***\n"; $file = $file_path."/copy_variation7.tmp"; $file_handle = fopen($file, "w"); -fwrite( $file_handle, str_repeat("Hello World, this is 2007 year ....\n", 100) ); +fwrite( $file_handle, str_repeat(b"Hello World, this is 2007 year ....\n", 100) ); fclose($file_handle); $symlink = $file_path."/copy_variation7_symlink.tmp"; http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/copy_variation9.phpt?r1=1.1.2.5&r2=1.1.2.5.2.1&diff_format=u Index: php-src/ext/standard/tests/file/copy_variation9.phpt diff -u php-src/ext/standard/tests/file/copy_variation9.phpt:1.1.2.5 php-src/ext/standard/tests/file/copy_variation9.phpt:1.1.2.5.2.1 --- php-src/ext/standard/tests/file/copy_variation9.phpt:1.1.2.5 Thu Sep 13 18:24:26 2007 +++ php-src/ext/standard/tests/file/copy_variation9.phpt Mon Nov 5 17:43:20 2007 @@ -29,7 +29,7 @@ echo "*** Test copy() function: destination with/without write permissions ***\n"; $src_file_name = $file_path."/copy_variation9.tmp"; $file_handle = fopen($src_file_name, "w"); -fwrite($file_handle, str_repeat("Hello2world...\n", 100)); +fwrite($file_handle, str_repeat(b"Hello2world...\n", 100)); fclose($file_handle); $dest_file_name = $file_path."/copy_copy_variation9.tmp"; http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/disk_free_space_basic.phpt?r1=1.1.2.3&r2=1.1.2.3.2.1&diff_format=u Index: php-src/ext/standard/tests/file/disk_free_space_basic.phpt diff -u php-src/ext/standard/tests/file/disk_free_space_basic.phpt:1.1.2.3 php-src/ext/standard/tests/file/disk_free_space_basic.phpt:1.1.2.3.2.1 --- php-src/ext/standard/tests/file/disk_free_space_basic.phpt:1.1.2.3 Fri Jun 15 08:04:59 2007 +++ php-src/ext/standard/tests/file/disk_free_space_basic.phpt Mon Nov 5 17:43:20 2007 @@ -7,26 +7,27 @@ /* * Prototype: float disk_free_space( string directory ) * Description: Given a string containing a directory, this function - * will return the number of bytes available on the corresponding - * filesystem or disk partition + * will return the number of bytes available on the corresponding + * filesystem or disk partition */ $file_path = dirname(__FILE__); -include($file_path."/file.inc"); echo "*** Testing with existing directory ***\n"; var_dump( disk_free_space($file_path) ); var_dump( diskfreespace($file_path) ); -$dir = "/disk_free_space"; echo "*** Testing with newly created directory ***\n"; +$dir = "/disk_free_space"; mkdir($file_path.$dir); echo" \n Free Space before writing to a file\n"; $space1 = disk_free_space($file_path.$dir); -var_dump($space1); +var_dump( $space1 ); -fill_buffer($buffer, "text", 3000000); -file_put_contents($file_path.$dir."/disk_free_space.tmp", $buffer); +$fh = fopen($file_path.$dir."/disk_free_space.tmp", "a"); +for( $i=1; $i<=1000; $i++) +fwrite($fh, (binary)"x"); +fclose($fh); echo "\n Free Space after writing to a file\n"; $space2 = disk_free_space($file_path.$dir); @@ -37,15 +38,17 @@ else echo "\n Free Space Value Is Incorrect\n"; -echo"\n-- Done --"; +echo "*** Testing with Binary Input ***\n"; +var_dump( disk_free_space(b"$file_path") ); + +echo"\n--- Done ---"; ?> --CLEAN-- <?php $file_path = dirname(__FILE__); -$dir = "/disk_free_space"; -unlink($file_path.$dir."/disk_free_space.tmp"); -rmdir($file_path.$dir); +unlink($file_path."/disk_free_space/disk_free_space.tmp"); +rmdir($file_path."/disk_free_space"); ?> --EXPECTF-- @@ -61,5 +64,7 @@ float(%d) Free Space Value Is Correct +*** Testing with Binary Input *** +float(%d) --- Done -- +--- Done --- http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/disk_free_space_error-win32.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/disk_free_space_error-win32.phpt diff -u php-src/ext/standard/tests/file/disk_free_space_error-win32.phpt:1.1.2.1 php-src/ext/standard/tests/file/disk_free_space_error-win32.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/disk_free_space_error-win32.phpt:1.1.2.1 Mon Jul 16 17:34:44 2007 +++ php-src/ext/standard/tests/file/disk_free_space_error-win32.phpt Mon Nov 5 17:43:20 2007 @@ -72,3 +72,4 @@ bool(false) -- Done -- + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/disk_free_space_error.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/disk_free_space_error.phpt diff -u php-src/ext/standard/tests/file/disk_free_space_error.phpt:1.1.2.1 php-src/ext/standard/tests/file/disk_free_space_error.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/disk_free_space_error.phpt:1.1.2.1 Mon Jul 16 17:34:44 2007 +++ php-src/ext/standard/tests/file/disk_free_space_error.phpt Mon Nov 5 17:43:20 2007 @@ -1,15 +1,15 @@ --TEST-- -Test disk_free_space and its alias diskfreespace() functions : error conditions +Test disk_free_space and its alias diskfreespace() functions : error conditions. --SKIPIF-- <?php -if(substr(PHP_OS, 0, 3) == 'WIN' ) - die("skip Not Valid for Windows"); +if(substr(PHP_OS, 0, 3) == 'WIN') + die("skip Not valid on Windows"); ?> --FILE-- <?php /* * Prototype: float disk_free_space( string directory ) - * Description: Given a string containing a directory, this function will + * Description: Given a string containing a directory, this function will * return the number of bytes available on the corresponding * filesystem or disk partition */ @@ -27,7 +27,7 @@ var_dump( diskfreespace( $file_path."/dir1" )); $fh = fopen( $file_path."/disk_free_space.tmp", "w" ); -fwrite( $fh, " Garbage data for the temporary file" ); +fwrite( $fh, (binary)" Garbage data for the temporary file" ); var_dump( disk_free_space( $file_path."/disk_free_space.tmp" )); // file input instead of directory var_dump( diskfreespace( $file_path."/disk_free_space.tmp" )); fclose($fh); @@ -64,3 +64,4 @@ float(%d) -- Done -- + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/disk_free_space_variation.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/disk_free_space_variation.phpt diff -u php-src/ext/standard/tests/file/disk_free_space_variation.phpt:1.1.2.2 php-src/ext/standard/tests/file/disk_free_space_variation.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/disk_free_space_variation.phpt:1.1.2.2 Wed Jun 6 12:53:58 2007 +++ php-src/ext/standard/tests/file/disk_free_space_variation.phpt Mon Nov 5 17:43:20 2007 @@ -1,5 +1,5 @@ --TEST-- -Test disk_free_space and its alias diskfreespace() functions : usage variations +Test disk_free_space and its alias diskfreespace() functions : Usage Variations --FILE-- <?php /* @@ -11,16 +11,15 @@ $file_path = dirname(__FILE__); -echo "*** Testing disk_free_space() function with a directory ***\n"; +echo "*** Testing with a directory ***\n"; var_dump( disk_free_space($file_path."/..") ); var_dump( diskfreespace($file_path."/..") ); -echo "\n*** Testing for the return type ***\n"; +echo "\nTesting for the return type ***\n"; $return_value = disk_free_space($file_path); var_dump( is_float($return_value) ); -echo "\n*** Testing disk_free_space() function with different styles of file and directory ***"; - +echo "\n*** Testing with different directory combinations ***"; $dir = "/disk_free_space"; mkdir($file_path.$dir); @@ -42,15 +41,15 @@ $file_path.$dir.chr(0), $file_path."/.".$dir.chr(0), ".".chr(0).$file_path.$dir, - ".".chr(0).$file_path.$dir.chr(0) + ".".chr(0).$file_path.$dir.chr(0) ); $count = 1; /* loop through to test each element the above array */ -foreach($dirs_arr as $dir) { +foreach($dirs_arr as $dir1) { echo "\n-- Iteration $count --\n"; - var_dump( disk_free_space( $dir ) ); - var_dump( diskfreespace( $dir ) ); + var_dump( disk_free_space( $dir1 ) ); + var_dump( diskfreespace( $dir1 ) ); $count++; } @@ -59,19 +58,20 @@ --CLEAN-- <?php -$file_path = dirname(__FILE__)."/disk_free_space"; -rmdir($file_path); +$file_path = dirname(__FILE__); +rmdir($file_path."/disk_free_space"); ?> + --EXPECTF-- -*** Testing disk_free_space() function with a directory *** +*** Testing with a directory *** float(%d) float(%d) -*** Testing for the return type *** +Testing for the return type *** bool(true) -*** Testing disk_free_space() function with different styles of file and directory *** +*** Testing with different directory combinations *** -- Iteration 1 -- float(%d) float(%d) http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/disk_total_space_basic.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/disk_total_space_basic.phpt diff -u php-src/ext/standard/tests/file/disk_total_space_basic.phpt:1.1.2.2 php-src/ext/standard/tests/file/disk_total_space_basic.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/disk_total_space_basic.phpt:1.1.2.2 Wed Jun 6 12:53:58 2007 +++ php-src/ext/standard/tests/file/disk_total_space_basic.phpt Mon Nov 5 17:43:20 2007 @@ -4,31 +4,31 @@ <?php /* * Prototype: float disk_total_space( string $directory ); - * Description: given a string containing a directory, this - * function will return the total number of bytes - * on the corresponding filesyatem or disk partition. + * Description: given a string containing a directory, this function will + * return the total number of bytes on the corresponding filesyatem + * or disk partition. */ $file_path = dirname(__FILE__); -echo "*** Testing with existing directory ***\n"; +echo "*** Testing with normal directory ***\n"; var_dump( disk_total_space($file_path) ); echo "*** Testing with newly created directory ***\n"; -mkdir($file_path."/disk_total_space"); -var_dump( disk_total_space($file_path."/disk_total_space") ); +$dir = "/disk_total_space"; -$fh = fopen($file_path."/disk_total_space/disk_total_space.tmp", "w"); -fwrite($fh, "Garbage Data Garbage Data Garbage Data Garbage Data Garbage Data Garbage Data Garbage Data"); +mkdir($file_path.$dir); +var_dump( disk_total_space($file_path.$dir) ); +$fh = fopen($file_path.$dir."/disk_total_space.tmp", "w"); +fwrite($fh, (binary)"Garbage Data Garbage Data Garbage Data Garbage Data Garbage Data Garbage Data Garbage Data"); fclose($fh); -echo" \n Total Space after writing to a file\n"; -var_dump( disk_total_space($file_path."/disk_total_space") ); +echo"\nTotal Space after writing to a file\n"; +var_dump( disk_total_space($file_path.$dir) ); -echo"\n--- Done ---"; +echo"\n-- Done --"; ?> - --CLEAN-- <?php $file_path = dirname(__FILE__); @@ -37,12 +37,12 @@ ?> --EXPECTF-- -*** Testing with existing directory *** +*** Testing with normal directory *** float(%d) *** Testing with newly created directory *** float(%d) - - Total Space after writing to a file + +Total Space after writing to a file float(%d) ---- Done --- +-- Done -- http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/disk_total_space_error-win32.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/disk_total_space_error-win32.phpt diff -u php-src/ext/standard/tests/file/disk_total_space_error-win32.phpt:1.1.2.1 php-src/ext/standard/tests/file/disk_total_space_error-win32.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/disk_total_space_error-win32.phpt:1.1.2.1 Mon Jul 16 17:34:44 2007 +++ php-src/ext/standard/tests/file/disk_total_space_error-win32.phpt Mon Nov 5 17:43:20 2007 @@ -53,3 +53,4 @@ bool(false) --- Done --- + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/disk_total_space_error.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/disk_total_space_error.phpt diff -u php-src/ext/standard/tests/file/disk_total_space_error.phpt:1.1.2.1 php-src/ext/standard/tests/file/disk_total_space_error.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/disk_total_space_error.phpt:1.1.2.1 Mon Jul 16 17:34:44 2007 +++ php-src/ext/standard/tests/file/disk_total_space_error.phpt Mon Nov 5 17:43:20 2007 @@ -2,14 +2,14 @@ Test disk_total_space() function : error conditions --SKIPIF-- <?php -if(substr(PHP_OS, 0, 3) == 'WIN' ) - die("skip Not Valid for Windows"); +if(substr(PHP_OS, 0, 3) == 'WIN') + die("skip Not valid on Windows"); ?> --FILE-- <?php /* * Prototype: float disk_total_space( string $directory ); - * Description: given a string containing a directory, this function + * Description: given a string containing a directory, this function * will return the total number of bytes on the corresponding * filesystem or disk partition */ @@ -24,7 +24,7 @@ var_dump( disk_total_space( $file_path."/dir1" )); // Invalid directory $fh = fopen( $file_path."/disk_total_space.tmp", "w" ); -fwrite( $fh, " Garbage data for the temporary file" ); +fwrite( $fh, (binary)" Garbage data for the temporary file" ); var_dump( disk_total_space( $file_path."/disk_total_space.tmp" )); // file input instead of directory fclose($fh); @@ -49,3 +49,4 @@ float(%d) --- Done --- + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/disk_total_space_variation.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/disk_total_space_variation.phpt diff -u php-src/ext/standard/tests/file/disk_total_space_variation.phpt:1.1.2.2 php-src/ext/standard/tests/file/disk_total_space_variation.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/disk_total_space_variation.phpt:1.1.2.2 Wed Jun 6 12:53:58 2007 +++ php-src/ext/standard/tests/file/disk_total_space_variation.phpt Mon Nov 5 17:43:20 2007 @@ -1,5 +1,5 @@ --TEST-- -Test disk_total_space() functions : usage variations +Testing disk_total_space() functions : Usage Variations. --FILE-- <?php /* @@ -18,9 +18,9 @@ $return_value = disk_total_space($file_path); var_dump( is_float($return_value) ); -echo "\n*** Testing disk_total_space() function with different directory combinations ***"; - +echo "\n*** Testing with different directory combinations ***"; $dir = "/disk_total_space"; + mkdir($file_path.$dir); $dirs_arr = array( @@ -29,7 +29,7 @@ $file_path."/.".$dir, /* Testing a file trailing slash */ - $file_path.$dir."/", + $file_path."".$dir."/", $file_path."/.".$dir."/", /* Testing file with double trailing slashes */ @@ -44,6 +44,7 @@ ".".chr(0).$file_path.$dir.chr(0) ); + $count = 1; /* loop through to test each element the above array */ foreach($dirs_arr as $dir1) { @@ -52,15 +53,19 @@ $count++; } +echo "*** Testing with Binary Input ***\n"; +var_dump( disk_total_space(b"$file_path") ); + echo"\n--- Done ---"; ?> --CLEAN-- <?php $file_path = dirname(__FILE__); -$dir = "/disk_total_space"; -rmdir($file_path.$dir); +rmdir($file_path."/disk_total_space"); ?> + + --EXPECTF-- *** Testing with a directory *** float(%d) @@ -68,7 +73,7 @@ Testing for the return type *** bool(true) -*** Testing disk_total_space() function with different directory combinations *** +*** Testing with different directory combinations *** -- Iteration 1 -- float(%d) @@ -104,5 +109,7 @@ -- Iteration 12 -- float(%d) +*** Testing with Binary Input *** +float(%d) --- Done --- http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fflush_error.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fflush_error.phpt diff -u php-src/ext/standard/tests/file/fflush_error.phpt:1.1.2.1 php-src/ext/standard/tests/file/fflush_error.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fflush_error.phpt:1.1.2.1 Sat Jul 21 17:14:49 2007 +++ php-src/ext/standard/tests/file/fflush_error.phpt Mon Nov 5 17:43:20 2007 @@ -41,7 +41,7 @@ echo "-- Iteration $loop_counter --\n"; var_dump( fflush($invalid_args[$loop_counter - 1]) ); } -echo "Done\n"; +echo "\n*** Done ***"; ?> --CLEAN-- @@ -85,4 +85,6 @@ Warning: fflush(): supplied argument is not a valid stream resource in %s on line %d bool(false) -Done + +*** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fflush_variation1-win32.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fflush_variation1-win32.phpt diff -u php-src/ext/standard/tests/file/fflush_variation1-win32.phpt:1.1.2.1 php-src/ext/standard/tests/file/fflush_variation1-win32.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fflush_variation1-win32.phpt:1.1.2.1 Sat Jul 21 17:14:50 2007 +++ php-src/ext/standard/tests/file/fflush_variation1-win32.phpt Mon Nov 5 17:43:20 2007 @@ -37,6 +37,8 @@ $file_handle = fopen($file_name, "w"); if($file_handle == false) exit("Error:failed to open file $file_name"); + + // filling the file some data if mode is append mode if( substr($mode, 0, 1) == "a") fill_file($file_handle, $type, 10); fclose($file_handle); @@ -59,7 +61,7 @@ $count++; } - +echo "\n*** Done ***"; ?> --EXPECTF-- *** Testing fflush(): with various types of files *** @@ -524,3 +526,6 @@ bool(true) bool(true) ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50) + +*** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fflush_variation1.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fflush_variation1.phpt diff -u php-src/ext/standard/tests/file/fflush_variation1.phpt:1.1.2.1 php-src/ext/standard/tests/file/fflush_variation1.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fflush_variation1.phpt:1.1.2.1 Sat Jul 21 17:14:49 2007 +++ php-src/ext/standard/tests/file/fflush_variation1.phpt Mon Nov 5 17:43:20 2007 @@ -35,11 +35,14 @@ // creating the file except for x mode if( substr($mode, 0, 1) != "x" ) { $file_handle = fopen($file_name, "w"); - if($file_handle == false) - exit("Error:failed to open file $file_name"); - if( substr($mode, 0, 1) == "a") - fill_file($file_handle, $type, 10); - fclose($file_handle); + if($file_handle == false) + exit("Error:failed to open file $file_name"); + + // filling the file with some data if mode is append mode + if( substr($mode, 0, 1) == "a") + fill_file($file_handle, $type, 10); + fclose($file_handle); + } // opening the file in different modes @@ -59,7 +62,7 @@ $count++; } - +echo "\n*** Done ***"; ?> --EXPECTF-- *** Testing fflush(): with various types of files *** @@ -524,3 +527,6 @@ bool(true) bool(true) ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50) + +*** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fflush_variation2.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fflush_variation2.phpt diff -u php-src/ext/standard/tests/file/fflush_variation2.phpt:1.1.2.1 php-src/ext/standard/tests/file/fflush_variation2.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fflush_variation2.phpt:1.1.2.1 Sat Jul 21 17:14:49 2007 +++ php-src/ext/standard/tests/file/fflush_variation2.phpt Mon Nov 5 17:43:20 2007 @@ -63,7 +63,7 @@ $count++; } -echo "\n--- Done ---"; +echo "\n*** Done ***"; ?> --EXPECTF-- *** Testing fflush(): with soft links to files opened in diff modes *** @@ -439,4 +439,5 @@ bool(true) ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60) ---- Done --- +*** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fflush_variation3.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fflush_variation3.phpt diff -u php-src/ext/standard/tests/file/fflush_variation3.phpt:1.1.2.1 php-src/ext/standard/tests/file/fflush_variation3.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fflush_variation3.phpt:1.1.2.1 Sat Jul 21 17:14:50 2007 +++ php-src/ext/standard/tests/file/fflush_variation3.phpt Mon Nov 5 17:43:20 2007 @@ -63,7 +63,7 @@ $count++; } -echo "\n--- Done ---"; +echo "\n*** Done ***"; ?> --EXPECTF-- *** Testing fflush(): with hard links to files opened in diff modes *** @@ -379,4 +379,5 @@ bool(true) ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60) ---- Done --- +*** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fflush_variation4.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fflush_variation4.phpt diff -u php-src/ext/standard/tests/file/fflush_variation4.phpt:1.1.2.1 php-src/ext/standard/tests/file/fflush_variation4.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fflush_variation4.phpt:1.1.2.1 Sat Jul 21 17:14:50 2007 +++ php-src/ext/standard/tests/file/fflush_variation4.phpt Mon Nov 5 17:43:20 2007 @@ -38,7 +38,7 @@ $count++; } -echo "\n--- Done ---"; +echo "\n*** Done ***"; ?> --EXPECTF-- *** Testing fflush(): with file handles of files opened in various read modes *** @@ -49,4 +49,5 @@ -- Iteration 3 with file opened in rt mode -- bool(true) ---- Done --- +*** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/file_basic.phpt?r1=1.1.2.2.2.1&r2=1.1.2.2.2.2&diff_format=u Index: php-src/ext/standard/tests/file/file_basic.phpt diff -u php-src/ext/standard/tests/file/file_basic.phpt:1.1.2.2.2.1 php-src/ext/standard/tests/file/file_basic.phpt:1.1.2.2.2.2 --- php-src/ext/standard/tests/file/file_basic.phpt:1.1.2.2.2.1 Fri Nov 2 03:56:02 2007 +++ php-src/ext/standard/tests/file/file_basic.phpt Mon Nov 5 17:43:20 2007 @@ -9,7 +9,7 @@ */ require(dirname(__FILE__) . '/file.inc'); $file_path = dirname(__FILE__); -echo "*** Testing file() with basic files ***\n"; +echo "*** Testing file() with basic types of files ***\n"; $filetypes = array("numeric", "text", "empty", "text_with_new_line"); foreach( $filetypes as $type ) { @@ -18,7 +18,7 @@ delete_files($file_path, 1, "file_basic"); } -echo "*** Testing for return type of file function ***\n"; +echo "*** Testing for return type of file() function ***\n"; foreach( $filetypes as $type ) { create_files($file_path, 1, $type, 0755, 1, "w", "file_basic"); $ret_arr = file($file_path."/file_basic1.tmp"); @@ -29,7 +29,7 @@ echo "\n--- Done ---"; ?> --EXPECTF-- -*** Testing file() with basic files *** +*** Testing file() with basic types of files *** Array ( [0] => 2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222 @@ -67,10 +67,11 @@ [11] => line ) -*** Testing for return type of file function *** +*** Testing for return type of file() function *** bool(true) bool(true) bool(true) bool(true) --- Done --- + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/file_error.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/file_error.phpt diff -u php-src/ext/standard/tests/file/file_error.phpt:1.1.2.2 php-src/ext/standard/tests/file/file_error.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/file_error.phpt:1.1.2.2 Wed Jun 6 12:53:58 2007 +++ php-src/ext/standard/tests/file/file_error.phpt Mon Nov 5 17:43:20 2007 @@ -1,15 +1,13 @@ --TEST-- -Testing file() function : error conditions +Test file() function : error conditions --FILE-- <?php /* - * Prototype: array file ( string filename [,int use-include_path [,resource context]] ); - * Description: Reads entire file into an array - * Returns the file in an array - */ - + Prototype: array file ( string filename [,int use-include_path [,resource context]] ); + Description: Reads entire file into an array + Returns the file in an array +*/ $file_path = dirname(__FILE__); - echo "\n*** Testing error conditions ***"; $file_handle = fopen($file_path."/file.tmp", "w"); var_dump( file() ); // Zero No. of args @@ -19,7 +17,8 @@ var_dump( file($filename, "INCORRECT_FLAG", NULL) ); // Incorrect flag var_dump( file($filename, 10, NULL) ); // Incorrect flag -var_dump( file( "nofile.tmp" ) ); // non existing filename + +var_dump( file("temp.tmp") ); // non existing filename fclose($file_handle); echo "\n--- Done ---"; @@ -28,7 +27,7 @@ --CLEAN-- <?php $file_path = dirname(__FILE__); -unlink($file_path."/file.tmp"); +unlink($file_path."tmp.tmp"); ?> --EXPECTF-- @@ -44,7 +43,8 @@ array(0) { } -Warning: file(nofile.tmp): failed to open stream: No such file or directory in %s on line %d +Warning: file(temp.tmp): failed to open stream: No such file or directory in %s on line %d bool(false) --- Done --- + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/file_variation.phpt?r1=1.1.2.2.2.1&r2=1.1.2.2.2.2&diff_format=u Index: php-src/ext/standard/tests/file/file_variation.phpt diff -u php-src/ext/standard/tests/file/file_variation.phpt:1.1.2.2.2.1 php-src/ext/standard/tests/file/file_variation.phpt:1.1.2.2.2.2 --- php-src/ext/standard/tests/file/file_variation.phpt:1.1.2.2.2.1 Fri Nov 2 03:56:02 2007 +++ php-src/ext/standard/tests/file/file_variation.phpt Mon Nov 5 17:43:20 2007 @@ -3,61 +3,65 @@ --FILE-- <?php /* - * Prototype: array file ( string $filename [,int $flags [,resource $context]] ); - * Description: Reads entire file into an array - * Returns the file in an array + * Prototype: array file ( string filename [,int use-include_path [,resource context]] ); + * Description: Reads entire file into an array + Returns the file in an array */ - -$file_path = dirname(__FILE__); -require($file_path."/file.inc"); -$filename = $file_path."/file_variation.tmp"; +require(dirname(__FILE__) . '/file.inc'); $data_array = array( "Garbage data", "Gar\nba\nge d\nata", "Gar\n\nbage \n\n data" ); - echo "*** Using various flags values with different data in a file\n"; $count=1; +$file_path = dirname(__FILE__); foreach( $data_array as $data ) { - echo "--Iteration $count --\n"; - $fh = fopen($filename, "w"); - fwrite($fh, $data); - var_dump( file($filename, FILE_IGNORE_NEW_LINES) ); - var_dump( file($filename, FILE_SKIP_EMPTY_LINES) ); - $count++; - fclose($fh); + echo "--Iteration $count --\n"; + $fh = fopen($file_path."/file_variation.tmp", "w"); + fwrite($fh, (binary)$data); + var_dump( file($file_path."/file_variation.tmp", FILE_IGNORE_NEW_LINES) ); + var_dump( file($file_path."/file_variation.tmp", FILE_SKIP_EMPTY_LINES) ); + $count++; + fclose($fh); } echo "*** Testing with variation in use_include_path argument ***\n"; -$dir = "/file_variation"; -$file_path = dirname(__FILE__).$dir; - -mkdir($file_path); -ini_set( 'include_path', $file_path ); -$filename = $file_path."/file1_variation.tmp"; - -$buffer_types = array("text", "numeric", "alphanumeric", "text_with_new_line"); -foreach( $buffer_types as $type) { - fill_buffer($buffer, $type, 100); - file_put_contents($filename, $buffer ); - var_dump( file("file1_variation.tmp", FILE_USE_INCLUDE_PATH) ); - var_dump( file($filename, FILE_IGNORE_NEW_LINES) ); - var_dump( file($filename, FILE_SKIP_EMPTY_LINES) ); - -} +$file_path1 = dirname(__FILE__)."/file_variation"; +mkdir($file_path1); +ini_set( 'include_path',$file_path.'/file_variation' ); + +file_put_contents( $file_path1."/file1_variation.tmp", "aaaaaaaaaaaaaaabbbbbbbbbbb111111111222222222" ); +var_dump( file("file1_variation.tmp", FILE_USE_INCLUDE_PATH) ); +var_dump( file($file_path1."/file1_variation.tmp", 1) ); + +echo "*** Using file function to remove line containing a key string ***\n"; +$file_handle = fopen($file_path."/file2_variation.tmp", "w"); +$key = "SEARCH_KEY"; +fwrite( $file_handle, (binary)"The key string to be searched is SEARCH_KEY\nLine without key string\nThe key string to be searched is SEARCH_KEY" ); +$out_array = file($file_path."/file2_variation.tmp"); + +echo "File contents in array form Before replacement of the key\n"; +var_dump( $out_array ); +$file_handle2 = fopen($file_path."/file3_variation.tmp", "w"); +// Loop through file content array +foreach($out_array as $line) { + if( !strstr( $line, $key ) ) + fputs($file_handle2,$line); +} +echo "File contents in array form After replacement of the key\n"; +var_dump( file($file_path."/file3_variation.tmp" )); +fclose($file_handle); +fclose($file_handle2); echo "\n--- Done ---"; ?> --CLEAN-- <?php -// Removing the temporary files and directory - $file_path = dirname(__FILE__); unlink($file_path."/file_variation.tmp"); - -$dir = "/file_variation"; -$file_path = dirname(__FILE__).$dir; -unlink($file_path."/file1_variation.tmp"); -rmdir($file_path); +unlink($file_path."/file_variation/file1_variation.tmp"); +unlink($file_path."/file2_variation.tmp"); +unlink($file_path."/file3_variation.tmp"); +rmdir($file_path."/file_variation"); ?> --EXPECTF-- @@ -127,139 +131,30 @@ *** Testing with variation in use_include_path argument *** array(1) { [0]=> - string(100) "text text text text text text text text text text text text text text text text text text text text " -} -array(1) { - [0]=> - string(100) "text text text text text text text text text text text text text text text text text text text text " -} -array(1) { - [0]=> - string(100) "text text text text text text text text text text text text text text text text text text text text " -} -array(1) { - [0]=> - string(100) "2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222" -} -array(1) { - [0]=> - string(100) "2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222" -} -array(1) { - [0]=> - string(100) "2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222" + string(44) "aaaaaaaaaaaaaaabbbbbbbbbbb111111111222222222" } array(1) { [0]=> - string(100) "ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 " + string(44) "aaaaaaaaaaaaaaabbbbbbbbbbb111111111222222222" } -array(1) { - [0]=> - string(100) "ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 " -} -array(1) { +*** Using file function to remove line containing a key string *** +File contents in array form Before replacement of the key +array(3) { [0]=> - string(100) "ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 " -} -array(12) { - [0]=> - string(5) "line + string(44) "The key string to be searched is SEARCH_KEY " [1]=> - string(13) "line of text + string(24) "Line without key string " [2]=> - string(5) "line -" - [3]=> - string(13) "line of text -" - [4]=> - string(5) "line -" - [5]=> - string(13) "line of text -" - [6]=> - string(5) "line -" - [7]=> - string(13) "line of text -" - [8]=> - string(5) "line -" - [9]=> - string(13) "line of text -" - [10]=> - string(5) "line -" - [11]=> - string(5) "line " -} -array(12) { - [0]=> - string(4) "line" - [1]=> - string(12) "line of text" - [2]=> - string(4) "line" - [3]=> - string(12) "line of text" - [4]=> - string(4) "line" - [5]=> - string(12) "line of text" - [6]=> - string(4) "line" - [7]=> - string(12) "line of text" - [8]=> - string(4) "line" - [9]=> - string(12) "line of text" - [10]=> - string(4) "line" - [11]=> - string(5) "line " + string(43) "The key string to be searched is SEARCH_KEY" } -array(12) { +File contents in array form After replacement of the key +array(1) { [0]=> - string(5) "line + string(24) "Line without key string " - [1]=> - string(13) "line of text -" - [2]=> - string(5) "line -" - [3]=> - string(13) "line of text -" - [4]=> - string(5) "line -" - [5]=> - string(13) "line of text -" - [6]=> - string(5) "line -" - [7]=> - string(13) "line of text -" - [8]=> - string(5) "line -" - [9]=> - string(13) "line of text -" - [10]=> - string(5) "line -" - [11]=> - string(5) "line " } --- Done --- + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/filegroup_error.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/filegroup_error.phpt diff -u php-src/ext/standard/tests/file/filegroup_error.phpt:1.1.2.1 php-src/ext/standard/tests/file/filegroup_error.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/filegroup_error.phpt:1.1.2.1 Wed Jun 13 22:38:49 2007 +++ php-src/ext/standard/tests/file/filegroup_error.phpt Mon Nov 5 17:43:20 2007 @@ -34,10 +34,11 @@ Warning: filegroup(): stat failed for 100 in %s on line %d bool(false) -Warning: Wrong parameter count for filegroup() in %s on line %d +Warning: filegroup() expects exactly 1 parameter, 0 given in %s on line %d NULL -Warning: Wrong parameter count for filegroup() in %s on line %d +Warning: filegroup() expects exactly 1 parameter, 2 given in %s on line %d NULL *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fileinode_basic.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fileinode_basic.phpt diff -u php-src/ext/standard/tests/file/fileinode_basic.phpt:1.1.2.1 php-src/ext/standard/tests/file/fileinode_basic.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fileinode_basic.phpt:1.1.2.1 Fri May 25 13:44:23 2007 +++ php-src/ext/standard/tests/file/fileinode_basic.phpt Mon Nov 5 17:43:20 2007 @@ -26,7 +26,6 @@ <?php unlink (dirname(__FILE__)."/inode.tmp"); ?> - --EXPECTF-- *** Testing fileinode() with file, directory *** %d http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fileinode_error.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fileinode_error.phpt diff -u php-src/ext/standard/tests/file/fileinode_error.phpt:1.1.2.2 php-src/ext/standard/tests/file/fileinode_error.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/fileinode_error.phpt:1.1.2.2 Fri Sep 7 10:28:03 2007 +++ php-src/ext/standard/tests/file/fileinode_error.phpt Mon Nov 5 17:43:20 2007 @@ -35,10 +35,10 @@ Warning: fileinode(): stat failed for 100 in %s on line 14 bool(false) -Warning: Wrong parameter count for fileinode() in %s on line 17 +Warning: fileinode() expects exactly 1 parameter, 0 given in %s on line 17 NULL -Warning: Wrong parameter count for fileinode() in %s on line 20 +Warning: fileinode() expects exactly 1 parameter, 2 given in %s on line 20 NULL *** Done *** http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fileinode_variation.phpt?r1=1.1.2.2.2.1&r2=1.1.2.2.2.2&diff_format=u Index: php-src/ext/standard/tests/file/fileinode_variation.phpt diff -u php-src/ext/standard/tests/file/fileinode_variation.phpt:1.1.2.2.2.1 php-src/ext/standard/tests/file/fileinode_variation.phpt:1.1.2.2.2.2 --- php-src/ext/standard/tests/file/fileinode_variation.phpt:1.1.2.2.2.1 Fri Nov 2 03:14:10 2007 +++ php-src/ext/standard/tests/file/fileinode_variation.phpt Mon Nov 5 17:43:20 2007 @@ -73,7 +73,13 @@ clearstatcache(); mkdir("$file_path/dir/subdir"); -print( fileinode("$file_path/dir/subdir") ); +print( fileinode("$file_path/dir/subdir") )."\n"; +clearstatcache(); + +echo "-- Testing with binary input --\n"; +print( fileinode(b"$file_path/dir") )."\n"; +clearstatcache(); +print( fileinode(b"$file_path/dir/subdir") ); rmdir("$file_path/dir/subdir"); rmdir("$file_path/dir"); @@ -100,4 +106,7 @@ -- Testing with directories -- %d %d +-- Testing with binary input -- +%d +%d *** Done *** http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fileowner_basic.phpt?r1=1.1.2.3&r2=1.1.2.3.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fileowner_basic.phpt diff -u php-src/ext/standard/tests/file/fileowner_basic.phpt:1.1.2.3 php-src/ext/standard/tests/file/fileowner_basic.phpt:1.1.2.3.2.1 --- php-src/ext/standard/tests/file/fileowner_basic.phpt:1.1.2.3 Tue Sep 4 08:37:51 2007 +++ php-src/ext/standard/tests/file/fileowner_basic.phpt Mon Nov 5 17:43:20 2007 @@ -48,3 +48,4 @@ int(%d) int(%d) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fileowner_error.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fileowner_error.phpt diff -u php-src/ext/standard/tests/file/fileowner_error.phpt:1.1.2.1 php-src/ext/standard/tests/file/fileowner_error.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fileowner_error.phpt:1.1.2.1 Wed Jun 13 22:38:49 2007 +++ php-src/ext/standard/tests/file/fileowner_error.phpt Mon Nov 5 17:43:20 2007 @@ -34,10 +34,11 @@ Warning: fileowner(): stat failed for 100 in %s on line %d bool(false) -Warning: Wrong parameter count for fileowner() in %s on line %d +Warning: fileowner() expects exactly 1 parameter, 0 given in %s on line %d NULL -Warning: Wrong parameter count for fileowner() in %s on line %d +Warning: fileowner() expects exactly 1 parameter, 2 given in %s on line %d NULL *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/filesize_basic.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/filesize_basic.phpt diff -u php-src/ext/standard/tests/file/filesize_basic.phpt:1.1.2.1 php-src/ext/standard/tests/file/filesize_basic.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/filesize_basic.phpt:1.1.2.1 Mon Jun 18 19:45:53 2007 +++ php-src/ext/standard/tests/file/filesize_basic.phpt Mon Nov 5 17:43:20 2007 @@ -36,3 +36,4 @@ int(%d) int(0) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/filesize_error.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/filesize_error.phpt diff -u php-src/ext/standard/tests/file/filesize_error.phpt:1.1.2.1 php-src/ext/standard/tests/file/filesize_error.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/filesize_error.phpt:1.1.2.1 Mon Jun 18 19:45:53 2007 +++ php-src/ext/standard/tests/file/filesize_error.phpt Mon Nov 5 17:43:20 2007 @@ -31,10 +31,11 @@ Warning: filesize(): stat failed for /no/such/dir in %s on line %d bool(false) -Warning: Wrong parameter count for filesize() in %s on line %d +Warning: filesize() expects exactly 1 parameter, 0 given in %s on line %d NULL -Warning: Wrong parameter count for filesize() in %s on line %d +Warning: filesize() expects exactly 1 parameter, 2 given in %s on line %d NULL *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/filesize_variation2.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/filesize_variation2.phpt diff -u php-src/ext/standard/tests/file/filesize_variation2.phpt:1.1.2.1 php-src/ext/standard/tests/file/filesize_variation2.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/filesize_variation2.phpt:1.1.2.1 Tue Jul 3 07:10:01 2007 +++ php-src/ext/standard/tests/file/filesize_variation2.phpt Mon Nov 5 17:43:20 2007 @@ -25,12 +25,12 @@ clearstatcache(); echo "-- Creating a file inside base dir, and checking dir & file size --\n"; -create_files($file_path."/filesize_variation2", 1, "numeric", 0755, 1, "w", "filesize_variation", 2); +create_files($file_path."/filesize_variation2", 1, "numeric", 0755, 1, "w", "filesize_variation"); var_dump( filesize( $file_path."/filesize_variation2")); clearstatcache(); -var_dump( filesize( $file_path."/filesize_variation2/filesize_variation2.tmp")); +var_dump( filesize( $file_path."/filesize_variation2/filesize_variation1.tmp")); clearstatcache(); -delete_files($file_path."/filesize_variation2", 1, "filesize_variation", 2); +delete_files($file_path."/filesize_variation2", 1, "filesize_variation"); echo "-- Creating an empty sub-dir in base-dir, and checking size of base and sub dir --\n"; mkdir( $file_path."/filesize_variation2/filesize_variation2_sub"); http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/filesize_variation3-win32.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/filesize_variation3-win32.phpt diff -u php-src/ext/standard/tests/file/filesize_variation3-win32.phpt:1.1.2.1 php-src/ext/standard/tests/file/filesize_variation3-win32.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/filesize_variation3-win32.phpt:1.1.2.1 Tue Jul 3 07:10:01 2007 +++ php-src/ext/standard/tests/file/filesize_variation3-win32.phpt Mon Nov 5 17:43:20 2007 @@ -14,12 +14,11 @@ */ $file_path = dirname(__FILE__); -require($file_path."/file.inc"); echo "*** Testing filesize(): usage variations ***\n"; $filename = $file_path."/filesize_variation3.tmp"; $file_handle = fopen($filename, "w"); -fwrite($file_handle, str_repeat("Hello,World ", 1000) ); // create file of size 12000 bytes +fwrite($file_handle, (binary)str_repeat("Hello,World ", 1000) ); // create file of size 12000 bytes fclose($file_handle); echo "-- Testing filesize() after truncating the file to a new length --\n"; http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/filesize_variation4-win32.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/filesize_variation4-win32.phpt diff -u php-src/ext/standard/tests/file/filesize_variation4-win32.phpt:1.1.2.1 php-src/ext/standard/tests/file/filesize_variation4-win32.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/filesize_variation4-win32.phpt:1.1.2.1 Tue Jul 3 07:10:01 2007 +++ php-src/ext/standard/tests/file/filesize_variation4-win32.phpt Mon Nov 5 17:43:20 2007 @@ -13,16 +13,14 @@ (and generates an error of level E_WARNING) in case of an error. */ -/* Testing filesize() with data written using different file modes and by creating holes in file */ - $file_path = dirname(__FILE__); +require($file_path."/file.inc"); -echo "*** Testing filesize(): usage variations ***\n"; +echo "*** Testing filesize(): usage variations ***\n"; echo "\n*** Testing filesize() with data written using different file modes and by creating holes in file ***\n"; $filename = $file_path."/filesize_variation4.tmp"; $string = "Test 2 test the filesize() fn, with data containing all the types like !@@##$%^&*():<>?|~+!;',.\][{}(special) chars, 12345(numeric) chars, and \n(newline char), \t(tab), \0, \r and so on........\0"; - echo "-- opening the file in 'w' mode and get the size --\n"; $file_handle = fopen($filename, "w"); var_dump( strlen($string) ); //strlen of the string @@ -36,7 +34,6 @@ var_dump( strlen($string) ); //strlen of the string = 191 bytes fwrite($file_handle, $string); fclose($file_handle); -/* '\n' treated as '\r\n' i.e two chars in 'wt' mode */ var_dump( filesize($filename) ); //size of the file = 192 bytes != strlen of string clearstatcache(); @@ -44,7 +41,6 @@ $file_handle = fopen($filename, "a"); fwrite($file_handle, "Hello, world"); fclose($file_handle); -/* '\n' treated as '\r\n' i.e two chars in 'wt' mode */ var_dump( filesize($filename) ); //204 bytes clearstatcache(); @@ -52,7 +48,6 @@ $file_handle = fopen($filename, "at"); fwrite($file_handle, "Hello, world\n"); fclose($file_handle); -/* '\n' treated as '\r\n' i.e two chars in 'wt' mode */ var_dump( filesize($filename) ); //218 bytes clearstatcache(); http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/filesize_variation4.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/filesize_variation4.phpt diff -u php-src/ext/standard/tests/file/filesize_variation4.phpt:1.1.2.1 php-src/ext/standard/tests/file/filesize_variation4.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/filesize_variation4.phpt:1.1.2.1 Tue Jul 3 07:10:01 2007 +++ php-src/ext/standard/tests/file/filesize_variation4.phpt Mon Nov 5 17:43:20 2007 @@ -73,7 +73,7 @@ clearstatcache(); echo "-- with empty file --\n"; -$filename= dirname(__FILE__)."/filesize_variation4_empty.tmp"; +$filename = dirname(__FILE__)."/filesize_variation4_empty.tmp"; fclose( fopen($filename, "w") ); var_dump( filesize($filename) ); //0 bytes http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/filetype_error.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/filetype_error.phpt diff -u php-src/ext/standard/tests/file/filetype_error.phpt:1.1.2.1 php-src/ext/standard/tests/file/filetype_error.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/filetype_error.phpt:1.1.2.1 Fri May 25 13:44:23 2007 +++ php-src/ext/standard/tests/file/filetype_error.phpt Mon Nov 5 17:43:20 2007 @@ -8,7 +8,7 @@ dir, block, link, file, and unknown. */ -echo "\n*** Testing error conditions ***"; +echo "*** Testing error conditions ***"; /* non-existing file or dir */ print( filetype("/no/such/file/dir") ); @@ -32,8 +32,8 @@ Warning: filetype(): Lstat failed for 100 in %s on line %d -Warning: Wrong parameter count for filetype() in %s on line %d +Warning: filetype() expects exactly 1 parameter, 0 given in %s on line %d -Warning: Wrong parameter count for filetype() in %s on line %d +Warning: filetype() expects exactly 1 parameter, 2 given in %s on line %d *** Done *** http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/flock_variation.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/flock_variation.phpt diff -u php-src/ext/standard/tests/file/flock_variation.phpt:1.1.2.1 php-src/ext/standard/tests/file/flock_variation.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/flock_variation.phpt:1.1.2.1 Fri May 25 13:44:23 2007 +++ php-src/ext/standard/tests/file/flock_variation.phpt Mon Nov 5 17:43:20 2007 @@ -40,6 +40,9 @@ array(), "string", "", + /* binary input */ + b"string", + b"", "\0" ); @@ -90,6 +93,10 @@ bool(true) -- Inner iteration 11 in 0 -- bool(true) +-- Inner iteration 12 in 0 -- +bool(true) +-- Inner iteration 13 in 0 -- +bool(true) --- Outer iteration 1 --- bool(true) -- Inner iteration 0 in 1 -- @@ -116,6 +123,10 @@ bool(true) -- Inner iteration 11 in 1 -- bool(true) +-- Inner iteration 12 in 1 -- +bool(true) +-- Inner iteration 13 in 1 -- +bool(true) --- Outer iteration 2 --- bool(true) -- Inner iteration 0 in 2 -- @@ -142,6 +153,10 @@ bool(true) -- Inner iteration 11 in 2 -- bool(true) +-- Inner iteration 12 in 2 -- +bool(true) +-- Inner iteration 13 in 2 -- +bool(true) --- Outer iteration 3 --- bool(true) -- Inner iteration 0 in 3 -- @@ -168,6 +183,10 @@ bool(true) -- Inner iteration 11 in 3 -- bool(true) +-- Inner iteration 12 in 3 -- +bool(true) +-- Inner iteration 13 in 3 -- +bool(true) --- Outer iteration 4 --- bool(true) -- Inner iteration 0 in 4 -- @@ -194,6 +213,10 @@ bool(true) -- Inner iteration 11 in 4 -- bool(true) +-- Inner iteration 12 in 4 -- +bool(true) +-- Inner iteration 13 in 4 -- +bool(true) --- Outer iteration 5 --- bool(true) -- Inner iteration 0 in 5 -- @@ -220,6 +243,10 @@ bool(true) -- Inner iteration 11 in 5 -- bool(true) +-- Inner iteration 12 in 5 -- +bool(true) +-- Inner iteration 13 in 5 -- +bool(true) --- Outer iteration 6 --- bool(true) -- Inner iteration 0 in 6 -- @@ -246,6 +273,10 @@ bool(true) -- Inner iteration 11 in 6 -- bool(true) +-- Inner iteration 12 in 6 -- +bool(true) +-- Inner iteration 13 in 6 -- +bool(true) --- Outer iteration 7 --- bool(true) -- Inner iteration 0 in 7 -- @@ -272,6 +303,10 @@ bool(true) -- Inner iteration 11 in 7 -- bool(true) +-- Inner iteration 12 in 7 -- +bool(true) +-- Inner iteration 13 in 7 -- +bool(true) --- Outer iteration 8 --- bool(true) -- Inner iteration 0 in 8 -- @@ -298,6 +333,10 @@ bool(true) -- Inner iteration 11 in 8 -- bool(true) +-- Inner iteration 12 in 8 -- +bool(true) +-- Inner iteration 13 in 8 -- +bool(true) --- Outer iteration 9 --- bool(true) -- Inner iteration 0 in 9 -- @@ -324,5 +363,9 @@ bool(true) -- Inner iteration 11 in 9 -- bool(true) +-- Inner iteration 12 in 9 -- +bool(true) +-- Inner iteration 13 in 9 -- +bool(true) *** Done *** http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fnmatch_error.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fnmatch_error.phpt diff -u php-src/ext/standard/tests/file/fnmatch_error.phpt:1.1.2.2 php-src/ext/standard/tests/file/fnmatch_error.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/fnmatch_error.phpt:1.1.2.2 Wed Aug 29 10:11:40 2007 +++ php-src/ext/standard/tests/file/fnmatch_error.phpt Mon Nov 5 17:43:20 2007 @@ -2,7 +2,7 @@ Test fnmatch() function: Error conditions --SKIPIF-- <?php -if( (stristr(PHP_OS, "Mac")) || (stristr(PHP_OS, "Win")) ) +if( (stristr(PHP_OS, "Mac")) || (stristr(PHP_OS, "Win")) ) die("skip do not run on MacOS/Windows"); ?> --FILE-- @@ -36,22 +36,22 @@ ?> --EXPECTF-- *** Testing error conditions for fnmatch() *** -Warning: fnmatch() expects parameter 1 to be string, array given in %s on line %d +Warning: fnmatch() expects parameter 1 to be string, array given in %s on line %d%d NULL -Warning: fnmatch() expects parameter 1 to be string, resource given in %s on line %d +Warning: fnmatch() expects parameter 1 to be string, resource given in %s on line %d%d NULL -Warning: fnmatch() expects parameter 1 to be string, object given in %s on line %d +Warning: fnmatch() expects parameter 1 to be string, object given in %s on line %d%d NULL -Warning: fnmatch() expects at least 2 parameters, 1 given in %s on line %d +Warning: fnmatch() expects at least 2 parameters, 1 given in %s on line %d%d NULL -Warning: fnmatch() expects at least 2 parameters, 1 given in %s on line %d +Warning: fnmatch() expects at least 2 parameters, 1 given in %s on line %d%d NULL -Warning: fnmatch() expects at most 3 parameters, 4 given in %s on line %d +Warning: fnmatch() expects at most 3 parameters, 4 given in %s on line %d%d NULL *** Done *** http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fnmatch_variation.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fnmatch_variation.phpt diff -u php-src/ext/standard/tests/file/fnmatch_variation.phpt:1.1.2.2 php-src/ext/standard/tests/file/fnmatch_variation.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/fnmatch_variation.phpt:1.1.2.2 Wed Aug 29 10:11:40 2007 +++ php-src/ext/standard/tests/file/fnmatch_variation.phpt Mon Nov 5 17:43:20 2007 @@ -2,7 +2,7 @@ Test fnmatch() function: Variations --SKIPIF-- <?php -if( (stristr(PHP_OS, "Mac")) || (stristr(PHP_OS, "Win")) ) +if( (stristr(PHP_OS, "Mac")) || (stristr(PHP_OS, "Win")) ) die("skip do not run on MacOS/Windows"); ?> --FILE-- @@ -49,7 +49,14 @@ 28 => chr(109).chr(97).chr(116).chr(99).chr(104).".".chr(116).chr(120).chr(116), 29 => "MATCH.TMP", 30 => "MATCH*", -31 => $file_name +31 => $file_name, + +/* binary inputs */ +32 => b"match*", +33 => b"*.tmp", +34 => b"mat*", +35 => b"mat*tmp", +36 => b"m*t", ); for( $i = 0; $i<count($pattern_arr); $i++ ) { @@ -88,7 +95,10 @@ "string\0", 'string', "str\0ing", - "stringstring" + "stringstring", + + /* binary input */ + b"string" ); match($str_arr, $str_arr); @@ -185,6 +195,16 @@ bool(false) -- Iteration 31 -- bool(true) +-- Iteration 32 -- +bool(false) +-- Iteration 33 -- +bool(true) +-- Iteration 34 -- +bool(false) +-- Iteration 35 -- +bool(false) +-- Iteration 36 -- +bool(false) *** Testing fnmatch() with other types other than files *** --- With Integers --- @@ -238,30 +258,42 @@ bool(true) bool(false) bool(false) +bool(true) -- Iteration 1 -- bool(true) bool(true) bool(true) bool(false) bool(false) +bool(true) -- Iteration 2 -- bool(true) bool(true) bool(true) bool(false) bool(false) +bool(true) -- Iteration 3 -- bool(false) bool(false) bool(false) bool(true) bool(false) +bool(false) -- Iteration 4 -- bool(false) bool(false) bool(false) bool(false) bool(true) +bool(false) +-- Iteration 5 -- +bool(true) +bool(true) +bool(true) +bool(false) +bool(false) +bool(true) --- With booleans --- -- Iteration 0 -- http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fpassthru_basic.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fpassthru_basic.phpt diff -u php-src/ext/standard/tests/file/fpassthru_basic.phpt:1.1.2.1 php-src/ext/standard/tests/file/fpassthru_basic.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fpassthru_basic.phpt:1.1.2.1 Fri May 25 13:44:23 2007 +++ php-src/ext/standard/tests/file/fpassthru_basic.phpt Mon Nov 5 17:43:20 2007 @@ -123,4 +123,4 @@ -- After seeking position to 1000 -- int(0) -*** Done *** \ No newline at end of file +*** Done *** http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fputcsv.phpt?r1=1.1.2.1&r2=1.1.2.1.4.1&diff_format=u Index: php-src/ext/standard/tests/file/fputcsv.phpt diff -u php-src/ext/standard/tests/file/fputcsv.phpt:1.1.2.1 php-src/ext/standard/tests/file/fputcsv.phpt:1.1.2.1.4.1 --- php-src/ext/standard/tests/file/fputcsv.phpt:1.1.2.1 Fri Oct 21 12:13:39 2005 +++ php-src/ext/standard/tests/file/fputcsv.phpt Mon Nov 5 17:43:20 2007 @@ -1,7 +1,5 @@ --TEST-- various fputcsv() functionality tests ---INI-- -magic_quotes_runtime=0 --FILE-- <?php @@ -33,7 +31,7 @@ $fp = fopen($file, "w"); foreach ($list as $v) { - fputcsv($fp, split(',', $v)); + fputcsv($fp, explode(',', $v)); } fclose($fp); http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fputcsv_error.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fputcsv_error.phpt diff -u php-src/ext/standard/tests/file/fputcsv_error.phpt:1.1.2.1 php-src/ext/standard/tests/file/fputcsv_error.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fputcsv_error.phpt:1.1.2.1 Wed Aug 8 03:53:07 2007 +++ php-src/ext/standard/tests/file/fputcsv_error.phpt Mon Nov 5 17:43:20 2007 @@ -94,3 +94,4 @@ Warning: fputcsv() expects parameter 1 to be resource, object given in %s on line %d NULL Done + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fputcsv_variation1.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fputcsv_variation1.phpt diff -u php-src/ext/standard/tests/file/fputcsv_variation1.phpt:1.1.2.1 php-src/ext/standard/tests/file/fputcsv_variation1.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fputcsv_variation1.phpt:1.1.2.1 Wed Aug 8 03:53:07 2007 +++ php-src/ext/standard/tests/file/fputcsv_variation1.phpt Mon Nov 5 17:43:20 2007 @@ -831,3 +831,4 @@ string(%d) "&&&""""&&:&&"&&:,:":&&,&&:,,,,& " Done + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fputcsv_variation10.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fputcsv_variation10.phpt diff -u php-src/ext/standard/tests/file/fputcsv_variation10.phpt:1.1.2.1 php-src/ext/standard/tests/file/fputcsv_variation10.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fputcsv_variation10.phpt:1.1.2.1 Wed Aug 8 03:53:07 2007 +++ php-src/ext/standard/tests/file/fputcsv_variation10.phpt Mon Nov 5 17:43:20 2007 @@ -333,3 +333,4 @@ string(%d) " " Done + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fputcsv_variation11.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fputcsv_variation11.phpt diff -u php-src/ext/standard/tests/file/fputcsv_variation11.phpt:1.1.2.1 php-src/ext/standard/tests/file/fputcsv_variation11.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fputcsv_variation11.phpt:1.1.2.1 Wed Aug 8 03:53:07 2007 +++ php-src/ext/standard/tests/file/fputcsv_variation11.phpt Mon Nov 5 17:43:20 2007 @@ -831,3 +831,4 @@ string(%d) ""&""""""""&:&""&:,:"":&,&:,,,," " Done + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fputcsv_variation12.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fputcsv_variation12.phpt diff -u php-src/ext/standard/tests/file/fputcsv_variation12.phpt:1.1.2.1 php-src/ext/standard/tests/file/fputcsv_variation12.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fputcsv_variation12.phpt:1.1.2.1 Wed Aug 8 03:53:07 2007 +++ php-src/ext/standard/tests/file/fputcsv_variation12.phpt Mon Nov 5 17:43:20 2007 @@ -832,3 +832,4 @@ string(%d) ""&""""""""&:&""&:,:"":&,&:,,,," " Done + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fputcsv_variation13.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fputcsv_variation13.phpt diff -u php-src/ext/standard/tests/file/fputcsv_variation13.phpt:1.1.2.1 php-src/ext/standard/tests/file/fputcsv_variation13.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fputcsv_variation13.phpt:1.1.2.1 Wed Aug 8 03:53:07 2007 +++ php-src/ext/standard/tests/file/fputcsv_variation13.phpt Mon Nov 5 17:43:20 2007 @@ -1048,3 +1048,4 @@ string(%d) ""&""""""""&:&""&:,:"":&,&:,,,," " Done + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fputcsv_variation14.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fputcsv_variation14.phpt diff -u php-src/ext/standard/tests/file/fputcsv_variation14.phpt:1.1.2.1 php-src/ext/standard/tests/file/fputcsv_variation14.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fputcsv_variation14.phpt:1.1.2.1 Wed Aug 8 03:53:07 2007 +++ php-src/ext/standard/tests/file/fputcsv_variation14.phpt Mon Nov 5 17:43:20 2007 @@ -354,3 +354,4 @@ bool(false) string(0) "" Done + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fputcsv_variation2.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fputcsv_variation2.phpt diff -u php-src/ext/standard/tests/file/fputcsv_variation2.phpt:1.1.2.1 php-src/ext/standard/tests/file/fputcsv_variation2.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fputcsv_variation2.phpt:1.1.2.1 Wed Aug 8 03:53:07 2007 +++ php-src/ext/standard/tests/file/fputcsv_variation2.phpt Mon Nov 5 17:43:20 2007 @@ -939,3 +939,4 @@ bool(false) string(0) "" Done + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fputcsv_variation3.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fputcsv_variation3.phpt diff -u php-src/ext/standard/tests/file/fputcsv_variation3.phpt:1.1.2.1 php-src/ext/standard/tests/file/fputcsv_variation3.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fputcsv_variation3.phpt:1.1.2.1 Wed Aug 8 03:53:07 2007 +++ php-src/ext/standard/tests/file/fputcsv_variation3.phpt Mon Nov 5 17:43:20 2007 @@ -939,3 +939,4 @@ bool(false) string(0) "" Done + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fputcsv_variation4.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fputcsv_variation4.phpt diff -u php-src/ext/standard/tests/file/fputcsv_variation4.phpt:1.1.2.1 php-src/ext/standard/tests/file/fputcsv_variation4.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fputcsv_variation4.phpt:1.1.2.1 Wed Aug 8 03:53:07 2007 +++ php-src/ext/standard/tests/file/fputcsv_variation4.phpt Mon Nov 5 17:43:20 2007 @@ -939,3 +939,4 @@ bool(false) string(0) "" Done + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fputcsv_variation5.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fputcsv_variation5.phpt diff -u php-src/ext/standard/tests/file/fputcsv_variation5.phpt:1.1.2.1 php-src/ext/standard/tests/file/fputcsv_variation5.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fputcsv_variation5.phpt:1.1.2.1 Wed Aug 8 03:53:07 2007 +++ php-src/ext/standard/tests/file/fputcsv_variation5.phpt Mon Nov 5 17:43:20 2007 @@ -831,3 +831,4 @@ string(%d) ""&""""""""&:&""&:,:"":&,&:,,,," " Done + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fputcsv_variation6.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fputcsv_variation6.phpt diff -u php-src/ext/standard/tests/file/fputcsv_variation6.phpt:1.1.2.1 php-src/ext/standard/tests/file/fputcsv_variation6.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fputcsv_variation6.phpt:1.1.2.1 Wed Aug 8 13:08:17 2007 +++ php-src/ext/standard/tests/file/fputcsv_variation6.phpt Mon Nov 5 17:43:20 2007 @@ -834,3 +834,4 @@ string(%d) "&""""&:&"&:,:":&,&:,,,, " Done + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fputcsv_variation7.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fputcsv_variation7.phpt diff -u php-src/ext/standard/tests/file/fputcsv_variation7.phpt:1.1.2.1 php-src/ext/standard/tests/file/fputcsv_variation7.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fputcsv_variation7.phpt:1.1.2.1 Wed Aug 8 03:53:07 2007 +++ php-src/ext/standard/tests/file/fputcsv_variation7.phpt Mon Nov 5 17:43:20 2007 @@ -834,3 +834,4 @@ string(%d) "&&&""""&&:&&"&&:,:":&&,&&:,,,,& " Done + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fputcsv_variation8.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fputcsv_variation8.phpt diff -u php-src/ext/standard/tests/file/fputcsv_variation8.phpt:1.1.2.1 php-src/ext/standard/tests/file/fputcsv_variation8.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fputcsv_variation8.phpt:1.1.2.1 Wed Aug 8 03:53:07 2007 +++ php-src/ext/standard/tests/file/fputcsv_variation8.phpt Mon Nov 5 17:43:20 2007 @@ -834,3 +834,4 @@ string(%d) "+&""""&:&"&:,:":&,&:,,,,+ " Done + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fputcsv_variation9.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fputcsv_variation9.phpt diff -u php-src/ext/standard/tests/file/fputcsv_variation9.phpt:1.1.2.1 php-src/ext/standard/tests/file/fputcsv_variation9.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fputcsv_variation9.phpt:1.1.2.1 Wed Aug 8 03:53:07 2007 +++ php-src/ext/standard/tests/file/fputcsv_variation9.phpt Mon Nov 5 17:43:20 2007 @@ -1265,3 +1265,4 @@ string(%d) "&""""&:&"&:,:":&,&:,,,, " Done + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf.phpt diff -u php-src/ext/standard/tests/file/fscanf.phpt:1.1.2.2 php-src/ext/standard/tests/file/fscanf.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/fscanf.phpt:1.1.2.2 Tue Nov 14 21:59:57 2006 +++ php-src/ext/standard/tests/file/fscanf.phpt Mon Nov 5 17:43:20 2007 @@ -11,17 +11,17 @@ file_put_contents($filename, "data"); -$fp = fopen($filename, "r"); +$fp = fopen($filename, "rt"); var_dump(fscanf($fp, "%d", $v)); var_dump($v); fclose($fp); -$fp = fopen($filename, "r"); +$fp = fopen($filename, "rt"); var_dump(fscanf($fp, "%s", $v)); var_dump($v); fclose($fp); -$fp = fopen($filename, "r"); +$fp = fopen($filename, "rt"); var_dump(fscanf($fp, "%s", $v, $v1)); var_dump($v); var_dump($v1); @@ -29,7 +29,7 @@ $v = array(); $v1 = array(); -$fp = fopen($filename, "r"); +$fp = fopen($filename, "rt"); var_dump(fscanf($fp, "", $v, $v1)); var_dump($v); var_dump($v1); @@ -37,7 +37,7 @@ $v = array(); $v1 = array(); -$fp = fopen($filename, "r"); +$fp = fopen($filename, "rt"); var_dump(fscanf($fp, "%.a", $v, $v1)); var_dump($v); var_dump($v1); @@ -46,14 +46,14 @@ @unlink($filename); touch($filename); -$fp = fopen($filename, "r"); +$fp = fopen($filename, "rt"); var_dump(fscanf($fp, "%s", $v)); var_dump($v); fclose($fp); file_put_contents($filename, "data"); -$fp = fopen($filename, "r"); +$fp = fopen($filename, "rt"); var_dump(fscanf($fp, "%s%d", $v)); @unlink($filename); http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_error.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_error.phpt diff -u php-src/ext/standard/tests/file/fscanf_error.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_error.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_error.phpt:1.1.2.1 Fri Aug 10 17:54:48 2007 +++ php-src/ext/standard/tests/file/fscanf_error.phpt Mon Nov 5 17:43:20 2007 @@ -97,3 +97,4 @@ NULL *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation1.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation1.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation1.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation1.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation1.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation1.phpt Mon Nov 5 17:43:20 2007 @@ -19,8 +19,8 @@ $file_handle = fopen($filename, "w"); if($file_handle == false) exit("Error:failed to open file $filename"); -fwrite($file_handle, "hello_world "); -fwrite($file_handle, 12345); +@fwrite($file_handle, "hello_world "); +@fwrite($file_handle, 12345); fclose($file_handle); // open file for reading @@ -47,3 +47,4 @@ } *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation10.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation10.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation10.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation10.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation10.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation10.phpt Mon Nov 5 17:43:20 2007 @@ -42,8 +42,8 @@ // writing to the file foreach($resource_types as $value) { - fprintf($file_handle, $value); - fprintf($file_handle, "\n"); + @fprintf($file_handle, $value); + @fprintf($file_handle, "\n"); } // closing the file fclose($file_handle); @@ -219,3 +219,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation11.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation11.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation11.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation11.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation11.phpt:1.1.2.1 Fri Aug 10 17:54:48 2007 +++ php-src/ext/standard/tests/file/fscanf_variation11.phpt Mon Nov 5 17:43:20 2007 @@ -47,8 +47,8 @@ // writing to the file foreach($array_types as $value) { - fprintf($file_handle, $value); - fprintf($file_handle, "\n"); + @fprintf($file_handle, $value); + @fprintf($file_handle, "\n"); } // closing the file fclose($file_handle); @@ -82,30 +82,6 @@ --EXPECTF-- *** Test fscanf(): different float format types with arrays *** -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -- iteration 1 -- array(1) { [0]=> @@ -734,3 +710,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation12.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation12.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation12.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation12.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation12.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation12.phpt Mon Nov 5 17:43:20 2007 @@ -48,8 +48,8 @@ // writing to the file foreach($strings as $string) { - fprintf($file_handle, $string); - fprintf($file_handle, "\n"); + @fprintf($file_handle, $string); + @fprintf($file_handle, "\n"); } // closing the file fclose($file_handle); @@ -943,3 +943,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation13.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation13.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation13.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation13.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation13.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation13.phpt Mon Nov 5 17:43:20 2007 @@ -34,8 +34,8 @@ // writing to the file foreach($bool_types as $value) { - fprintf($file_handle, $value); - fprintf($file_handle, "\n"); + @fprintf($file_handle, $value); + @fprintf($file_handle, "\n"); } // closing the file fclose($file_handle); @@ -243,3 +243,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation14.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation14.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation14.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation14.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation14.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation14.phpt Mon Nov 5 17:43:20 2007 @@ -1076,3 +1076,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation15.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation15.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation15.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation15.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation15.phpt:1.1.2.1 Fri Aug 10 17:54:48 2007 +++ php-src/ext/standard/tests/file/fscanf_variation15.phpt Mon Nov 5 17:43:20 2007 @@ -860,3 +860,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation16.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation16.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation16.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation16.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation16.phpt:1.1.2.1 Fri Aug 10 17:54:48 2007 +++ php-src/ext/standard/tests/file/fscanf_variation16.phpt Mon Nov 5 17:43:20 2007 @@ -218,3 +218,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation17.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation17.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation17.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation17.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation17.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation17.phpt Mon Nov 5 17:43:20 2007 @@ -709,3 +709,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation18.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation18.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation18.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation18.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation18.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation18.phpt Mon Nov 5 17:43:20 2007 @@ -1011,3 +1011,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation19.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation19.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation19.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation19.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation19.phpt:1.1.2.1 Fri Aug 10 17:54:48 2007 +++ php-src/ext/standard/tests/file/fscanf_variation19.phpt Mon Nov 5 17:43:20 2007 @@ -247,3 +247,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation2.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation2.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation2.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation2.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation2.phpt:1.1.2.1 Fri Aug 10 17:54:48 2007 +++ php-src/ext/standard/tests/file/fscanf_variation2.phpt Mon Nov 5 17:43:20 2007 @@ -48,8 +48,8 @@ // writing to the file foreach($valid_ints as $int_value) { - fprintf($file_handle, $int_value); - fprintf($file_handle, "\n"); + @fprintf($file_handle, $int_value); + @fprintf($file_handle, "\n"); } // closing the file fclose($file_handle); @@ -1005,3 +1005,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation20.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation20.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation20.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation20.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation20.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation20.phpt Mon Nov 5 17:43:20 2007 @@ -1009,3 +1009,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation21.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation21.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation21.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation21.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation21.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation21.phpt Mon Nov 5 17:43:20 2007 @@ -860,3 +860,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation22.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation22.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation22.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation22.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation22.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation22.phpt Mon Nov 5 17:43:20 2007 @@ -218,3 +218,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation23.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation23.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation23.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation23.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation23.phpt:1.1.2.1 Fri Aug 10 17:54:48 2007 +++ php-src/ext/standard/tests/file/fscanf_variation23.phpt Mon Nov 5 17:43:20 2007 @@ -709,3 +709,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation24.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation24.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation24.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation24.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation24.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation24.phpt Mon Nov 5 17:43:20 2007 @@ -991,3 +991,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation25.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation25.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation25.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation25.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation25.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation25.phpt Mon Nov 5 17:43:20 2007 @@ -291,3 +291,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation26.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation26.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation26.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation26.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation26.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation26.phpt Mon Nov 5 17:43:20 2007 @@ -353,3 +353,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation27.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation27.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation27.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation27.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation27.phpt:1.1.2.1 Fri Aug 10 17:54:48 2007 +++ php-src/ext/standard/tests/file/fscanf_variation27.phpt Mon Nov 5 17:43:20 2007 @@ -1010,3 +1010,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation28.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation28.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation28.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation28.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation28.phpt:1.1.2.1 Fri Aug 10 17:54:48 2007 +++ php-src/ext/standard/tests/file/fscanf_variation28.phpt Mon Nov 5 17:43:20 2007 @@ -41,7 +41,7 @@ ); $octal_formats = array( "%o", - "%ho", "%lo", "%Lo", + "%ho", "%lo", "%Lo", " %o", "%o ", "% o", "\t%o", "\n%o", "%4o", "%30o", "%[0-7]", "%*o" http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation29.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation29.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation29.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation29.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation29.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation29.phpt Mon Nov 5 17:43:20 2007 @@ -31,12 +31,12 @@ $dfp ); -$octal_formats = array( "%o", - "%ho", "%lo", "%Lo", - " %o", "%o ", "% o", - "\t%o", "\n%o", "%4o", - "%30o", "%[0-9]", "%*o" - ); +$octal_formats = array( "%o", + "%ho", "%lo", "%Lo", + " %o", "%o ", "% o", + "\t%o", "\n%o", "%4o", + "%30o", "%[0-7]", "%*o" + ); $counter = 1; @@ -219,3 +219,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation3.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation3.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation3.phpt:1.1.2.2 php-src/ext/standard/tests/file/fscanf_variation3.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/fscanf_variation3.phpt:1.1.2.2 Sat Aug 11 22:42:29 2007 +++ php-src/ext/standard/tests/file/fscanf_variation3.phpt Mon Nov 5 17:43:20 2007 @@ -862,3 +862,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation30.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation30.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation30.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation30.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation30.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation30.phpt Mon Nov 5 17:43:20 2007 @@ -710,3 +710,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation31.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation31.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation31.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation31.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation31.phpt:1.1.2.1 Fri Aug 10 17:54:48 2007 +++ php-src/ext/standard/tests/file/fscanf_variation31.phpt Mon Nov 5 17:43:20 2007 @@ -943,3 +943,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation32.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation32.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation32.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation32.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation32.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation32.phpt Mon Nov 5 17:43:20 2007 @@ -248,3 +248,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation33.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation33.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation33.phpt:1.1.2.2 php-src/ext/standard/tests/file/fscanf_variation33.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/fscanf_variation33.phpt:1.1.2.2 Sat Aug 11 22:18:45 2007 +++ php-src/ext/standard/tests/file/fscanf_variation33.phpt Mon Nov 5 17:43:20 2007 @@ -1016,3 +1016,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation34.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation34.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation34.phpt:1.1.2.2 php-src/ext/standard/tests/file/fscanf_variation34.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/fscanf_variation34.phpt:1.1.2.2 Sat Aug 11 22:18:45 2007 +++ php-src/ext/standard/tests/file/fscanf_variation34.phpt Mon Nov 5 17:43:20 2007 @@ -866,3 +866,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation35.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation35.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation35.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation35.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation35.phpt:1.1.2.1 Fri Aug 10 17:54:48 2007 +++ php-src/ext/standard/tests/file/fscanf_variation35.phpt Mon Nov 5 17:43:20 2007 @@ -214,3 +214,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation36.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation36.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation36.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation36.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation36.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation36.phpt Mon Nov 5 17:43:20 2007 @@ -705,3 +705,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation37.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation37.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation37.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation37.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation37.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation37.phpt Mon Nov 5 17:43:20 2007 @@ -943,3 +943,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation38.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation38.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation38.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation38.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation38.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation38.phpt Mon Nov 5 17:43:20 2007 @@ -243,3 +243,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation39.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation39.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation39.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation39.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation39.phpt:1.1.2.1 Fri Aug 10 17:54:48 2007 +++ php-src/ext/standard/tests/file/fscanf_variation39.phpt Mon Nov 5 17:43:20 2007 @@ -1005,3 +1005,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation4.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation4.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation4.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation4.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation4.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation4.phpt Mon Nov 5 17:43:20 2007 @@ -38,8 +38,8 @@ // writing to the file foreach($resource_types as $value) { - fprintf($file_handle, $value); - fprintf($file_handle, "\n"); + @fprintf($file_handle, $value); + @fprintf($file_handle, "\n"); } // closing the file fclose($file_handle); @@ -215,3 +215,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation40.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation40.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation40.phpt:1.1.2.2 php-src/ext/standard/tests/file/fscanf_variation40.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/fscanf_variation40.phpt:1.1.2.2 Sat Aug 11 22:18:45 2007 +++ php-src/ext/standard/tests/file/fscanf_variation40.phpt Mon Nov 5 17:43:20 2007 @@ -862,3 +862,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation41.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation41.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation41.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation41.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation41.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation41.phpt Mon Nov 5 17:43:20 2007 @@ -214,3 +214,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation42.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation42.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation42.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation42.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation42.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation42.phpt Mon Nov 5 17:43:20 2007 @@ -705,3 +705,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation43.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation43.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation43.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation43.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation43.phpt:1.1.2.1 Fri Aug 10 17:54:48 2007 +++ php-src/ext/standard/tests/file/fscanf_variation43.phpt Mon Nov 5 17:43:20 2007 @@ -943,3 +943,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation44.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation44.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation44.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation44.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation44.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation44.phpt Mon Nov 5 17:43:20 2007 @@ -243,3 +243,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation45.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation45.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation45.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation45.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation45.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation45.phpt Mon Nov 5 17:43:20 2007 @@ -1005,3 +1005,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation46.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation46.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation46.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation46.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation46.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation46.phpt Mon Nov 5 17:43:20 2007 @@ -856,3 +856,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation47.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation47.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation47.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation47.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation47.phpt:1.1.2.1 Fri Aug 10 17:54:48 2007 +++ php-src/ext/standard/tests/file/fscanf_variation47.phpt Mon Nov 5 17:43:20 2007 @@ -214,3 +214,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation49.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation49.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation49.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation49.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation49.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation49.phpt Mon Nov 5 17:43:20 2007 @@ -943,3 +943,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation5.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation5.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation5.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation5.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation5.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation5.phpt Mon Nov 5 17:43:20 2007 @@ -42,8 +42,8 @@ // writing to the file foreach($array_types as $value) { - fprintf($file_handle, $value); - fprintf($file_handle, "\n"); + @fprintf($file_handle, $value); + @fprintf($file_handle, "\n"); } // closing the file fclose($file_handle); @@ -77,30 +77,6 @@ --EXPECTF-- *** Test fscanf(): different integer format types with arrays *** -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -- iteration 1 -- array(1) { [0]=> @@ -729,3 +705,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation50.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation50.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation50.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation50.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation50.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation50.phpt Mon Nov 5 17:43:20 2007 @@ -243,3 +243,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation51.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation51.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation51.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation51.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation51.phpt:1.1.2.1 Fri Aug 10 17:54:48 2007 +++ php-src/ext/standard/tests/file/fscanf_variation51.phpt Mon Nov 5 17:43:20 2007 @@ -20,7 +20,7 @@ if($file_handle == false) exit("Error:failed to open file $filename"); //writing data to the file -fwrite($file_handle,"sample text\n"); +@fwrite($file_handle,"sample text\n"); //closing the file fclose($file_handle); @@ -148,3 +148,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation52.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation52.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation52.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation52.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation52.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation52.phpt Mon Nov 5 17:43:20 2007 @@ -173,3 +173,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation53.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation53.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation53.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation53.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation53.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation53.phpt Mon Nov 5 17:43:20 2007 @@ -224,3 +224,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation54.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation54.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation54.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation54.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation54.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation54.phpt Mon Nov 5 17:43:20 2007 @@ -97,4 +97,5 @@ NULL } -*** Done *** \ No newline at end of file +*** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation55.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation55.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation55.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation55.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation55.phpt:1.1.2.1 Fri Aug 10 17:54:48 2007 +++ php-src/ext/standard/tests/file/fscanf_variation55.phpt Mon Nov 5 17:43:20 2007 @@ -45,8 +45,8 @@ // writing to the file foreach($valid_data as $data) { - fprintf($file_handle, $data); - fprintf($file_handle, "\n"); + @fprintf($file_handle, $data); + @fprintf($file_handle, "\n"); } // closing the file fclose($file_handle); @@ -1682,3 +1682,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation6.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation6.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation6.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation6.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation6.phpt:1.1.2.1 Fri Aug 10 17:54:48 2007 +++ php-src/ext/standard/tests/file/fscanf_variation6.phpt Mon Nov 5 17:43:20 2007 @@ -48,8 +48,8 @@ // writing to the file foreach($strings as $string) { - fprintf($file_handle, $string); - fprintf($file_handle, "\n"); + @fprintf($file_handle, $string); + @fprintf($file_handle, "\n"); } // closing the file fclose($file_handle); @@ -943,3 +943,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation7.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation7.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation7.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation7.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation7.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation7.phpt Mon Nov 5 17:43:20 2007 @@ -34,8 +34,8 @@ // writing to the file foreach($bool_types as $value) { - fprintf($file_handle, $value); - fprintf($file_handle, "\n"); + @fprintf($file_handle, $value); + @fprintf($file_handle, "\n"); } // closing the file fclose($file_handle); @@ -243,3 +243,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation8.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation8.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation8.phpt:1.1.2.1 php-src/ext/standard/tests/file/fscanf_variation8.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/fscanf_variation8.phpt:1.1.2.1 Fri Aug 10 17:54:47 2007 +++ php-src/ext/standard/tests/file/fscanf_variation8.phpt Mon Nov 5 17:43:20 2007 @@ -66,8 +66,8 @@ // writing to the file foreach($valid_floats as $float_value) { - fprintf($file_handle, $float_value); - fprintf($file_handle, "\n"); + @fprintf($file_handle, $float_value); + @fprintf($file_handle, "\n"); } // closing the file fclose($file_handle); @@ -1611,3 +1611,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fscanf_variation9.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fscanf_variation9.phpt diff -u php-src/ext/standard/tests/file/fscanf_variation9.phpt:1.1.2.2 php-src/ext/standard/tests/file/fscanf_variation9.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/fscanf_variation9.phpt:1.1.2.2 Sat Aug 11 22:18:45 2007 +++ php-src/ext/standard/tests/file/fscanf_variation9.phpt Mon Nov 5 17:43:20 2007 @@ -1012,3 +1012,4 @@ bool(false) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fseek_ftell_rewind_basic1.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fseek_ftell_rewind_basic1.phpt diff -u php-src/ext/standard/tests/file/fseek_ftell_rewind_basic1.phpt:1.1.2.2 php-src/ext/standard/tests/file/fseek_ftell_rewind_basic1.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/fseek_ftell_rewind_basic1.phpt:1.1.2.2 Sat Jul 21 17:30:23 2007 +++ php-src/ext/standard/tests/file/fseek_ftell_rewind_basic1.phpt Mon Nov 5 17:43:20 2007 @@ -450,4 +450,4 @@ int(522) bool(false) int(512) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fseek_ftell_rewind_basic2-win32.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fseek_ftell_rewind_basic2-win32.phpt diff -u php-src/ext/standard/tests/file/fseek_ftell_rewind_basic2-win32.phpt:1.1.2.2 php-src/ext/standard/tests/file/fseek_ftell_rewind_basic2-win32.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/fseek_ftell_rewind_basic2-win32.phpt:1.1.2.2 Sat Jul 21 17:30:23 2007 +++ php-src/ext/standard/tests/file/fseek_ftell_rewind_basic2-win32.phpt Mon Nov 5 17:43:20 2007 @@ -2,10 +2,10 @@ Test fseek(), ftell() & rewind() functions : basic functionality - all w and x modes --SKIPIF-- <?php -if (substr(PHP_OS, 0, 3) != 'WIN') { - die('skip only valid for Windows'); -} +if( substr(PHP_OS, 0, 3) != "WIN" ) + die("skip.. only valid for Windows"); ?> + --FILE-- <?php /* Prototype: int fseek ( resource $handle, int $offset [, int $whence] ); @@ -49,7 +49,7 @@ $data_to_be_written=""; fill_buffer($data_to_be_written, $file_content_type, 512); //get the data of size 512 $data_to_be_written = $data_to_be_written; - fwrite($file_handle,$data_to_be_written); + fwrite($file_handle,(binary)$data_to_be_written); // set file pointer to 0 var_dump( rewind($file_handle) ); // set to begining of file @@ -461,4 +461,4 @@ int(522) bool(false) int(512) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fseek_ftell_rewind_basic2.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fseek_ftell_rewind_basic2.phpt diff -u php-src/ext/standard/tests/file/fseek_ftell_rewind_basic2.phpt:1.1.2.2 php-src/ext/standard/tests/file/fseek_ftell_rewind_basic2.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/fseek_ftell_rewind_basic2.phpt:1.1.2.2 Sat Jul 21 17:30:23 2007 +++ php-src/ext/standard/tests/file/fseek_ftell_rewind_basic2.phpt Mon Nov 5 17:43:20 2007 @@ -2,9 +2,8 @@ Test fseek(), ftell() & rewind() functions : basic functionality - all w and x modes --SKIPIF-- <?php -if (substr(PHP_OS, 0, 3) == 'WIN') { - die('skip Not valid for Windows'); -} +if( substr(PHP_OS, 0, 3) == "WIN" ) + die("skip.. Not valid for Windows"); ?> --FILE-- <?php @@ -49,7 +48,7 @@ $data_to_be_written=""; fill_buffer($data_to_be_written, $file_content_type, 512); //get the data of size 512 $data_to_be_written = $data_to_be_written; - fwrite($file_handle,$data_to_be_written); + fwrite($file_handle,(binary)$data_to_be_written); // set file pointer to 0 var_dump( rewind($file_handle) ); // set to begining of file @@ -461,4 +460,4 @@ int(522) bool(false) int(512) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fseek_ftell_rewind_variation1.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fseek_ftell_rewind_variation1.phpt diff -u php-src/ext/standard/tests/file/fseek_ftell_rewind_variation1.phpt:1.1.2.2 php-src/ext/standard/tests/file/fseek_ftell_rewind_variation1.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/fseek_ftell_rewind_variation1.phpt:1.1.2.2 Sat Jul 21 17:30:23 2007 +++ php-src/ext/standard/tests/file/fseek_ftell_rewind_variation1.phpt Mon Nov 5 17:43:20 2007 @@ -425,4 +425,4 @@ int(513) bool(false) int(512) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fseek_ftell_rewind_variation2-win32.phpt?r1=1.1.4.2&r2=1.1.4.3&diff_format=u Index: php-src/ext/standard/tests/file/fseek_ftell_rewind_variation2-win32.phpt diff -u php-src/ext/standard/tests/file/fseek_ftell_rewind_variation2-win32.phpt:1.1.4.2 php-src/ext/standard/tests/file/fseek_ftell_rewind_variation2-win32.phpt:1.1.4.3 --- php-src/ext/standard/tests/file/fseek_ftell_rewind_variation2-win32.phpt:1.1.4.2 Tue Oct 9 04:56:28 2007 +++ php-src/ext/standard/tests/file/fseek_ftell_rewind_variation2-win32.phpt Mon Nov 5 17:43:20 2007 @@ -435,370 +435,3 @@ bool(false) int(512) Done ---UEXPECTF-- -*** Testing fseek(), ftell(), rewind() : default whence & all w and x modes *** - --- File having data of type text_with_new_line -- --- File opened in mode w -- --- Testing fseek() without using argument whence -- -int(-1) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -bool(false) -int(0) -int(513) -bool(false) -int(512) --- File opened in mode wb -- --- Testing fseek() without using argument whence -- -int(-1) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -bool(false) -int(0) -int(513) -bool(false) -int(512) --- File opened in mode wt -- --- Testing fseek() without using argument whence -- -int(-1) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -bool(false) -int(0) -int(513) -bool(false) -int(569) --- File opened in mode w+ -- --- Testing fseek() without using argument whence -- -int(-1) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -bool(false) -int(0) -int(513) -bool(false) -int(512) --- File opened in mode w+b -- --- Testing fseek() without using argument whence -- -int(-1) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -bool(false) -int(0) -int(513) -bool(false) -int(512) --- File opened in mode w+t -- --- Testing fseek() without using argument whence -- -int(-1) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -bool(false) -int(0) -int(513) -bool(false) -int(569) --- File opened in mode x -- --- Testing fseek() without using argument whence -- -int(-1) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -bool(false) -int(0) -int(513) -bool(false) -int(512) --- File opened in mode xb -- --- Testing fseek() without using argument whence -- -int(-1) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -bool(false) -int(0) -int(513) -bool(false) -int(512) --- File opened in mode xt -- --- Testing fseek() without using argument whence -- -int(-1) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -bool(false) -int(0) -int(513) -bool(false) -int(569) --- File opened in mode x+ -- --- Testing fseek() without using argument whence -- -int(-1) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -bool(false) -int(0) -int(513) -bool(false) -int(512) --- File opened in mode x+b -- --- Testing fseek() without using argument whence -- -int(-1) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -bool(false) -int(0) -int(513) -bool(false) -int(512) --- File opened in mode x+t -- --- Testing fseek() without using argument whence -- -int(-1) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -bool(false) -int(0) -int(513) -bool(false) -int(569) - --- File having data of type alphanumeric -- --- File opened in mode w -- --- Testing fseek() without using argument whence -- -int(-1) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -bool(false) -int(0) -int(513) -bool(false) -int(512) --- File opened in mode wb -- --- Testing fseek() without using argument whence -- -int(-1) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -bool(false) -int(0) -int(513) -bool(false) -int(512) --- File opened in mode wt -- --- Testing fseek() without using argument whence -- -int(-1) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -bool(false) -int(0) -int(513) -bool(false) -int(512) --- File opened in mode w+ -- --- Testing fseek() without using argument whence -- -int(-1) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -bool(false) -int(0) -int(513) -bool(false) -int(512) --- File opened in mode w+b -- --- Testing fseek() without using argument whence -- -int(-1) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -bool(false) -int(0) -int(513) -bool(false) -int(512) --- File opened in mode w+t -- --- Testing fseek() without using argument whence -- -int(-1) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -bool(false) -int(0) -int(513) -bool(false) -int(512) --- File opened in mode x -- --- Testing fseek() without using argument whence -- -int(-1) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -bool(false) -int(0) -int(513) -bool(false) -int(512) --- File opened in mode xb -- --- Testing fseek() without using argument whence -- -int(-1) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -bool(false) -int(0) -int(513) -bool(false) -int(512) --- File opened in mode xt -- --- Testing fseek() without using argument whence -- -int(-1) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -bool(false) -int(0) -int(513) -bool(false) -int(512) --- File opened in mode x+ -- --- Testing fseek() without using argument whence -- -int(-1) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -bool(false) -int(0) -int(513) -bool(false) -int(512) --- File opened in mode x+b -- --- Testing fseek() without using argument whence -- -int(-1) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -bool(false) -int(0) -int(513) -bool(false) -int(512) --- File opened in mode x+t -- --- Testing fseek() without using argument whence -- -int(-1) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -bool(false) -int(0) -int(513) -bool(false) -int(512) -Done \ No newline at end of file http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fseek_ftell_rewind_variation2.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fseek_ftell_rewind_variation2.phpt diff -u php-src/ext/standard/tests/file/fseek_ftell_rewind_variation2.phpt:1.1.2.2 php-src/ext/standard/tests/file/fseek_ftell_rewind_variation2.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/fseek_ftell_rewind_variation2.phpt:1.1.2.2 Sat Jul 21 17:30:23 2007 +++ php-src/ext/standard/tests/file/fseek_ftell_rewind_variation2.phpt Mon Nov 5 17:43:21 2007 @@ -2,9 +2,8 @@ Test fseek(), ftell() & rewind() functions : usage variations - all w and x modes, default whence --SKIPIF-- <?php -if (substr(PHP_OS, 0, 3) == 'WIN') { - die('skip Not valid for Windows'); -} +if( substr(PHP_OS, 0, 3) == "WIN" ) + die("skip.. Not valid for Windows"); ?> --FILE-- <?php @@ -49,7 +48,7 @@ $data_to_be_written=""; fill_buffer($data_to_be_written, $file_content_type, 512); //get the data of size 512 $data_to_be_written = $data_to_be_written; - fwrite($file_handle,$data_to_be_written); + fwrite($file_handle,(binary)$data_to_be_written); rewind($file_handle); echo "-- Testing fseek() without using argument whence --\n"; @@ -435,4 +434,4 @@ int(513) bool(false) int(512) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fseek_ftell_rewind_variation3.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fseek_ftell_rewind_variation3.phpt diff -u php-src/ext/standard/tests/file/fseek_ftell_rewind_variation3.phpt:1.1.2.2 php-src/ext/standard/tests/file/fseek_ftell_rewind_variation3.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/fseek_ftell_rewind_variation3.phpt:1.1.2.2 Sat Jul 21 17:30:23 2007 +++ php-src/ext/standard/tests/file/fseek_ftell_rewind_variation3.phpt Mon Nov 5 17:43:21 2007 @@ -475,4 +475,4 @@ int(600) bool(false) int(512) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fseek_ftell_rewind_variation4-win32.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fseek_ftell_rewind_variation4-win32.phpt diff -u php-src/ext/standard/tests/file/fseek_ftell_rewind_variation4-win32.phpt:1.1.2.2 php-src/ext/standard/tests/file/fseek_ftell_rewind_variation4-win32.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/fseek_ftell_rewind_variation4-win32.phpt:1.1.2.2 Sat Jul 21 17:30:23 2007 +++ php-src/ext/standard/tests/file/fseek_ftell_rewind_variation4-win32.phpt Mon Nov 5 17:43:21 2007 @@ -2,9 +2,8 @@ Test fseek(), ftell() & rewind() functions : usage variations - all w and x modes, SEEK_SET --SKIPIF-- <?php -if (substr(PHP_OS, 0, 3) != 'WIN') { - die('skip only valid for Windows'); -} +if( substr(PHP_OS, 0, 3) != "WIN" ) + die("skip.. only valid for Windows"); ?> --FILE-- <?php @@ -48,7 +47,7 @@ $data_to_be_written=""; fill_buffer($data_to_be_written, $file_content_type, 512); //get the data of size 512 $data_to_be_written = $data_to_be_written; - fwrite($file_handle,$data_to_be_written); + fwrite($file_handle,(binary)$data_to_be_written); rewind($file_handle); foreach($offset as $count){ http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fseek_ftell_rewind_variation4.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fseek_ftell_rewind_variation4.phpt diff -u php-src/ext/standard/tests/file/fseek_ftell_rewind_variation4.phpt:1.1.2.2 php-src/ext/standard/tests/file/fseek_ftell_rewind_variation4.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/fseek_ftell_rewind_variation4.phpt:1.1.2.2 Sat Jul 21 17:30:23 2007 +++ php-src/ext/standard/tests/file/fseek_ftell_rewind_variation4.phpt Mon Nov 5 17:43:21 2007 @@ -2,9 +2,8 @@ Test fseek(), ftell() & rewind() functions : usage variations - all w and x modes, SEEK_SET --SKIPIF-- <?php -if (substr(PHP_OS, 0, 3) == 'WIN') { - die('skip Not valid for Windows'); -} +if( substr(PHP_OS, 0, 3) == "WIN" ) + die("skip.. Not valid for Windows"); ?> --FILE-- <?php @@ -48,7 +47,7 @@ $data_to_be_written=""; fill_buffer($data_to_be_written, $file_content_type, 512); //get the data of size 512 $data_to_be_written = $data_to_be_written; - fwrite($file_handle,$data_to_be_written); + fwrite($file_handle,(binary)$data_to_be_written); rewind($file_handle); foreach($offset as $count){ @@ -481,4 +480,4 @@ int(600) bool(false) int(512) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fseek_ftell_rewind_variation5.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fseek_ftell_rewind_variation5.phpt diff -u php-src/ext/standard/tests/file/fseek_ftell_rewind_variation5.phpt:1.1.2.2 php-src/ext/standard/tests/file/fseek_ftell_rewind_variation5.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/fseek_ftell_rewind_variation5.phpt:1.1.2.2 Sat Jul 21 17:30:23 2007 +++ php-src/ext/standard/tests/file/fseek_ftell_rewind_variation5.phpt Mon Nov 5 17:43:21 2007 @@ -471,4 +471,4 @@ int(1113) bool(false) int(512) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fseek_ftell_rewind_variation6-win32.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fseek_ftell_rewind_variation6-win32.phpt diff -u php-src/ext/standard/tests/file/fseek_ftell_rewind_variation6-win32.phpt:1.1.2.2 php-src/ext/standard/tests/file/fseek_ftell_rewind_variation6-win32.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/fseek_ftell_rewind_variation6-win32.phpt:1.1.2.2 Sat Jul 21 17:30:23 2007 +++ php-src/ext/standard/tests/file/fseek_ftell_rewind_variation6-win32.phpt Mon Nov 5 17:43:21 2007 @@ -2,9 +2,8 @@ Test fseek(), ftell() & rewind() functions : usage variations - all w & x modes, SEEK_CUR --SKIPIF-- <?php -if (substr(PHP_OS, 0, 3) != 'WIN') { - die('skip only valid for Windows'); -} +if( substr(PHP_OS, 0, 3) != "WIN" ) + die("skip.. only valid for Windows"); ?> --FILE-- <?php @@ -48,7 +47,7 @@ $data_to_be_written=""; fill_buffer($data_to_be_written, $file_content_type, 512); //get the data of size 512 $data_to_be_written = $data_to_be_written; - fwrite($file_handle,$data_to_be_written); + fwrite($file_handle,(binary)$data_to_be_written); rewind($file_handle); foreach($offset as $count){ @@ -68,7 +67,6 @@ echo "Done\n"; ?> --EXPECTF-- - *** Testing fseek(), ftell(), rewind() : whence = SEEK_CUR & all w and x modes *** -- File having data of type text_with_new_line -- @@ -482,4 +480,4 @@ int(1113) bool(false) int(512) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fseek_ftell_rewind_variation6.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fseek_ftell_rewind_variation6.phpt diff -u php-src/ext/standard/tests/file/fseek_ftell_rewind_variation6.phpt:1.1.2.2 php-src/ext/standard/tests/file/fseek_ftell_rewind_variation6.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/fseek_ftell_rewind_variation6.phpt:1.1.2.2 Sat Jul 21 17:30:23 2007 +++ php-src/ext/standard/tests/file/fseek_ftell_rewind_variation6.phpt Mon Nov 5 17:43:21 2007 @@ -2,9 +2,8 @@ Test fseek(), ftell() & rewind() functions : usage variations - all w & x modes, SEEK_CUR --SKIPIF-- <?php -if (substr(PHP_OS, 0, 3) == 'WIN') { - die('skip Not valid for Windows'); -} +if( substr(PHP_OS, 0, 3) == "WIN" ) + die("skip.. Not valid for Windows"); ?> --FILE-- <?php @@ -48,7 +47,7 @@ $data_to_be_written=""; fill_buffer($data_to_be_written, $file_content_type, 512); //get the data of size 512 $data_to_be_written = $data_to_be_written; - fwrite($file_handle,$data_to_be_written); + fwrite($file_handle,(binary)$data_to_be_written); rewind($file_handle); foreach($offset as $count){ @@ -481,4 +480,4 @@ int(1113) bool(false) int(512) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fseek_ftell_rewind_variation7.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fseek_ftell_rewind_variation7.phpt diff -u php-src/ext/standard/tests/file/fseek_ftell_rewind_variation7.phpt:1.1.2.2 php-src/ext/standard/tests/file/fseek_ftell_rewind_variation7.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/fseek_ftell_rewind_variation7.phpt:1.1.2.2 Sat Jul 21 17:30:23 2007 +++ php-src/ext/standard/tests/file/fseek_ftell_rewind_variation7.phpt Mon Nov 5 17:43:21 2007 @@ -474,4 +474,4 @@ int(1112) bool(false) int(512) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fseek_ftell_rewind_variation8-win32.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fseek_ftell_rewind_variation8-win32.phpt diff -u php-src/ext/standard/tests/file/fseek_ftell_rewind_variation8-win32.phpt:1.1.2.2 php-src/ext/standard/tests/file/fseek_ftell_rewind_variation8-win32.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/fseek_ftell_rewind_variation8-win32.phpt:1.1.2.2 Sat Jul 21 17:30:23 2007 +++ php-src/ext/standard/tests/file/fseek_ftell_rewind_variation8-win32.phpt Mon Nov 5 17:43:21 2007 @@ -2,9 +2,8 @@ Test fseek(), ftell() & rewind() functions : usage variations - all w and x modes, SEEK_END --SKIPIF-- <?php -if (substr(PHP_OS, 0, 3) != 'WIN') { - die('skip only valid for Windows'); -} +if( substr(PHP_OS, 0, 3) != "WIN" ) + die("skip.. only valid for Windows"); ?> --FILE-- <?php @@ -49,7 +48,7 @@ $data_to_be_written=""; fill_buffer($data_to_be_written, $file_content_type, 512); //get the data of size 512 $data_to_be_written = $data_to_be_written; - fwrite($file_handle,$data_to_be_written); + fwrite($file_handle,(binary)$data_to_be_written); rewind($file_handle); foreach($offset as $count){ @@ -482,4 +481,4 @@ int(1112) bool(false) int(512) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fseek_ftell_rewind_variation8.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/fseek_ftell_rewind_variation8.phpt diff -u php-src/ext/standard/tests/file/fseek_ftell_rewind_variation8.phpt:1.1.2.2 php-src/ext/standard/tests/file/fseek_ftell_rewind_variation8.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/fseek_ftell_rewind_variation8.phpt:1.1.2.2 Sat Jul 21 17:30:23 2007 +++ php-src/ext/standard/tests/file/fseek_ftell_rewind_variation8.phpt Mon Nov 5 17:43:21 2007 @@ -2,9 +2,8 @@ Test fseek(), ftell() & rewind() functions : usage variations - all w and x modes, SEEK_END --SKIPIF-- <?php -if (substr(PHP_OS, 0, 3) == 'WIN') { - die('skip Not valid for Windows'); -} +if( substr(PHP_OS, 0, 3) == "WIN" ) + die("skip.. Not valid for Windows"); ?> --FILE-- <?php @@ -49,7 +48,7 @@ $data_to_be_written=""; fill_buffer($data_to_be_written, $file_content_type, 512); //get the data of size 512 $data_to_be_written = $data_to_be_written; - fwrite($file_handle,$data_to_be_written); + fwrite($file_handle,(binary)$data_to_be_written); rewind($file_handle); foreach($offset as $count){ @@ -482,4 +481,4 @@ int(1112) bool(false) int(512) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/ftruncate_error.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/ftruncate_error.phpt diff -u php-src/ext/standard/tests/file/ftruncate_error.phpt:1.1.2.2 php-src/ext/standard/tests/file/ftruncate_error.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/ftruncate_error.phpt:1.1.2.2 Sun Jul 22 12:35:03 2007 +++ php-src/ext/standard/tests/file/ftruncate_error.phpt Mon Nov 5 17:43:21 2007 @@ -11,7 +11,7 @@ $filename = dirname(__FILE__)."/ftruncate_error.tmp"; $file_handle = fopen($filename, "w" ); -fwrite($file_handle, "Testing ftruncate error conditions \n"); +fwrite($file_handle, (binary)"Testing ftruncate error conditions \n"); fflush($file_handle); echo "\n Initial file size = ".filesize($filename)."\n"; http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/ftruncate_variation1-win32.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/ftruncate_variation1-win32.phpt diff -u php-src/ext/standard/tests/file/ftruncate_variation1-win32.phpt:1.1.2.2 php-src/ext/standard/tests/file/ftruncate_variation1-win32.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/ftruncate_variation1-win32.phpt:1.1.2.2 Sun Jul 22 12:35:03 2007 +++ php-src/ext/standard/tests/file/ftruncate_variation1-win32.phpt Mon Nov 5 17:43:21 2007 @@ -458,4 +458,4 @@ int(0) bool(false) int(0) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/ftruncate_variation2-win32.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/ftruncate_variation2-win32.phpt diff -u php-src/ext/standard/tests/file/ftruncate_variation2-win32.phpt:1.1.2.2 php-src/ext/standard/tests/file/ftruncate_variation2-win32.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/ftruncate_variation2-win32.phpt:1.1.2.2 Sun Jul 22 12:35:03 2007 +++ php-src/ext/standard/tests/file/ftruncate_variation2-win32.phpt Mon Nov 5 17:43:21 2007 @@ -459,4 +459,4 @@ int(0) bool(false) int(1024) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/ftruncate_variation3-win32.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/ftruncate_variation3-win32.phpt diff -u php-src/ext/standard/tests/file/ftruncate_variation3-win32.phpt:1.1.2.2 php-src/ext/standard/tests/file/ftruncate_variation3-win32.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/ftruncate_variation3-win32.phpt:1.1.2.2 Sun Jul 22 12:35:03 2007 +++ php-src/ext/standard/tests/file/ftruncate_variation3-win32.phpt Mon Nov 5 17:43:21 2007 @@ -458,4 +458,4 @@ int(0) bool(false) int(512) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/ftruncate_variation4-win32.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/ftruncate_variation4-win32.phpt diff -u php-src/ext/standard/tests/file/ftruncate_variation4-win32.phpt:1.1.2.2 php-src/ext/standard/tests/file/ftruncate_variation4-win32.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/ftruncate_variation4-win32.phpt:1.1.2.2 Sun Jul 22 12:35:03 2007 +++ php-src/ext/standard/tests/file/ftruncate_variation4-win32.phpt Mon Nov 5 17:43:21 2007 @@ -459,4 +459,4 @@ int(0) bool(false) int(1024) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/ftruncate_variation5-win32.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/ftruncate_variation5-win32.phpt diff -u php-src/ext/standard/tests/file/ftruncate_variation5-win32.phpt:1.1.2.2 php-src/ext/standard/tests/file/ftruncate_variation5-win32.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/ftruncate_variation5-win32.phpt:1.1.2.2 Sun Jul 22 12:35:03 2007 +++ php-src/ext/standard/tests/file/ftruncate_variation5-win32.phpt Mon Nov 5 17:43:21 2007 @@ -460,4 +460,4 @@ int(0) bool(false) int(1124) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/ftruncate_variation6-win32.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/ftruncate_variation6-win32.phpt diff -u php-src/ext/standard/tests/file/ftruncate_variation6-win32.phpt:1.1.2.2 php-src/ext/standard/tests/file/ftruncate_variation6-win32.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/ftruncate_variation6-win32.phpt:1.1.2.2 Sun Jul 22 12:35:03 2007 +++ php-src/ext/standard/tests/file/ftruncate_variation6-win32.phpt Mon Nov 5 17:43:21 2007 @@ -479,4 +479,4 @@ int(0) bool(false) int(15) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/ftruncate_variation7-win32.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/ftruncate_variation7-win32.phpt diff -u php-src/ext/standard/tests/file/ftruncate_variation7-win32.phpt:1.1.2.2 php-src/ext/standard/tests/file/ftruncate_variation7-win32.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/ftruncate_variation7-win32.phpt:1.1.2.2 Sun Jul 22 12:35:03 2007 +++ php-src/ext/standard/tests/file/ftruncate_variation7-win32.phpt Mon Nov 5 17:43:21 2007 @@ -460,4 +460,4 @@ int(1024) bool(false) int(200) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/htmlentities19.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/htmlentities19.phpt diff -u php-src/ext/standard/tests/file/htmlentities19.phpt:1.1.2.1 php-src/ext/standard/tests/file/htmlentities19.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/htmlentities19.phpt:1.1.2.1 Fri Aug 10 15:06:17 2007 +++ php-src/ext/standard/tests/file/htmlentities19.phpt Mon Nov 5 17:43:21 2007 @@ -328,3 +328,4 @@ NULL string(14) "&bdquo;&lsquo;" Done + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/htmlspecialchars.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/htmlspecialchars.phpt diff -u php-src/ext/standard/tests/file/htmlspecialchars.phpt:1.1.2.1 php-src/ext/standard/tests/file/htmlspecialchars.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/htmlspecialchars.phpt:1.1.2.1 Fri Aug 10 15:06:17 2007 +++ php-src/ext/standard/tests/file/htmlspecialchars.phpt Mon Nov 5 17:43:21 2007 @@ -328,3 +328,4 @@ NULL string(10) "&lt;br&gt;" Done + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/is_dir_error.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/is_dir_error.phpt diff -u php-src/ext/standard/tests/file/is_dir_error.phpt:1.1.2.1 php-src/ext/standard/tests/file/is_dir_error.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/is_dir_error.phpt:1.1.2.1 Mon Jun 18 19:45:53 2007 +++ php-src/ext/standard/tests/file/is_dir_error.phpt Mon Nov 5 17:43:21 2007 @@ -7,7 +7,7 @@ * Returns TRUE if the filename exists and is a regular file */ -echo "\n*** Testing is_dir() error conditions ***"; +echo "*** Testing is_dir() error conditions ***"; var_dump( is_dir() ); // Zero No. of args $dir_name = dirname(__FILE__)."/is_dir_error"; @@ -26,10 +26,10 @@ ?> --EXPECTF-- *** Testing is_dir() error conditions *** -Warning: Wrong parameter count for is_dir() in %s on line %d +Warning: is_dir() expects exactly 1 parameter, 0 given in %s on line %d NULL -Warning: Wrong parameter count for is_dir() in %s on line %d +Warning: is_dir() expects exactly 1 parameter, 2 given in %s on line %d NULL bool(false) *** Done *** http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/is_dir_variation2.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/is_dir_variation2.phpt diff -u php-src/ext/standard/tests/file/is_dir_variation2.phpt:1.1.2.2 php-src/ext/standard/tests/file/is_dir_variation2.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/is_dir_variation2.phpt:1.1.2.2 Sat Jul 21 17:31:42 2007 +++ php-src/ext/standard/tests/file/is_dir_variation2.phpt Mon Nov 5 17:43:21 2007 @@ -14,7 +14,7 @@ /* Testing is_dir() with dir, soft & hard link to dir, and with file, soft & hard link to file */ - + $file_path = dirname(__FILE__); echo "*** Testing is_dir() with dir and links to dir ***\n"; http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/is_dir_variation3.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/is_dir_variation3.phpt diff -u php-src/ext/standard/tests/file/is_dir_variation3.phpt:1.1.2.2 php-src/ext/standard/tests/file/is_dir_variation3.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/is_dir_variation3.phpt:1.1.2.2 Sat Jul 21 17:31:42 2007 +++ php-src/ext/standard/tests/file/is_dir_variation3.phpt Mon Nov 5 17:43:21 2007 @@ -1,5 +1,5 @@ --TEST-- -Test is_dir() function: usage variations - invalid arguments +Test is_dir() function: usage variations - invalid arguments --FILE-- <?php /* Prototype: bool is_dir ( string $dirname ); @@ -20,7 +20,7 @@ NULL, $dir_handle, - /* scalars */ + /* Non-existing dirnames */ 0, 1234 ); @@ -39,7 +39,9 @@ bool(false) bool(false) bool(false) -bool(false) + +Warning: is_dir() expects parameter 1 to be string, resource given in %s on line %d +NULL bool(false) bool(false) http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/is_executable_basic.phpt?r1=1.1.2.3&r2=1.1.2.3.2.1&diff_format=u Index: php-src/ext/standard/tests/file/is_executable_basic.phpt diff -u php-src/ext/standard/tests/file/is_executable_basic.phpt:1.1.2.3 php-src/ext/standard/tests/file/is_executable_basic.phpt:1.1.2.3.2.1 --- php-src/ext/standard/tests/file/is_executable_basic.phpt:1.1.2.3 Thu Sep 13 18:24:26 2007 +++ php-src/ext/standard/tests/file/is_executable_basic.phpt Mon Nov 5 17:43:21 2007 @@ -5,7 +5,6 @@ if (substr(PHP_OS, 0, 3) == 'WIN') { die('skip not for windows'); } - // Skip if being run by root (files are always readable, writeable and executable) $filename = dirname(__FILE__)."/is_readable_root_check.tmp"; $fp = fopen($filename, 'w'); http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/is_executable_error.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/is_executable_error.phpt diff -u php-src/ext/standard/tests/file/is_executable_error.phpt:1.1.2.1 php-src/ext/standard/tests/file/is_executable_error.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/is_executable_error.phpt:1.1.2.1 Tue Jun 5 09:10:50 2007 +++ php-src/ext/standard/tests/file/is_executable_error.phpt Mon Nov 5 17:43:21 2007 @@ -18,10 +18,10 @@ --EXPECTF-- *** Testing is_executable(): error conditions *** -Warning: Wrong parameter count for is_executable() in %s on line %d +Warning: is_executable() expects exactly 1 parameter, 0 given in %s on line %d NULL -Warning: Wrong parameter count for is_executable() in %s on line %d +Warning: is_executable() expects exactly 1 parameter, 2 given in %s on line %d NULL *** Testing is_exceutable() on non-existent directory *** http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/is_executable_variation1.phpt?r1=1.1.2.3&r2=1.1.2.3.2.1&diff_format=u Index: php-src/ext/standard/tests/file/is_executable_variation1.phpt diff -u php-src/ext/standard/tests/file/is_executable_variation1.phpt:1.1.2.3 php-src/ext/standard/tests/file/is_executable_variation1.phpt:1.1.2.3.2.1 --- php-src/ext/standard/tests/file/is_executable_variation1.phpt:1.1.2.3 Thu Sep 13 18:24:26 2007 +++ php-src/ext/standard/tests/file/is_executable_variation1.phpt Mon Nov 5 17:43:21 2007 @@ -5,16 +5,6 @@ if (substr(PHP_OS, 0, 3) == 'WIN') { die('skip not for windows'); } -// Skip if being run by root (files are always readable, writeable and executable) -$filename = dirname(__FILE__)."/is_executable_root_check.tmp"; -$fp = fopen($filename, 'w'); -fclose($fp); -if(fileowner($filename) == 0) { - unlink ($filename); - die('skip cannot be run as root'); -} - -unlink($filename); ?> --FILE-- <?php http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/is_executable_variation2.phpt?r1=1.1.2.3&r2=1.1.2.3.2.1&diff_format=u Index: php-src/ext/standard/tests/file/is_executable_variation2.phpt diff -u php-src/ext/standard/tests/file/is_executable_variation2.phpt:1.1.2.3 php-src/ext/standard/tests/file/is_executable_variation2.phpt:1.1.2.3.2.1 --- php-src/ext/standard/tests/file/is_executable_variation2.phpt:1.1.2.3 Thu Sep 13 18:24:26 2007 +++ php-src/ext/standard/tests/file/is_executable_variation2.phpt Mon Nov 5 17:43:21 2007 @@ -5,16 +5,6 @@ if (substr(PHP_OS, 0, 3) == 'WIN') { die('skip not for windows'); } -// Skip if being run by root (files are always readable, writeable and executable) -$filename = dirname(__FILE__)."/is_executable_root_check.tmp"; -$fp = fopen($filename, 'w'); -fclose($fp); -if(fileowner($filename) == 0) { - unlink ($filename); - die('skip cannot be run as root'); -} - -unlink($filename); ?> --FILE-- <?php http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/is_executable_variation3.phpt?r1=1.1.2.3&r2=1.1.2.3.2.1&diff_format=u Index: php-src/ext/standard/tests/file/is_executable_variation3.phpt diff -u php-src/ext/standard/tests/file/is_executable_variation3.phpt:1.1.2.3 php-src/ext/standard/tests/file/is_executable_variation3.phpt:1.1.2.3.2.1 --- php-src/ext/standard/tests/file/is_executable_variation3.phpt:1.1.2.3 Thu Sep 13 18:24:26 2007 +++ php-src/ext/standard/tests/file/is_executable_variation3.phpt Mon Nov 5 17:43:21 2007 @@ -5,16 +5,6 @@ if (substr(PHP_OS, 0, 3) == 'WIN') { die('skip not for windows'); } -// Skip if being run by root (files are always readable, writeable and executable) -$filename = dirname(__FILE__)."/is_executable_root_check.tmp"; -$fp = fopen($filename, 'w'); -fclose($fp); -if(fileowner($filename) == 0) { - unlink ($filename); - die('skip cannot be run as root'); -} - -unlink($filename); ?> --FILE-- <?php @@ -60,7 +50,7 @@ bool(false) bool(false) -Notice: Array to string conversion in %s on line %d -bool(false) +Warning: is_executable() expects parameter 1 to be string, array given in %s on line %d +NULL bool(false) Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/is_file_error.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/is_file_error.phpt diff -u php-src/ext/standard/tests/file/is_file_error.phpt:1.1.2.1 php-src/ext/standard/tests/file/is_file_error.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/is_file_error.phpt:1.1.2.1 Mon Jun 18 19:45:53 2007 +++ php-src/ext/standard/tests/file/is_file_error.phpt Mon Nov 5 17:43:21 2007 @@ -7,11 +7,11 @@ Returns TRUE if the filename exists and is a regular file */ -echo "\n*** Testing is_file() error conditions ***"; +echo "*** Testing is_file() error conditions ***"; $file_path = dirname(__FILE__); var_dump( is_file() ); // Zero No. of args -/* no.of args > expected no.of args */ +/* no of args > expected */ $file_handle = fopen($file_path."/is_file_error.tmp", "w"); var_dump( is_file( $file_path."/is_file_error.tmp", $file_path."/is_file_error1.tmp") ); @@ -30,15 +30,18 @@ <?php $file_path = dirname(__FILE__); unlink($file_path."/is_file_error.tmp"); +unlink($file_path."/is_file_error1.tmp"); ?> --EXPECTF-- *** Testing is_file() error conditions *** -Warning: Wrong parameter count for is_file() in %s on line %d +Warning: is_file() expects exactly 1 parameter, 0 given in %s on line %d NULL -Warning: Wrong parameter count for is_file() in %s on line %d +Warning: is_file() expects exactly 1 parameter, 2 given in %s on line %d NULL bool(false) -bool(false) + +Warning: is_file() expects parameter 1 to be string, resource given in %s on line %d +NULL *** Done *** http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/is_file_variation3.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/is_file_variation3.phpt diff -u php-src/ext/standard/tests/file/is_file_variation3.phpt:1.1.2.2 php-src/ext/standard/tests/file/is_file_variation3.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/is_file_variation3.phpt:1.1.2.2 Sat Jul 21 17:34:03 2007 +++ php-src/ext/standard/tests/file/is_file_variation3.phpt Mon Nov 5 17:43:21 2007 @@ -1,5 +1,5 @@ --TEST-- -Test is_file() function: usage variations - invalid filenames +Test is_file() function: usage variations - invalid arguments --FILE-- <?php /* Prototype: bool is_file ( string $filename ); @@ -21,12 +21,12 @@ FALSE, NULL, $file_handle, - + /* scalars */ 1234, 0 ); - + /* loop through to test each element the above array */ foreach( $filenames as $filename ) { var_dump( is_file($filename) ); @@ -48,7 +48,9 @@ bool(false) bool(false) bool(false) -bool(false) + +Warning: is_file() expects parameter 1 to be string, resource given in %s on line %d +NULL bool(false) bool(false) http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/is_readable_error.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/is_readable_error.phpt diff -u php-src/ext/standard/tests/file/is_readable_error.phpt:1.1.2.1 php-src/ext/standard/tests/file/is_readable_error.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/is_readable_error.phpt:1.1.2.1 Tue Jun 5 09:10:50 2007 +++ php-src/ext/standard/tests/file/is_readable_error.phpt Mon Nov 5 17:43:21 2007 @@ -18,10 +18,10 @@ --EXPECTF-- *** Testing is_readable(): error conditions *** -Warning: Wrong parameter count for is_readable() in %s on line %d +Warning: is_readable() expects exactly 1 parameter, 0 given in %s on line %d NULL -Warning: Wrong parameter count for is_readable() in %s on line %d +Warning: is_readable() expects exactly 1 parameter, 2 given in %s on line %d NULL *** Testing is_readable() on non-existent file *** http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/is_readable_variation1.phpt?r1=1.1.2.3&r2=1.1.2.3.2.1&diff_format=u Index: php-src/ext/standard/tests/file/is_readable_variation1.phpt diff -u php-src/ext/standard/tests/file/is_readable_variation1.phpt:1.1.2.3 php-src/ext/standard/tests/file/is_readable_variation1.phpt:1.1.2.3.2.1 --- php-src/ext/standard/tests/file/is_readable_variation1.phpt:1.1.2.3 Thu Sep 13 18:24:26 2007 +++ php-src/ext/standard/tests/file/is_readable_variation1.phpt Mon Nov 5 17:43:21 2007 @@ -5,16 +5,6 @@ if (substr(PHP_OS, 0, 3) == 'WIN') { die('skip not for windows'); } -// Skip if being run by root (files are always readable, writeable and executable) -$filename = dirname(__FILE__)."/is_readable_root_check.tmp"; -$fp = fopen($filename, 'w'); -fclose($fp); -if(fileowner($filename) == 0) { - unlink ($filename); - die('skip cannot be run as root'); -} - -unlink($filename); ?> --FILE-- <?php http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/is_readable_variation2.phpt?r1=1.1.2.3&r2=1.1.2.3.2.1&diff_format=u Index: php-src/ext/standard/tests/file/is_readable_variation2.phpt diff -u php-src/ext/standard/tests/file/is_readable_variation2.phpt:1.1.2.3 php-src/ext/standard/tests/file/is_readable_variation2.phpt:1.1.2.3.2.1 --- php-src/ext/standard/tests/file/is_readable_variation2.phpt:1.1.2.3 Thu Sep 13 18:24:26 2007 +++ php-src/ext/standard/tests/file/is_readable_variation2.phpt Mon Nov 5 17:43:21 2007 @@ -5,16 +5,6 @@ if (substr(PHP_OS, 0, 3) == 'WIN') { die('skip not for windows'); } -// Skip if being run by root (files are always readable, writeable and executable) -$filename = dirname(__FILE__)."/is_readable_root_check.tmp"; -$fp = fopen($filename, 'w'); -fclose($fp); -if(fileowner($filename) == 0) { - unlink ($filename); - die('skip cannot be run as root'); -} - -unlink($filename); ?> --FILE-- <?php http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/is_readable_variation3.phpt?r1=1.1.2.3&r2=1.1.2.3.2.1&diff_format=u Index: php-src/ext/standard/tests/file/is_readable_variation3.phpt diff -u php-src/ext/standard/tests/file/is_readable_variation3.phpt:1.1.2.3 php-src/ext/standard/tests/file/is_readable_variation3.phpt:1.1.2.3.2.1 --- php-src/ext/standard/tests/file/is_readable_variation3.phpt:1.1.2.3 Thu Sep 13 18:24:26 2007 +++ php-src/ext/standard/tests/file/is_readable_variation3.phpt Mon Nov 5 17:43:21 2007 @@ -5,16 +5,6 @@ if (substr(PHP_OS, 0, 3) == 'WIN') { die('skip not for windows'); } -// Skip if being run by root (files are always readable, writeable and executable) -$filename = dirname(__FILE__)."/is_readable_root_check.tmp"; -$fp = fopen($filename, 'w'); -fclose($fp); -if(fileowner($filename) == 0) { - unlink ($filename); - die('skip cannot be run as root'); -} - -unlink($filename); ?> --FILE-- <?php @@ -60,7 +50,7 @@ bool(false) bool(false) -Notice: Array to string conversion in %s on line %d -bool(false) +Warning: is_readable() expects parameter 1 to be string, array given in %s on line %d +NULL bool(false) Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/is_writable_error.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/is_writable_error.phpt diff -u php-src/ext/standard/tests/file/is_writable_error.phpt:1.1.2.1 php-src/ext/standard/tests/file/is_writable_error.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/is_writable_error.phpt:1.1.2.1 Tue Jun 5 09:10:50 2007 +++ php-src/ext/standard/tests/file/is_writable_error.phpt Mon Nov 5 17:43:21 2007 @@ -25,18 +25,18 @@ --EXPECTF-- *** Testing is_writable(): error conditions *** -Warning: Wrong parameter count for is_writable() in %s on line %d +Warning: is_writable() expects exactly 1 parameter, 0 given in %s on line %d NULL -Warning: Wrong parameter count for is_writeable() in %s on line %d +Warning: is_writeable() expects exactly 1 parameter, 0 given in %s on line %d NULL *** Testing is_writeable(): error conditions *** -Warning: Wrong parameter count for is_writable() in %s on line %d +Warning: is_writable() expects exactly 1 parameter, 2 given in %s on line %d NULL -Warning: Wrong parameter count for is_writeable() in %s on line %d +Warning: is_writeable() expects exactly 1 parameter, 2 given in %s on line %d NULL *** Testing is_writable() on non-existent file *** http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/is_writable_variation1.phpt?r1=1.1.2.3&r2=1.1.2.3.2.1&diff_format=u Index: php-src/ext/standard/tests/file/is_writable_variation1.phpt diff -u php-src/ext/standard/tests/file/is_writable_variation1.phpt:1.1.2.3 php-src/ext/standard/tests/file/is_writable_variation1.phpt:1.1.2.3.2.1 --- php-src/ext/standard/tests/file/is_writable_variation1.phpt:1.1.2.3 Thu Sep 13 18:24:26 2007 +++ php-src/ext/standard/tests/file/is_writable_variation1.phpt Mon Nov 5 17:43:21 2007 @@ -5,16 +5,6 @@ if (substr(PHP_OS, 0, 3) == 'WIN') { die('skip.. only on LINUX'); } -// Skip if being run by root (files are always readable, writeable and executable) -$filename = dirname(__FILE__)."/is_writable_root_check.tmp"; -$fp = fopen($filename, 'w'); -fclose($fp); -if(fileowner($filename) == 0) { - unlink ($filename); - die('skip cannot be run as root'); -} - -unlink($filename); ?> --FILE-- <?php @@ -110,4 +100,4 @@ -- Iteration 11 -- bool(true) bool(true) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/is_writable_variation2.phpt?r1=1.1.2.3&r2=1.1.2.3.2.1&diff_format=u Index: php-src/ext/standard/tests/file/is_writable_variation2.phpt diff -u php-src/ext/standard/tests/file/is_writable_variation2.phpt:1.1.2.3 php-src/ext/standard/tests/file/is_writable_variation2.phpt:1.1.2.3.2.1 --- php-src/ext/standard/tests/file/is_writable_variation2.phpt:1.1.2.3 Thu Sep 13 18:24:26 2007 +++ php-src/ext/standard/tests/file/is_writable_variation2.phpt Mon Nov 5 17:43:21 2007 @@ -5,16 +5,6 @@ if (substr(PHP_OS, 0, 3) == 'WIN') { die('skip.. only on LINUX'); } -// Skip if being run by root (files are always readable, writeable and executable) -$filename = dirname(__FILE__)."/is_writable_root_check.tmp"; -$fp = fopen($filename, 'w'); -fclose($fp); -if(fileowner($filename) == 0) { - unlink ($filename); - die('skip cannot be run as root'); -} - -unlink($filename); ?> --FILE-- <?php http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/is_writable_variation3.phpt?r1=1.1.2.3&r2=1.1.2.3.2.1&diff_format=u Index: php-src/ext/standard/tests/file/is_writable_variation3.phpt diff -u php-src/ext/standard/tests/file/is_writable_variation3.phpt:1.1.2.3 php-src/ext/standard/tests/file/is_writable_variation3.phpt:1.1.2.3.2.1 --- php-src/ext/standard/tests/file/is_writable_variation3.phpt:1.1.2.3 Thu Sep 13 18:24:26 2007 +++ php-src/ext/standard/tests/file/is_writable_variation3.phpt Mon Nov 5 17:43:21 2007 @@ -5,16 +5,6 @@ if (substr(PHP_OS, 0, 3) == 'WIN') { die('skip.. only on LINUX'); } -// Skip if being run by root (files are always readable, writeable and executable) -$filename = dirname(__FILE__)."/is_writable_root_check.tmp"; -$fp = fopen($filename, 'w'); -fclose($fp); -if(fileowner($filename) == 0) { - unlink ($filename); - die('skip cannot be run as root'); -} - -unlink($filename); ?> --FILE-- <?php @@ -66,11 +56,11 @@ bool(false) bool(false) -Notice: Array to string conversion in %s on line %d -bool(false) +Warning: is_writable() expects parameter 1 to be string, array given in %s on line %d +NULL -Notice: Array to string conversion in %s on line %d -bool(false) +Warning: is_writeable() expects parameter 1 to be string, array given in %s on line %d +NULL bool(false) bool(false) Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/lstat_stat_error.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/lstat_stat_error.phpt diff -u php-src/ext/standard/tests/file/lstat_stat_error.phpt:1.1.2.1 php-src/ext/standard/tests/file/lstat_stat_error.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/lstat_stat_error.phpt:1.1.2.1 Thu Jun 21 21:12:18 2007 +++ php-src/ext/standard/tests/file/lstat_stat_error.phpt Mon Nov 5 17:43:21 2007 @@ -39,10 +39,10 @@ --EXPECTF-- *** Testing lstat() for error conditions *** -Warning: Wrong parameter count for lstat() in %s on line %d +Warning: lstat() expects exactly 1 parameter, 0 given in %s on line %d NULL -Warning: Wrong parameter count for lstat() in %s on line %d +Warning: lstat() expects exactly 1 parameter, 2 given in %s on line %d NULL Warning: lstat(): Lstat failed for %s in %s on line %d @@ -51,20 +51,18 @@ Warning: lstat(): Lstat failed for 22 in %s on line %d bool(false) -Notice: Array to string conversion in %s on line %d - -Warning: lstat(): Lstat failed for Array in %s on line %d -bool(false) +Warning: lstat() expects parameter 1 to be string, array given in %s on line %d +NULL *** Testing stat() for error conditions *** -Warning: Wrong parameter count for stat() in %s on line %d +Warning: stat() expects exactly 1 parameter, 0 given in %s on line %d NULL -Warning: Wrong parameter count for stat() in %s on line %d +Warning: stat() expects exactly 1 parameter, 2 given in %s on line %d NULL -Warning: Wrong parameter count for stat() in %s on line %d +Warning: stat() expects exactly 1 parameter, 2 given in %s on line %d NULL Warning: stat(): stat failed for %s in %s on line %d @@ -76,8 +74,6 @@ Warning: stat(): stat failed for 22 in %s on line %d bool(false) -Notice: Array to string conversion in %s on line %d - -Warning: stat(): stat failed for Array in %s on line %d -bool(false) +Warning: stat() expects parameter 1 to be string, array given in %s on line %d +NULL Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/lstat_stat_variation14.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/lstat_stat_variation14.phpt diff -u php-src/ext/standard/tests/file/lstat_stat_variation14.phpt:1.1.2.1 php-src/ext/standard/tests/file/lstat_stat_variation14.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/lstat_stat_variation14.phpt:1.1.2.1 Thu Jul 26 13:38:24 2007 +++ php-src/ext/standard/tests/file/lstat_stat_variation14.phpt Mon Nov 5 17:43:21 2007 @@ -15,7 +15,7 @@ Description: Gives information about a file */ -/* test the effects of is_link() on stats of link */ +/* test the effects of is_link() on stats of hard link */ $file_path = dirname(__FILE__); require "$file_path/file.inc"; http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/lstat_stat_variation18.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/lstat_stat_variation18.phpt diff -u php-src/ext/standard/tests/file/lstat_stat_variation18.phpt:1.1.2.1 php-src/ext/standard/tests/file/lstat_stat_variation18.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/lstat_stat_variation18.phpt:1.1.2.1 Thu Jul 26 13:38:24 2007 +++ php-src/ext/standard/tests/file/lstat_stat_variation18.phpt Mon Nov 5 17:43:21 2007 @@ -36,7 +36,7 @@ } // directory name stored in an object -$dir_name = new names("$file_path/lstat_stat_variation18/"); +$dir_name = new names("$file_path/lstat_stat_variation18"); // file name stored in an object $file_name = new names("$file_path/lstat_stat_variation18.tmp"); http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/lstat_stat_variation19.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/lstat_stat_variation19.phpt diff -u php-src/ext/standard/tests/file/lstat_stat_variation19.phpt:1.1.2.1 php-src/ext/standard/tests/file/lstat_stat_variation19.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/lstat_stat_variation19.phpt:1.1.2.1 Thu Jul 26 13:38:24 2007 +++ php-src/ext/standard/tests/file/lstat_stat_variation19.phpt Mon Nov 5 17:43:21 2007 @@ -22,7 +22,8 @@ /* create temp file, link and directory */ -mkdir("$file_path/lstat_stat_variation19/"); // temp dir +@rmdir("$file_path/lstat_stat_variation19"); // ensure that dir doesn't exists +mkdir("$file_path/lstat_stat_variation19"); // temp dir $fp = fopen("$file_path/lstat_stat_variation19.tmp", "w"); // temp file fclose($fp); http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/lstat_stat_variation2.phpt?r1=1.1.2.3&r2=1.1.2.3.2.1&diff_format=u Index: php-src/ext/standard/tests/file/lstat_stat_variation2.phpt diff -u php-src/ext/standard/tests/file/lstat_stat_variation2.phpt:1.1.2.3 php-src/ext/standard/tests/file/lstat_stat_variation2.phpt:1.1.2.3.2.1 --- php-src/ext/standard/tests/file/lstat_stat_variation2.phpt:1.1.2.3 Thu Jul 26 13:38:24 2007 +++ php-src/ext/standard/tests/file/lstat_stat_variation2.phpt Mon Nov 5 17:43:21 2007 @@ -21,12 +21,13 @@ require("file.inc"); /* create temp directory */ -mkdir("$file_path/lstat_stat_variation1/"); // temp dir +@rmdir("$file_path/lstat_stat_variation2/"); //ensure that dir doesn't exists +mkdir("$file_path/lstat_stat_variation2/"); // temp dir // renaming a directory and check stat echo "*** Testing stat() for directory after being renamed ***\n"; -$old_dirname = "$file_path/lstat_stat_variation1"; -$new_dirname = "$file_path/lstat_stat_variation1a"; +$old_dirname = "$file_path/lstat_stat_variation2"; +$new_dirname = "$file_path/lstat_stat_variation2a"; $old_stat = stat($old_dirname); clearstatcache(); var_dump( rename($old_dirname, $new_dirname) ); @@ -47,7 +48,7 @@ --CLEAN-- <?php $file_path = dirname(__FILE__); -rmdir("$file_path/lstat_stat_variation1a"); +rmdir("$file_path/lstat_stat_variation2a"); ?> --EXPECTF-- *** Testing stat() for directory after being renamed *** http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/lstat_stat_variation21.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/lstat_stat_variation21.phpt diff -u php-src/ext/standard/tests/file/lstat_stat_variation21.phpt:1.1.2.1 php-src/ext/standard/tests/file/lstat_stat_variation21.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/lstat_stat_variation21.phpt:1.1.2.1 Thu Jul 26 13:38:24 2007 +++ php-src/ext/standard/tests/file/lstat_stat_variation21.phpt Mon Nov 5 17:43:21 2007 @@ -54,7 +54,6 @@ $file_path = dirname(__FILE__); unlink("$file_path/lstat_stat_variation21.tmp"); ?> - --EXPECTF-- *** Testing stat() on file by truncating it to given size *** bool(true) http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/lstat_stat_variation5.phpt?r1=1.1.2.3&r2=1.1.2.3.2.1&diff_format=u Index: php-src/ext/standard/tests/file/lstat_stat_variation5.phpt diff -u php-src/ext/standard/tests/file/lstat_stat_variation5.phpt:1.1.2.3 php-src/ext/standard/tests/file/lstat_stat_variation5.phpt:1.1.2.3.2.1 --- php-src/ext/standard/tests/file/lstat_stat_variation5.phpt:1.1.2.3 Thu Jul 26 13:38:24 2007 +++ php-src/ext/standard/tests/file/lstat_stat_variation5.phpt Mon Nov 5 17:43:21 2007 @@ -25,6 +25,7 @@ /* create temp directory */ $dir_name = "$file_path/lstat_stat_variation5"; +@rmdir($dir_name); //ensure that dir doesn't exists mkdir($dir_name); // temp dir // touch a directory and check stat, there should be difference in atime http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/lstat_stat_variation6.phpt?r1=1.1.2.5&r2=1.1.2.5.2.1&diff_format=u Index: php-src/ext/standard/tests/file/lstat_stat_variation6.phpt diff -u php-src/ext/standard/tests/file/lstat_stat_variation6.phpt:1.1.2.5 php-src/ext/standard/tests/file/lstat_stat_variation6.phpt:1.1.2.5.2.1 --- php-src/ext/standard/tests/file/lstat_stat_variation6.phpt:1.1.2.5 Fri Sep 14 09:38:13 2007 +++ php-src/ext/standard/tests/file/lstat_stat_variation6.phpt Mon Nov 5 17:43:21 2007 @@ -12,7 +12,7 @@ if( stristr($out, "noatime") ) die('skip.. atime update is disabled, hence skip the test'); } - + ?> --FILE-- <?php http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/lstat_stat_variation7.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/lstat_stat_variation7.phpt diff -u php-src/ext/standard/tests/file/lstat_stat_variation7.phpt:1.1.2.1 php-src/ext/standard/tests/file/lstat_stat_variation7.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/lstat_stat_variation7.phpt:1.1.2.1 Thu Jul 26 13:38:24 2007 +++ php-src/ext/standard/tests/file/lstat_stat_variation7.phpt Mon Nov 5 17:43:21 2007 @@ -29,7 +29,7 @@ $fh = fopen($file_name,"w"); $old_stat = stat($file_name); clearstatcache(); -fwrite($fh, "Hello World"); +fwrite($fh, (binary)"Hello World"); $new_stat = stat($file_name); // compare self stats http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/lstat_stat_variation8.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/lstat_stat_variation8.phpt diff -u php-src/ext/standard/tests/file/lstat_stat_variation8.phpt:1.1.2.1 php-src/ext/standard/tests/file/lstat_stat_variation8.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/lstat_stat_variation8.phpt:1.1.2.1 Thu Jul 26 13:38:24 2007 +++ php-src/ext/standard/tests/file/lstat_stat_variation8.phpt Mon Nov 5 17:43:21 2007 @@ -18,11 +18,10 @@ $file_path = dirname(__FILE__); require "$file_path/file.inc"; -/* test the effects on stats dir by creating file/subdir in a dir +/* test the effects on stats with creating file/subdir in a dir */ /* create temp file */ -@rmdir("$file_path/lstat_stat_variation8/"); //ensure that dir doesn't exists mkdir("$file_path/lstat_stat_variation8/"); // temp dir // creating and deleting subdir and files in the dir @@ -31,7 +30,6 @@ $old_stat = stat($dirname); clearstatcache(); sleep(2); -@rmdir("$dirname/lstat_stat_variation8_subdir"); // ensure that dir doesn't exists mkdir("$dirname/lstat_stat_variation8_subdir"); $file_handle = fopen("$dirname/lstat_stat_variation8a.tmp", "w"); fclose($file_handle); http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/lstat_stat_variation9.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/lstat_stat_variation9.phpt diff -u php-src/ext/standard/tests/file/lstat_stat_variation9.phpt:1.1.2.1 php-src/ext/standard/tests/file/lstat_stat_variation9.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/lstat_stat_variation9.phpt:1.1.2.1 Thu Jul 26 13:38:24 2007 +++ php-src/ext/standard/tests/file/lstat_stat_variation9.phpt Mon Nov 5 17:43:21 2007 @@ -18,19 +18,18 @@ $file_path = dirname(__FILE__); require "$file_path/file.inc"; -/* test the effects on stats of dir by deleting file/subdir from a dir +/* test the effects on stats by deleting file/subdir from a dir */ echo "*** Testing stat() for comparing stats after the deletion of subdir and file ***\n"; /* first create the dir/subdir and files, record the stat */ -// ensure that dir doesn't exists -@rmdir("$file_path/lstat_stat_variation9"); //delete if exists -mkdir("$file_path/lstat_stat_variation9"); // temp dir +@rmdir("$file_path/lstat_stat_variation9/"); // ensure that dir doesn't exists +mkdir("$file_path/lstat_stat_variation9/"); // temp dir // creating and deleting subdir and files in the dir $dirname = "$file_path/lstat_stat_variation9"; -@rmdir("$dirname/lstat_stat_variation9_subdir"); // delete if exists +@rmdir("$dirname/lstat_stat_variation9_subdir"); // ensure that dir doesn't exists mkdir("$dirname/lstat_stat_variation9_subdir"); $file_handle = fopen("$dirname/lstat_stat_variation9a.tmp", "w"); fclose($file_handle); http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/mkdir_rmdir_error.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/mkdir_rmdir_error.phpt diff -u php-src/ext/standard/tests/file/mkdir_rmdir_error.phpt:1.1.2.1 php-src/ext/standard/tests/file/mkdir_rmdir_error.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/mkdir_rmdir_error.phpt:1.1.2.1 Tue Jun 5 09:10:50 2007 +++ php-src/ext/standard/tests/file/mkdir_rmdir_error.phpt Mon Nov 5 17:43:21 2007 @@ -56,35 +56,3 @@ Warning: rmdir(temp): No such file or directory in %s on line %d bool(false) Done ---UEXPECTF-- -*** Testing mkdir(): error conditions *** - -Warning: mkdir() expects at least 1 parameter, 0 given in %s on line %d -bool(false) - -Warning: mkdir() expects at most 4 parameters, 5 given in %s on line %d -bool(false) - -Notice: Undefined variable: context in %s on line %d - -Warning: mkdir() expects at most 4 parameters, 5 given in %s on line %d -bool(false) - -*** Testing rmdir(): error conditions *** - -Warning: rmdir() expects at least 1 parameter, 0 given in %s on line %d -bool(false) - -Warning: rmdir() expects at most 2 parameters, 3 given in %s on line %d -bool(false) - -Notice: Undefined variable: context in %s on line %d - -Warning: rmdir() expects at most 2 parameters, 3 given in %s on line %d -bool(false) - -*** Testing rmdir() on non-existent directory *** - -Warning: rmdir(temp): No such file or directory in %s on line %d -bool(false) -Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/mkdir_rmdir_variation2.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/mkdir_rmdir_variation2.phpt diff -u php-src/ext/standard/tests/file/mkdir_rmdir_variation2.phpt:1.1.2.2 php-src/ext/standard/tests/file/mkdir_rmdir_variation2.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/mkdir_rmdir_variation2.phpt:1.1.2.2 Thu Sep 13 18:24:26 2007 +++ php-src/ext/standard/tests/file/mkdir_rmdir_variation2.phpt Mon Nov 5 17:43:21 2007 @@ -70,8 +70,6 @@ *** Testing mkdir() with miscelleneous input *** bool(true) - -Warning: mkdir(): Permission denied in %s on line %d bool(false) bool(true) Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/popen_pclose_basic-win32.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/popen_pclose_basic-win32.phpt diff -u php-src/ext/standard/tests/file/popen_pclose_basic-win32.phpt:1.1.2.1 php-src/ext/standard/tests/file/popen_pclose_basic-win32.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/popen_pclose_basic-win32.phpt:1.1.2.1 Mon Jun 11 16:14:59 2007 +++ php-src/ext/standard/tests/file/popen_pclose_basic-win32.phpt Mon Nov 5 17:43:21 2007 @@ -31,8 +31,8 @@ $file_handle = popen("sort", "w"); $newline = "\n"; foreach($arr as $str) { - fwrite($file_handle, $str); - fwrite($file_handle, $newline); + fwrite($file_handle, (binary)$str); + fwrite($file_handle, (binary)(binary)(binary)(binary)(binary)(binary)(binary)(binary)(binary)$newline); } pclose($file_handle); http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/popen_pclose_basic.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/popen_pclose_basic.phpt diff -u php-src/ext/standard/tests/file/popen_pclose_basic.phpt:1.1.2.1 php-src/ext/standard/tests/file/popen_pclose_basic.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/popen_pclose_basic.phpt:1.1.2.1 Mon Jun 11 16:14:59 2007 +++ php-src/ext/standard/tests/file/popen_pclose_basic.phpt Mon Nov 5 17:43:21 2007 @@ -47,8 +47,8 @@ $counter = 0; $newline = "\n"; foreach($arr as $str) { - fwrite($file_handle, $str); - fwrite($file_handle, $newline); + fwrite($file_handle, (binary)$str); + fwrite($file_handle, (binary)$newline); } pclose($file_handle); @@ -101,32 +101,3 @@ bool(true) --- Done --- ---UEXPECTF-- -*** Testing popen() and pclose() with different processes *** --- Testing popen(): reading from the pipe -- -popen_basic.tmp --- Testing popen(): reading from a file using 'cat' command -- -line -line of text -line -line of text -line -line of text -line -line of text -line -line of text -line -line -int(100) -*** Testing popen(): writing to the pipe *** -aaa -ddd -ggg -sss -*** Testing for return type of popen() and pclose() functions *** -bool(true) -Test String -bool(true) - ---- Done --- http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/popen_pclose_error-sunos.phpt?r1=1.1.2.3&r2=1.1.2.3.2.1&diff_format=u Index: php-src/ext/standard/tests/file/popen_pclose_error-sunos.phpt diff -u php-src/ext/standard/tests/file/popen_pclose_error-sunos.phpt:1.1.2.3 php-src/ext/standard/tests/file/popen_pclose_error-sunos.phpt:1.1.2.3.2.1 --- php-src/ext/standard/tests/file/popen_pclose_error-sunos.phpt:1.1.2.3 Thu Aug 16 16:31:25 2007 +++ php-src/ext/standard/tests/file/popen_pclose_error-sunos.phpt Mon Nov 5 17:43:21 2007 @@ -2,8 +2,8 @@ Test popen() and pclose function: error conditions --SKIPIF-- <?php -if( substr(PHP_OS, 0, 3) != 'Sun') - die("skip Only valid for Sun Solaris"); +if(substr(PHP_OS, 0, 3) != 'Sun' ) + die("skip Only Valid for Sun Solaris"); ?> --FILE-- @@ -35,10 +35,10 @@ --EXPECTF-- *** Testing for error conditions *** -Warning: Wrong parameter count for popen() in %s on line %d +Warning: popen() expects exactly 2 parameters, 0 given in %s on line %d NULL -Warning: Wrong parameter count for popen() in %s on line %d +Warning: popen() expects exactly 2 parameters, 1 given in %s on line %d NULL resource(%d) of type (stream) sh: abc.txt: not found http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/popen_pclose_error-win32.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/popen_pclose_error-win32.phpt diff -u php-src/ext/standard/tests/file/popen_pclose_error-win32.phpt:1.1.2.1 php-src/ext/standard/tests/file/popen_pclose_error-win32.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/popen_pclose_error-win32.phpt:1.1.2.1 Mon Jun 11 16:14:59 2007 +++ php-src/ext/standard/tests/file/popen_pclose_error-win32.phpt Mon Nov 5 17:43:21 2007 @@ -36,10 +36,10 @@ --EXPECTF-- *** Testing for error conditions *** -Warning: Wrong parameter count for popen() in %s on line %d +Warning: popen() expects exactly 2 parameters, 0 given in %s on line %d NULL -Warning: Wrong parameter count for popen() in %s on line %d +Warning: popen() expects exactly 2 parameters, 1 given in %s on line %d NULL resource(%d) of type (stream) 'abc.txt' is not recognized as an internal or external command, http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/popen_pclose_error.phpt?r1=1.1.2.3&r2=1.1.2.3.2.1&diff_format=u Index: php-src/ext/standard/tests/file/popen_pclose_error.phpt diff -u php-src/ext/standard/tests/file/popen_pclose_error.phpt:1.1.2.3 php-src/ext/standard/tests/file/popen_pclose_error.phpt:1.1.2.3.2.1 --- php-src/ext/standard/tests/file/popen_pclose_error.phpt:1.1.2.3 Wed Jul 11 09:13:47 2007 +++ php-src/ext/standard/tests/file/popen_pclose_error.phpt Mon Nov 5 17:43:21 2007 @@ -5,6 +5,7 @@ if(substr(PHP_OS, 0, 3) == 'WIN' || strtoupper( substr(PHP_OS, 0, 3) ) == 'SUN') die("skip Not Valid for Windows & Sun Solaris"); ?> + --FILE-- <?php /* @@ -34,10 +35,10 @@ --EXPECTF-- *** Testing for error conditions *** -Warning: Wrong parameter count for popen() in %s on line %d +Warning: popen() expects exactly 2 parameters, 0 given in %s on line %d NULL -Warning: Wrong parameter count for popen() in %s on line %d +Warning: popen() expects exactly 2 parameters, 1 given in %s on line %d NULL Warning: popen(abc.txt,rw): %s on line %d http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/readfile_basic-win32.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/readfile_basic-win32.phpt diff -u php-src/ext/standard/tests/file/readfile_basic-win32.phpt:1.1.2.1 php-src/ext/standard/tests/file/readfile_basic-win32.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/readfile_basic-win32.phpt:1.1.2.1 Fri Jul 20 18:07:02 2007 +++ php-src/ext/standard/tests/file/readfile_basic-win32.phpt Mon Nov 5 17:43:21 2007 @@ -527,4 +527,4 @@ line line int(111) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/readfile_basic.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/readfile_basic.phpt diff -u php-src/ext/standard/tests/file/readfile_basic.phpt:1.1.2.1 php-src/ext/standard/tests/file/readfile_basic.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/readfile_basic.phpt:1.1.2.1 Fri Jul 20 18:07:02 2007 +++ php-src/ext/standard/tests/file/readfile_basic.phpt Mon Nov 5 17:43:21 2007 @@ -527,4 +527,4 @@ line line int(100) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/readfile_variation2.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/readfile_variation2.phpt diff -u php-src/ext/standard/tests/file/readfile_variation2.phpt:1.1.2.1 php-src/ext/standard/tests/file/readfile_variation2.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/readfile_variation2.phpt:1.1.2.1 Fri Jul 20 18:07:02 2007 +++ php-src/ext/standard/tests/file/readfile_variation2.phpt Mon Nov 5 17:43:21 2007 @@ -84,4 +84,4 @@ line line of t int(50) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/readfile_variation3.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/readfile_variation3.phpt diff -u php-src/ext/standard/tests/file/readfile_variation3.phpt:1.1.2.1 php-src/ext/standard/tests/file/readfile_variation3.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/readfile_variation3.phpt:1.1.2.1 Fri Jul 20 18:07:02 2007 +++ php-src/ext/standard/tests/file/readfile_variation3.phpt Mon Nov 5 17:43:21 2007 @@ -60,4 +60,4 @@ line line of t int(50) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/realpath_basic-win32.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/realpath_basic-win32.phpt diff -u php-src/ext/standard/tests/file/realpath_basic-win32.phpt:1.1.2.1 php-src/ext/standard/tests/file/realpath_basic-win32.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/realpath_basic-win32.phpt:1.1.2.1 Mon Jun 11 16:14:59 2007 +++ php-src/ext/standard/tests/file/realpath_basic-win32.phpt Mon Nov 5 17:43:21 2007 @@ -33,12 +33,12 @@ "$file_path/realpath_basic//home/test//../test/./realpath_basic.tmp", "$file_path/realpath_basic/home//../././realpath_basic.tmp//", - /* filenames with invalid path */ - // checking for binary safe - "$file_path/realpath_basicx000/home/realpath_basic.tmp", + // checking for binary safe + b"$file_path/realpath_basic/home/realpath_basic.tmp", + /* filenames with invalid path */ "$file_path///realpath_basic/home//..//././test//realpath_basic.tmp", - "$file_path/realpath_basic/home/../home/../test/..realpath_basic.tmp" + "$file_path/realpath_basic/home/../home/../test/../..realpath_basic.tmp" ); $counter = 1; @@ -79,7 +79,7 @@ string(%d) "%s\realpath_basic\realpath_basic.tmp" -- Iteration 5 -- -bool(false) +string(%d) "%s\realpath_basic\home\realpath_basic.tmp" -- Iteration 6 -- bool(false) http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/realpath_error-win32.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/realpath_error-win32.phpt diff -u php-src/ext/standard/tests/file/realpath_error-win32.phpt:1.1.2.1 php-src/ext/standard/tests/file/realpath_error-win32.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/realpath_error-win32.phpt:1.1.2.1 Mon Jun 11 16:14:59 2007 +++ php-src/ext/standard/tests/file/realpath_error-win32.phpt Mon Nov 5 17:43:21 2007 @@ -21,9 +21,9 @@ --EXPECTF-- *** Testing realpath() for error conditions *** -Warning: Wrong parameter count for realpath() in %s on line %d +Warning: realpath() expects exactly 1 parameter, 0 given in %s on line %d NULL -Warning: Wrong parameter count for realpath() in %s on line %d +Warning: realpath() expects exactly 1 parameter, 2 given in %s on line %d NULL Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/realpath_variation-win32.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/realpath_variation-win32.phpt diff -u php-src/ext/standard/tests/file/realpath_variation-win32.phpt:1.1.2.1 php-src/ext/standard/tests/file/realpath_variation-win32.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/realpath_variation-win32.phpt:1.1.2.1 Mon Jun 11 16:14:59 2007 +++ php-src/ext/standard/tests/file/realpath_variation-win32.phpt Mon Nov 5 17:43:21 2007 @@ -5,7 +5,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') { die('skip only on Windows'); } -?>/ +?> --FILE-- <?php /* Prototype: string realpath ( string $path ); http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/rename_variation-win32.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/rename_variation-win32.phpt diff -u php-src/ext/standard/tests/file/rename_variation-win32.phpt:1.1.2.1 php-src/ext/standard/tests/file/rename_variation-win32.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/rename_variation-win32.phpt:1.1.2.1 Thu Jun 21 21:12:18 2007 +++ php-src/ext/standard/tests/file/rename_variation-win32.phpt Mon Nov 5 17:43:21 2007 @@ -16,43 +16,36 @@ /* creating directory */ $file_path = dirname(__FILE__); -mkdir("$file_path/rename_variation"); +mkdir("$file_path/rename_variation/"); -/* rename files across directories */ -echo "*** Testing rename() : rename files across directories ***\n"; -$src_filenames = array( +/* Testing rename() function on files */ +echo "*** Testing variations of rename() on files ***\n"; +$files_arr = array( "$file_path/rename_variation/rename_variation.tmp", - /* Testing a file trailing slash */ - "$file_path/rename_variation/rename_variation.tmp/", - /* Testing file with double slashes */ "$file_path/rename_variation//rename_variation.tmp", - "$file_path//rename_variation//rename_variation.tmp", + "$file_path/rename_variation/r*.tmp", + + /* Testing Binary safe */ + "$file_path/rename_variation/rename_variationx000.tmp" ); $counter = 1; /* loop through each $file and rename it to rename_variation2.tmp */ -foreach($src_filenames as $src_filename) { - echo "-- Iteration $counter --\n"; +foreach($files_arr as $file) { $fp = fopen("$file_path/rename_variation/rename_variation.tmp", "w"); fclose($fp); - $dest_filename = "$file_path/rename_variation2.tmp"; - var_dump( rename($src_filename, $dest_filename) ); - // ensure that file got renamed to new name - var_dump( file_exists($src_filename) ); // expecting false - var_dump( file_exists($dest_filename) ); // expecting true + echo "-- Iteration $counter --\n"; + var_dump( rename($file, "$file_path/rename_variation2.tmp") ); $counter++; - - // unlink the file - unlink($dest_filename); + unlink("$file_path/rename_variation2.tmp"); } +unlink("$file_path/rename_variation/rename_variation.tmp"); +rmdir("$file_path/rename_variation/"); // deleting temp directory -// clean the temp dir and file -rmdir("$file_path/rename_variation"); - -// rename dirs across directories -echo "\n*** Testing rename() : renaming directory across directories ***\n"; -$src_dirs = array ( +/* Testing rename() function on directories */ +echo "\n*** Testing variations of rename() on directories ***\n"; +$directories = array ( /* Testing simple directory tree */ "$file_path/rename_variation/", @@ -60,140 +53,163 @@ "$file_path/rename_variation/", /* Testing dir with double trailing slashes */ - "$file_path//rename_variation//", -); + "$file_path/rename_variation//", -$dest_dir = "$file_path/rename_variation_dir"; -// create the $dest_dir -mkdir($dest_dir); + /* Testing Binary safe */ + "$file_path/rename_variationx000/", -$counter = 1; -/* loop through each $src_dirs and rename it to $dest_dir */ -foreach($src_dirs as $src_dir) { - echo "-- Iteration $counter --\n"; + /* Testing current directory */ + ".", - // create the src dir - mkdir("$file_path/rename_variation/"); - // rename the src dir to a new dir in dest dir - var_dump( rename($src_dir, $dest_dir."/new_dir") ); - // ensure that dir was renamed - var_dump( file_exists($src_dir) ); // expecting false - var_dump( file_exists($dest_dir."/new_dir") ); // expecting true + /* Dir name as empty string */ + "", + '', - // remove the new dir - rmdir($dest_dir."/new_dir"); + /* Dir name as string with a space */ + " ", + ' ' +); +$counter = 1; +/* loop through each $dir and rename it to rename_variation1 */ +foreach($directories as $dir) { + mkdir("$file_path/rename_variation/"); + echo "-- Iteration $counter --\n"; + var_dump( rename($dir, "$file_path/rename_variation1/") ); $counter++; + rmdir("$file_path/rename_variation1/"); } +/* Testing rename() on non-existing file and directory as first argument */ +echo "\n*** Testing rename() with non-existing file and directory ***\n"; +// renaming a non-existing file to existing file +var_dump( rename(dirname(__FILE__)."/rename_variation123.tmp", __FILE__) ); +// renaming a non-existing directory to existing directory +var_dump( rename(dirname(__FILE__)."/rename_variation123/", dirname(__FILE__)) ); + /* Renaming a file and directory to numeric name */ echo "\n*** Testing rename() by renaming a file and directory to numeric name ***\n"; -$fp = fopen($file_path."/rename_variation.tmp", "w"); +$fp = fopen(dirname(__FILE__)."/rename_variation.tmp", "w"); fclose($fp); // renaming existing file to numeric name -var_dump( rename($file_path."/rename_variation.tmp", $file_path."/12345") ); -// ensure that rename worked fine -var_dump( file_exists($file_path."/rename_variation.tmp" ) ); // expecting false -var_dump( file_exists($file_path."/12345" ) ); // expecting true -// remove the file -unlink($file_path."/12345"); - -// renaming a directory to numeric name -var_dump( rename($file_path."/rename_variation_dir/", $file_path."/12345") ); -// ensure that rename worked fine -var_dump( file_exists($file_path."/rename_variation_dir" ) ); // expecting false -var_dump( file_exists($file_path."/12345" ) ); // expecting true - -// delete the file and dir -rmdir($file_path."/12345"); - -/* test rename() by trying to rename an existing file/dir to the same name - and one another */ -// create a dir +var_dump( rename(dirname(__FILE__)."/rename_variation.tmp", dirname(__FILE__)."/12345.tmp") ); +unlink(dirname(__FILE__)."/12345.tmp"); +// renaming existing directory to numeric name +var_dump( rename(dirname(__FILE__)."/rename_variation/", dirname(__FILE__)."/12345/") ); + +echo "\n*** Testing rename() with miscelleneous input ***\n"; $file_path = dirname(__FILE__); -$dirname = "$file_path/rename_variation_dir"; -mkdir($dirname); -//create a file -$filename = "$file_path/rename_variation.tmp"; -$fp = fopen($filename, "w"); +mkdir("$file_path/rename_variation"); +$fp = fopen("$file_path/rename_variation.tmp", "w"); fclose($fp); echo "\n-- Renaming file to same file name --\n"; -var_dump( rename($filename, $filename) ); +var_dump( rename("$file_path/rename_variation.tmp", "$file_path/rename_variation.tmp") ); echo "\n-- Renaming directory to same directory name --\n"; -var_dump( rename($dirname, $dirname) ); +var_dump( rename("$file_path/rename_variation/", "$file_path/rename_variation/") ); -echo "\n-- Renaming existing file to existing directory name --\n"; -var_dump( rename($filename, $dirname) ); +echo "\n-- Renaming existing file to directory name --\n"; +var_dump( rename("$file_path/rename_variation.tmp", "$file_path/rename_variation/") ); -echo "\n-- Renaming existing directory to existing file name --\n"; -$fp = fopen($filename, "w"); -fclose($fp); -var_dump( rename($dirname, $filename) ); +echo "\n-- Renaming existing directory to file name --\n"; +var_dump( rename("$file_path/rename_variation", "$file_path/rename_variation.tmp") ); echo "Done\n"; ?> --CLEAN-- <?php -$file_path = dirname(__FILE__); -unlink($file_path."/rename_variation_link.tmp"); -unlink($file_path."/rename_variation.tmp"); -rmdir($file_path."/rename_variation_dir"); +unlink(dirname(__FILE__)."/12345.tmp"); +unlink(dirname(__FILE__)."/rename_variation.tmp"); +rmdir(dirname(__FILE__)."/rename_variation.tmp/"); +rmdir(dirname(__FILE__)."/rename_variation/"); +rmdir(dirname(__FILE__)."/12345/"); ?> --EXPECTF-- -*** Testing rename() : rename files across directories *** +*** Testing variations of rename() on files *** -- Iteration 1 -- bool(true) -bool(false) -bool(true) -- Iteration 2 -- bool(true) -bool(false) -bool(true) -- Iteration 3 -- bool(true) -bool(false) -bool(true) -- Iteration 4 -- -bool(true) + +Warning: rename(%s,%s): No such file or directory in %s on line %d bool(false) -bool(true) -*** Testing rename() : renaming directory across directories *** +Warning: unlink(%s): No such file or directory in %s on line %d + +*** Testing variations of rename() on directories *** -- Iteration 1 -- bool(true) -bool(false) -bool(true) -- Iteration 2 -- bool(true) -bool(false) -bool(true) -- Iteration 3 -- bool(true) +-- Iteration 4 -- + +Warning: rename(%s,%s): No such file or directory in %s on line %d bool(false) -bool(true) -*** Testing rename() by renaming a file and directory to numeric name *** -bool(true) +Warning: rmdir(%s): No such file or directory in %s on line %d +-- Iteration 5 -- + +Warning: rename(.,%s): Permission denied in %s on line %d bool(false) -bool(true) -bool(true) + +Warning: rmdir(%s): No such file or directory in %s on line %d +-- Iteration 6 -- + +Warning: rename(,%s): Permission denied in %s on line %d bool(false) + +Warning: rmdir(%s): No such file or directory in %s on line %d +-- Iteration 7 -- + +Warning: rename(,%s): Permission denied in %s on line %d +bool(false) + +Warning: rmdir(%s): No such file or directory in %s on line %d +-- Iteration 8 -- + +Warning: rename( ,%s): File exists in %s on line %d +bool(false) + +Warning: rmdir(%s): No such file or directory in %s on line %d +-- Iteration 9 -- + +Warning: rename( ,%s): File exists in %s on line %d +bool(false) + +Warning: rmdir(%s): No such file or directory in %s on line %d + +*** Testing rename() with non-existing file and directory *** + +Warning: rename(%s,%s): No such file or directory in %s on line %d +bool(false) + +Warning: rename(%s,%s): No such file or directory in %s on line %d +bool(false) + +*** Testing rename() by renaming a file and directory to numeric name *** +bool(true) bool(true) +*** Testing rename() with miscelleneous input *** + -- Renaming file to same file name -- bool(true) -- Renaming directory to same directory name -- bool(true) --- Renaming existing file to existing directory name -- +-- Renaming existing file to directory name -- Warning: rename(%s,%s): File exists in %s on line %d bool(false) --- Renaming existing directory to existing file name -- +-- Renaming existing directory to file name -- Warning: rename(%s,%s): File exists in %s on line %d bool(false) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/stat_basic-win32.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/stat_basic-win32.phpt diff -u php-src/ext/standard/tests/file/stat_basic-win32.phpt:1.1.2.1 php-src/ext/standard/tests/file/stat_basic-win32.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/stat_basic-win32.phpt:1.1.2.1 Thu Jun 21 21:12:18 2007 +++ php-src/ext/standard/tests/file/stat_basic-win32.phpt Mon Nov 5 17:43:21 2007 @@ -3,7 +3,7 @@ --SKIPIF-- <?php if (substr(PHP_OS, 0, 3) != 'WIN') { - die('skip.. stat() only for windows'); + die('skip.. valid only for Windows'); } ?> --FILE-- @@ -189,3 +189,4 @@ bool(true) ---Done--- + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/stat_error-win32.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/stat_error-win32.phpt diff -u php-src/ext/standard/tests/file/stat_error-win32.phpt:1.1.2.1 php-src/ext/standard/tests/file/stat_error-win32.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/stat_error-win32.phpt:1.1.2.1 Thu Jun 21 21:12:18 2007 +++ php-src/ext/standard/tests/file/stat_error-win32.phpt Mon Nov 5 17:43:21 2007 @@ -31,13 +31,13 @@ --EXPECTF-- *** Testing stat() for error conditions *** -Warning: Wrong parameter count for stat() in %s on line %d +Warning: stat() expects exactly 1 parameter, 0 given in %s on line %d NULL -Warning: Wrong parameter count for stat() in %s on line %d +Warning: stat() expects exactly 1 parameter, 2 given in %s on line %d NULL -Warning: Wrong parameter count for stat() in %s on line %d +Warning: stat() expects exactly 1 parameter, 2 given in %s on line %d NULL Warning: stat(): stat failed for %s in %s on line %d @@ -49,8 +49,7 @@ Warning: stat(): stat failed for 22 in %s on line %d bool(false) -Notice: Array to string conversion in %s on line %d - -Warning: stat(): stat failed for Array in %s on line %d -bool(false) +Warning: stat() expects parameter 1 to be string, array given in %s on line %d +NULL Done + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/stat_variation1-win32.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/stat_variation1-win32.phpt diff -u php-src/ext/standard/tests/file/stat_variation1-win32.phpt:1.1.2.2 php-src/ext/standard/tests/file/stat_variation1-win32.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/stat_variation1-win32.phpt:1.1.2.2 Sun Jul 22 12:37:09 2007 +++ php-src/ext/standard/tests/file/stat_variation1-win32.phpt Mon Nov 5 17:43:21 2007 @@ -91,3 +91,4 @@ bool(true) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/stat_variation2-win32.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/stat_variation2-win32.phpt diff -u php-src/ext/standard/tests/file/stat_variation2-win32.phpt:1.1.2.2 php-src/ext/standard/tests/file/stat_variation2-win32.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/stat_variation2-win32.phpt:1.1.2.2 Sun Jul 22 12:37:09 2007 +++ php-src/ext/standard/tests/file/stat_variation2-win32.phpt Mon Nov 5 17:43:21 2007 @@ -62,3 +62,4 @@ bool(true) *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/stat_variation3-win32.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/stat_variation3-win32.phpt diff -u php-src/ext/standard/tests/file/stat_variation3-win32.phpt:1.1.2.2 php-src/ext/standard/tests/file/stat_variation3-win32.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/stat_variation3-win32.phpt:1.1.2.2 Sun Jul 22 12:37:09 2007 +++ php-src/ext/standard/tests/file/stat_variation3-win32.phpt Mon Nov 5 17:43:21 2007 @@ -57,7 +57,7 @@ var_dump(compare_stats($new_stat, $new_stat1, $all_stat_keys, "=")); clearstatcache(); -echo "Done\n"; +echo "\n*** Done ***"; ?> --CLEAN-- @@ -75,4 +75,6 @@ -- Testing stat() for comparing stats after the deletion of subdir and file -- bool(true) bool(true) -Done \ No newline at end of file + +*** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/stat_variation4-win32.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/stat_variation4-win32.phpt diff -u php-src/ext/standard/tests/file/stat_variation4-win32.phpt:1.1.2.2 php-src/ext/standard/tests/file/stat_variation4-win32.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/stat_variation4-win32.phpt:1.1.2.2 Sun Jul 22 12:37:09 2007 +++ php-src/ext/standard/tests/file/stat_variation4-win32.phpt Mon Nov 5 17:43:21 2007 @@ -66,7 +66,7 @@ // clear the stat clearstatcache(); -echo "Done\n"; +echo "\n*** Done ***"; ?> --CLEAN-- @@ -88,4 +88,6 @@ bool(true) bool(true) bool(true) -Done + +*** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/stat_variation5-win32.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/stat_variation5-win32.phpt diff -u php-src/ext/standard/tests/file/stat_variation5-win32.phpt:1.1.2.2 php-src/ext/standard/tests/file/stat_variation5-win32.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/stat_variation5-win32.phpt:1.1.2.2 Sun Jul 22 12:37:09 2007 +++ php-src/ext/standard/tests/file/stat_variation5-win32.phpt Mon Nov 5 17:43:21 2007 @@ -47,7 +47,7 @@ clearstatcache(); -echo "Done\n"; +echo "\n*** Done ***"; ?> --CLEAN-- @@ -61,4 +61,6 @@ bool(true) bool(true) bool(true) -Done + +*** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/stat_variation6-win32.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/stat_variation6-win32.phpt diff -u php-src/ext/standard/tests/file/stat_variation6-win32.phpt:1.1.2.2 php-src/ext/standard/tests/file/stat_variation6-win32.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/stat_variation6-win32.phpt:1.1.2.2 Sun Jul 22 12:37:09 2007 +++ php-src/ext/standard/tests/file/stat_variation6-win32.phpt Mon Nov 5 17:43:21 2007 @@ -65,7 +65,7 @@ clearstatcache(); // clear statement cache -echo "Done\n"; +echo "\n*** Done ***"; ?> --CLEAN-- @@ -87,4 +87,6 @@ bool(true) bool(true) bool(true) -Done + +*** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/stat_variation7-win32.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/stat_variation7-win32.phpt diff -u php-src/ext/standard/tests/file/stat_variation7-win32.phpt:1.1.2.2 php-src/ext/standard/tests/file/stat_variation7-win32.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/stat_variation7-win32.phpt:1.1.2.2 Sun Jul 22 12:37:09 2007 +++ php-src/ext/standard/tests/file/stat_variation7-win32.phpt Mon Nov 5 17:43:21 2007 @@ -295,3 +295,4 @@ } *** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/stat_variation8-win32.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/stat_variation8-win32.phpt diff -u php-src/ext/standard/tests/file/stat_variation8-win32.phpt:1.1.2.2 php-src/ext/standard/tests/file/stat_variation8-win32.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/stat_variation8-win32.phpt:1.1.2.2 Sun Jul 22 12:37:09 2007 +++ php-src/ext/standard/tests/file/stat_variation8-win32.phpt Mon Nov 5 17:43:21 2007 @@ -58,7 +58,7 @@ // clear the stat clearstatcache(); // clear previous size value in cache -echo "Done\n"; +echo "\n*** Done ***"; ?> --CLEAN-- @@ -72,4 +72,6 @@ bool(true) bool(true) bool(true) -Done + +*** Done *** + http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/stream_get_line.phpt?r1=1.1&r2=1.1.6.1&diff_format=u Index: php-src/ext/standard/tests/file/stream_get_line.phpt diff -u php-src/ext/standard/tests/file/stream_get_line.phpt:1.1 php-src/ext/standard/tests/file/stream_get_line.phpt:1.1.6.1 --- php-src/ext/standard/tests/file/stream_get_line.phpt:1.1 Tue Jul 5 19:24:06 2005 +++ php-src/ext/standard/tests/file/stream_get_line.phpt Mon Nov 5 17:43:21 2007 @@ -4,7 +4,7 @@ <?php $path = dirname(__FILE__) . '/test.html'; -file_put_contents($path, "foo<br>bar<br>foo"); +file_put_contents($path, b"foo<br>bar<br>foo"); $fp = fopen($path, "r"); while ($fp && !feof($fp)) { echo stream_get_line($fp, 0, "<br>")."\n"; http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/stream_rfc2397_001.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/stream_rfc2397_001.phpt diff -u php-src/ext/standard/tests/file/stream_rfc2397_001.phpt:1.1.2.2 php-src/ext/standard/tests/file/stream_rfc2397_001.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/stream_rfc2397_001.phpt:1.1.2.2 Sat May 13 17:58:58 2006 +++ php-src/ext/standard/tests/file/stream_rfc2397_001.phpt Mon Nov 5 17:43:21 2007 @@ -1,5 +1,5 @@ --TEST-- -Stream: RFC2397 +Stream: RFC2397 getting the data --FILE-- <?php http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/symlink_link_linkinfo_is_link_error2.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/symlink_link_linkinfo_is_link_error2.phpt diff -u php-src/ext/standard/tests/file/symlink_link_linkinfo_is_link_error2.phpt:1.1.2.2 php-src/ext/standard/tests/file/symlink_link_linkinfo_is_link_error2.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/symlink_link_linkinfo_is_link_error2.phpt:1.1.2.2 Mon Jul 16 17:55:39 2007 +++ php-src/ext/standard/tests/file/symlink_link_linkinfo_is_link_error2.phpt Mon Nov 5 17:43:21 2007 @@ -95,10 +95,10 @@ *** Testing is_link() for error conditions *** -Warning: Wrong parameter count for is_link() in %s on line %d +Warning: is_link() expects exactly 1 parameter, 0 given in %s on line %d NULL -Warning: Wrong parameter count for is_link() in %s on line %d +Warning: is_link() expects exactly 1 parameter, 2 given in %s on line %d NULL bool(false) bool(false) http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/tempnam_error.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/file/tempnam_error.phpt diff -u php-src/ext/standard/tests/file/tempnam_error.phpt:1.1.2.1 php-src/ext/standard/tests/file/tempnam_error.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/file/tempnam_error.phpt:1.1.2.1 Fri Aug 10 03:31:56 2007 +++ php-src/ext/standard/tests/file/tempnam_error.phpt Mon Nov 5 17:43:21 2007 @@ -20,27 +20,29 @@ var_dump( tempnam(NULL) ); //NULL as arg var_dump( tempnam() ); //Zero args +echo "*** Done ***\n"; ?> --EXPECTF-- *** Testing tempnam() error conditions *** -Warning: Wrong parameter count for tempnam() in %s on line %d +Warning: tempnam() expects exactly 2 parameters, 3 given in %s on line %d NULL -Warning: Wrong parameter count for tempnam() in %s on line %d +Warning: tempnam() expects exactly 2 parameters, 3 given in %s on line %d NULL -Warning: Wrong parameter count for tempnam() in %s on line %d +Warning: tempnam() expects exactly 2 parameters, 1 given in %s on line %d NULL -Warning: Wrong parameter count for tempnam() in %s on line %d +Warning: tempnam() expects exactly 2 parameters, 1 given in %s on line %d NULL -Warning: Wrong parameter count for tempnam() in %s on line %d +Warning: tempnam() expects exactly 2 parameters, 1 given in %s on line %d NULL -Warning: Wrong parameter count for tempnam() in %s on line %d +Warning: tempnam() expects exactly 2 parameters, 1 given in %s on line %d NULL -Warning: Wrong parameter count for tempnam() in %s on line %d +Warning: tempnam() expects exactly 2 parameters, 0 given in %s on line %d NULL +*** Done *** http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/tempnam_variation3.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/tempnam_variation3.phpt diff -u php-src/ext/standard/tests/file/tempnam_variation3.phpt:1.1.2.2 php-src/ext/standard/tests/file/tempnam_variation3.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/tempnam_variation3.phpt:1.1.2.2 Fri Aug 10 12:11:46 2007 +++ php-src/ext/standard/tests/file/tempnam_variation3.phpt Mon Nov 5 17:43:21 2007 @@ -78,9 +78,10 @@ File permissions are => 100600 -- Iteration 7 -- -Notice: Array to string conversion in %s on line %d -File name is => %s -File permissions are => 100600 +Warning: tempnam() expects parameter 2 to be string, array given in %s on line %d +-- File is not created -- + +Warning: unlink(): No such file or directory in %s on line %d -- Iteration 8 -- File name is => %s File permissions are => 100600 http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/tempnam_variation7.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/tempnam_variation7.phpt diff -u php-src/ext/standard/tests/file/tempnam_variation7.phpt:1.1.2.2 php-src/ext/standard/tests/file/tempnam_variation7.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/tempnam_variation7.phpt:1.1.2.2 Fri Aug 10 12:11:46 2007 +++ php-src/ext/standard/tests/file/tempnam_variation7.phpt Mon Nov 5 17:43:21 2007 @@ -3,7 +3,7 @@ --SKIPIF-- <?php if(substr(PHP_OS, 0, 3) == "WIN") - die("skip Do not run on Windows"); + die("skip DO not run on Windows"); ?> --FILE-- <?php @@ -79,9 +79,10 @@ File permissions are => 100600 -- Iteration 7 -- -Notice: Array to string conversion in %s on line %d -File name is => %s -File permissions are => 100600 +Warning: tempnam() expects parameter 1 to be string, array given in %s on line %d +-- File is not created -- + +Warning: unlink(): No such file or directory in %s on line %d -- Iteration 8 -- File name is => %s File permissions are => 100600 http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/touch.phpt?r1=1.1.2.3&r2=1.1.2.3.2.1&diff_format=u Index: php-src/ext/standard/tests/file/touch.phpt diff -u php-src/ext/standard/tests/file/touch.phpt:1.1.2.3 php-src/ext/standard/tests/file/touch.phpt:1.1.2.3.2.1 --- php-src/ext/standard/tests/file/touch.phpt:1.1.2.3 Thu Nov 16 13:49:19 2006 +++ php-src/ext/standard/tests/file/touch.phpt Mon Nov 5 17:43:21 2007 @@ -31,7 +31,7 @@ echo "Done\n"; ?> --EXPECTF-- -Warning: Wrong parameter count for touch() in %s on line %d +Warning: touch() expects at least 1 parameter, 0 given in %s on line %d NULL bool(true) int(%d) http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/umask_basic.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/umask_basic.phpt diff -u php-src/ext/standard/tests/file/umask_basic.phpt:1.1.2.2 php-src/ext/standard/tests/file/umask_basic.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/umask_basic.phpt:1.1.2.2 Sun Jul 22 12:26:18 2007 +++ php-src/ext/standard/tests/file/umask_basic.phpt Mon Nov 5 17:43:21 2007 @@ -2076,4 +2076,4 @@ int(510) int(511) -Done \ No newline at end of file +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/unlink_error-win32.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/unlink_error-win32.phpt diff -u php-src/ext/standard/tests/file/unlink_error-win32.phpt:1.1.2.2 php-src/ext/standard/tests/file/unlink_error-win32.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/unlink_error-win32.phpt:1.1.2.2 Wed Jul 18 04:59:46 2007 +++ php-src/ext/standard/tests/file/unlink_error-win32.phpt Mon Nov 5 17:43:21 2007 @@ -8,6 +8,12 @@ ?> --FILE-- <?php +if (substr(PHP_OS, 0, 3) != 'WIN') { + die('skip.. only on Windows'); +} +?> +--FILE-- +<?php /* Prototype : bool unlink ( string $filename [, resource $context] ); Description : Deletes filename */ @@ -28,7 +34,7 @@ var_dump( unlink() ); // args > expected var_dump( unlink($filename, $context, true) ); -var_dump( file_exists($filename) ); +var_dump( file_exists($filename) ); // expected: true echo "\n-- Testing unlink() on invalid arguments --\n"; // invalid arguments @@ -58,7 +64,6 @@ var_dump( unlink($dirname) ); // expected: false as unlink() does not work on dir echo "Done\n"; - ?> --CLEAN-- <?php http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/unlink_error.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/unlink_error.phpt diff -u php-src/ext/standard/tests/file/unlink_error.phpt:1.1.2.2 php-src/ext/standard/tests/file/unlink_error.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/unlink_error.phpt:1.1.2.2 Wed Jul 18 04:59:46 2007 +++ php-src/ext/standard/tests/file/unlink_error.phpt Mon Nov 5 17:43:21 2007 @@ -28,7 +28,7 @@ var_dump( unlink() ); // args > expected var_dump( unlink($filename, $context, true) ); -var_dump( file_exists($filename) ); +var_dump( file_exists($filename) ); // expected true echo "\n-- Testing unlink() on invalid arguments --\n"; // invalid arguments @@ -56,12 +56,14 @@ mkdir($dirname); // unlinking directory var_dump( unlink($dirname) ); // expected: false as unlink() does not work on dir -rmdir($dirname); -// delete temp file -unlink($filename); echo "Done\n"; ?> +--CLEAN-- +<?php +unlink(dirname(__FILE__)."/unlink_error.tmp"); +rmdir(dirname(__FILE__)."/unlink_error"); +?> --EXPECTF-- *** Testing unlink() : error conditions *** -- Testing unlink() on unexpected no. of arguments -- @@ -98,7 +100,7 @@ -- Testing unlink() on non-existent file -- -Warning: unlink(%s/non_existent_file.tmp): %s in %s on line %d +Warning: unlink(%s/non_existent_file.tmp): No such file or directory in %s on line %d bool(false) -- Testing unlink() on directory -- http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/unlink_variation1-win32.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/unlink_variation1-win32.phpt diff -u php-src/ext/standard/tests/file/unlink_variation1-win32.phpt:1.1.2.2 php-src/ext/standard/tests/file/unlink_variation1-win32.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/unlink_variation1-win32.phpt:1.1.2.2 Wed Jul 18 04:59:46 2007 +++ php-src/ext/standard/tests/file/unlink_variation1-win32.phpt Mon Nov 5 17:43:21 2007 @@ -24,7 +24,7 @@ // temp filename used here $filename = "$dirname/unlink_variation1-win32.tmp"; -echo "*** Testing unlink() on file inside a directory ***\n"; +echo "\n*** Testing unlink() on file inside a directory ***\n"; // create temp dir mkdir($dirname); // create temp file inside $dirname http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/unlink_variation1.phpt?r1=1.1.2.4&r2=1.1.2.4.2.1&diff_format=u Index: php-src/ext/standard/tests/file/unlink_variation1.phpt diff -u php-src/ext/standard/tests/file/unlink_variation1.phpt:1.1.2.4 php-src/ext/standard/tests/file/unlink_variation1.phpt:1.1.2.4.2.1 --- php-src/ext/standard/tests/file/unlink_variation1.phpt:1.1.2.4 Thu Sep 13 18:24:26 2007 +++ php-src/ext/standard/tests/file/unlink_variation1.phpt Mon Nov 5 17:43:21 2007 @@ -34,7 +34,7 @@ // temp filename used here $filename = "$dirname/unlink_variation1.tmp"; -echo "*** Testing unlink() on file inside a directory ***\n"; +echo "\n*** Testing unlink() on file inside a directory ***\n"; // create temp dir mkdir($dirname); // create temp file inside $dirname http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/unlink_variation2-win32.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/unlink_variation2-win32.phpt diff -u php-src/ext/standard/tests/file/unlink_variation2-win32.phpt:1.1.2.2 php-src/ext/standard/tests/file/unlink_variation2-win32.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/unlink_variation2-win32.phpt:1.1.2.2 Wed Jul 18 04:59:46 2007 +++ php-src/ext/standard/tests/file/unlink_variation2-win32.phpt Mon Nov 5 17:43:21 2007 @@ -18,7 +18,7 @@ echo "*** Testing unlink() on a file when file handle is open ***\n"; // temp file name used here -$filename = "$file_path/unlink_variation2.tmp"; +$filename = "$file_path/unlink_variation2-win32.tmp"; // create file $fp = fopen($filename, "w"); http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/unlink_variation4.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/file/unlink_variation4.phpt diff -u php-src/ext/standard/tests/file/unlink_variation4.phpt:1.1.2.2 php-src/ext/standard/tests/file/unlink_variation4.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/file/unlink_variation4.phpt:1.1.2.2 Wed Jul 18 04:59:46 2007 +++ php-src/ext/standard/tests/file/unlink_variation4.phpt Mon Nov 5 17:43:21 2007 @@ -6,13 +6,13 @@ Description : Deletes filename */ +/* Try deleting a file which is already deleted */ + $file_path = dirname(__FILE__); // temp file used $filename = "$file_path/unlink_variation4.tmp"; -/* Try deleting a file which is already deleted */ - echo "*** Testing unlink() on deleted file ***\n"; // create temp file $fp = fopen($filename, "w"); http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/userdirstream.phpt?r1=1.1&r2=1.1.8.1&diff_format=u Index: php-src/ext/standard/tests/file/userdirstream.phpt diff -u php-src/ext/standard/tests/file/userdirstream.phpt:1.1 php-src/ext/standard/tests/file/userdirstream.phpt:1.1.8.1 --- php-src/ext/standard/tests/file/userdirstream.phpt:1.1 Wed Mar 17 20:48:12 2004 +++ php-src/ext/standard/tests/file/userdirstream.phpt Mon Nov 5 17:43:21 2007 @@ -49,4 +49,3 @@ [3]=> string(5) "third" } - http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/userfilters.phpt?r1=1.5&r2=1.5.8.1&diff_format=u Index: php-src/ext/standard/tests/file/userfilters.phpt diff -u php-src/ext/standard/tests/file/userfilters.phpt:1.5 php-src/ext/standard/tests/file/userfilters.phpt:1.5.8.1 --- php-src/ext/standard/tests/file/userfilters.phpt:1.5 Mon May 19 15:35:06 2003 +++ php-src/ext/standard/tests/file/userfilters.phpt Mon Nov 5 17:43:21 2007 @@ -20,7 +20,7 @@ stream_filter_register('testfilter','testfilter'); -$text = "Hello There!"; +$text = b"Hello There!"; $fp = tmpfile(); fwrite($fp, $text); http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/userstreams.phpt?r1=1.11.4.1&r2=1.11.4.1.4.1&diff_format=u Index: php-src/ext/standard/tests/file/userstreams.phpt diff -u php-src/ext/standard/tests/file/userstreams.phpt:1.11.4.1 php-src/ext/standard/tests/file/userstreams.phpt:1.11.4.1.4.1 --- php-src/ext/standard/tests/file/userstreams.phpt:1.11.4.1 Mon Mar 20 22:09:11 2006 +++ php-src/ext/standard/tests/file/userstreams.phpt Mon Nov 5 17:43:21 2007 @@ -67,7 +67,7 @@ /* store the data in a regular file so that we can compare * the results */ $tf = tmpfile(); -fwrite($tf, $DATA); +fwrite($tf, (binary)$DATA); $n = ftell($tf); rewind($tf) or die("failed to rewind tmp file!"); if (ftell($tf) != 0) http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/general_functions/phpcredits.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/general_functions/phpcredits.phpt diff -u php-src/ext/standard/tests/general_functions/phpcredits.phpt:1.1.2.2 php-src/ext/standard/tests/general_functions/phpcredits.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/general_functions/phpcredits.phpt:1.1.2.2 Fri Sep 14 15:28:03 2007 +++ php-src/ext/standard/tests/general_functions/phpcredits.phpt Mon Nov 5 17:43:21 2007 @@ -22,7 +22,7 @@ Language Design & Concept %a -%wPHP %d Authors%w +%wPHP Authors%w %a %wSAPI Modules%w http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/network/bug41347.phpt?r1=1.1.2.2&r2=1.1.2.2.2.1&diff_format=u Index: php-src/ext/standard/tests/network/bug41347.phpt diff -u php-src/ext/standard/tests/network/bug41347.phpt:1.1.2.2 php-src/ext/standard/tests/network/bug41347.phpt:1.1.2.2.2.1 --- php-src/ext/standard/tests/network/bug41347.phpt:1.1.2.2 Fri Jun 15 08:13:42 2007 +++ php-src/ext/standard/tests/network/bug41347.phpt Mon Nov 5 17:43:21 2007 @@ -9,11 +9,7 @@ --FILE-- <?php var_dump(dns_check_record('')); -var_dump(dns_check_record('', '')); ?> --EXPECTF-- Warning: dns_check_record(): Host cannot be empty in %s on line %d bool(false) - -Warning: dns_check_record(): Host and type cannot be empty in %s on line %d -bool(false) http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/convert_cyr_string.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/standard/tests/strings/convert_cyr_string.phpt diff -u php-src/ext/standard/tests/strings/convert_cyr_string.phpt:1.1.2.1 php-src/ext/standard/tests/strings/convert_cyr_string.phpt:1.1.2.1.2.1 --- php-src/ext/standard/tests/strings/convert_cyr_string.phpt:1.1.2.1 Tue Feb 13 12:59:53 2007 +++ php-src/ext/standard/tests/strings/convert_cyr_string.phpt Mon Nov 5 17:43:21 2007 @@ -9,24 +9,24 @@ var_dump(convert_cyr_string("", "", "")); var_dump(convert_cyr_string(array(), array(), array())); -var_dump(convert_cyr_string("[[[[[[", "q", "m")); -var_dump(convert_cyr_string("[[[[[[", "k", "w")); -var_dump(convert_cyr_string("[[[[[[", "m", "a")); -var_dump(convert_cyr_string("[[[[[[", "d", "i")); -var_dump(convert_cyr_string("[[[[[[", "w", "k")); -var_dump(convert_cyr_string("[[[[[[", "i", "q")); -var_dump(convert_cyr_string("", "d", "i")); +var_dump(convert_cyr_string((binary)"[[[[[[", "q", "m")); +var_dump(convert_cyr_string((binary)"[[[[[[", "k", "w")); +var_dump(convert_cyr_string((binary)"[[[[[[", "m", "a")); +var_dump(convert_cyr_string((binary)"[[[[[[", "d", "i")); +var_dump(convert_cyr_string((binary)"[[[[[[", "w", "k")); +var_dump(convert_cyr_string((binary)"[[[[[[", "i", "q")); +var_dump(convert_cyr_string((binary)"", "d", "i")); echo "Done\n"; ?> --EXPECTF-- -Warning: Wrong parameter count for convert_cyr_string() in %s on line %d +Warning: convert_cyr_string() expects exactly 3 parameters, 0 given in %s on line %d NULL -Warning: Wrong parameter count for convert_cyr_string() in %s on line %d +Warning: convert_cyr_string() expects exactly 3 parameters, 1 given in %s on line %d NULL -Warning: Wrong parameter count for convert_cyr_string() in %s on line %d +Warning: convert_cyr_string() expects exactly 3 parameters, 2 given in %s on line %d NULL Warning: convert_cyr_string(): Unknown source charset: in %s on line %d @@ -34,12 +34,8 @@ Warning: convert_cyr_string(): Unknown destination charset: in %s on line %d string(0) "" -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d -string(5) "Array" +Warning: convert_cyr_string() expects parameter 1 to be string, array given in %s on line %d +NULL Warning: convert_cyr_string(): Unknown source charset: q in %s on line %d string(6) "[[[[[["
« previous php.cvs (#46984) next »