cvs: php-src(PHP_5_0) /ext/standard/tests/filters bug22538.phpt

From: Date: Tue, 23 Nov 2004 17:22:13 +0000
Subject: cvs: php-src(PHP_5_0) /ext/standard/tests/filters bug22538.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-29319@lists.php.net to get a copy of this message
dmitry Tue Nov 23 12:22:13 2004 EDT Modified files: (Branch: PHP_5_0) /php-src/ext/standard/tests/filters bug22538.phpt Log: Test was fixed. http://cvs.php.net/diff.php/php-src/ext/standard/tests/filters/bug22538.phpt?r1=1.2&r2=1.2.2.1&ty=u Index: php-src/ext/standard/tests/filters/bug22538.phpt diff -u php-src/ext/standard/tests/filters/bug22538.phpt:1.2 php-src/ext/standard/tests/filters/bug22538.phpt:1.2.2.1 --- php-src/ext/standard/tests/filters/bug22538.phpt:1.2 Tue Apr 1 14:47:33 2003 +++ php-src/ext/standard/tests/filters/bug22538.phpt Tue Nov 23 12:22:13 2004 @@ -15,7 +15,7 @@ $path2 = sprintf("%s/%s%db", dirname(__FILE__), uniqid(), time()); } while ($path1 == $path2); -$fp = fopen($path1, "w"); +$fp = fopen($path1, "w") or die("Can not open $path1\n"); $str = "abcdefghijklmnopqrstuvwxyz\n"; $str_len = strlen($str); $cnt = $size; @@ -24,8 +24,8 @@ } $cnt = $size - ($str_len + $cnt); fclose($fp); -$fin = fopen($path1, "r"); -$fout = fopen($path2, "w"); +$fin = fopen($path1, "r") or die("Can not open $path1\n");; +$fout = fopen($path2, "w") or die("Can not open $path2\n");; stream_filter_append($fout, "string.rot13"); my_stream_copy_to_stream($fin, $fout); fclose($fout);

« previous php.cvs (#29319) next »