cvs: php-src /ext/standard/tests/file bug27508.phpt

From: Date: Thu, 09 Nov 2006 00:33:54 +0000
Subject: cvs: php-src /ext/standard/tests/file bug27508.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-41406@lists.php.net to get a copy of this message
tony2001 Thu Nov 9 00:33:54 2006 UTC Modified files: /php-src/ext/standard/tests/file bug27508.phpt Log: fix test and prevent endless loop http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/bug27508.phpt?r1=1.2&r2=1.3&diff_format=u Index: php-src/ext/standard/tests/file/bug27508.phpt diff -u php-src/ext/standard/tests/file/bug27508.phpt:1.2 php-src/ext/standard/tests/file/bug27508.phpt:1.3 --- php-src/ext/standard/tests/file/bug27508.phpt:1.2 Thu Apr 6 19:51:36 2006 +++ php-src/ext/standard/tests/file/bug27508.phpt Thu Nov 9 00:33:54 2006 @@ -30,6 +30,9 @@ function stream_eof() { + if (!$this->fp) { + return true; + } return feof($this->fp); } @@ -44,7 +47,7 @@ $tn = tempnam('/tmp', 'foo'); -$fp = fopen("myFile://" . urlencode($tn), "w+"); +$fp = fopen("myFile://" . urlencode((binary)$tn), "w+"); fwrite($fp, b"line1\n"); fwrite($fp, b"line2\n");

« previous php.cvs (#41406) next »