cvs: php-src /ext/gd/tests createfromwbmp2.phpt

From: Date: Mon, 28 May 2007 17:49:43 +0000
Subject: cvs: php-src /ext/gd/tests createfromwbmp2.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-44524@lists.php.net to get a copy of this message
pajoye Mon May 28 17:49:43 2007 UTC Modified files: /php-src/ext/gd/tests createfromwbmp2.phpt Log: - fix test, requires binary string http://cvs.php.net/viewvc.cgi/php-src/ext/gd/tests/createfromwbmp2.phpt?r1=1.3&r2=1.4&diff_format=u Index: php-src/ext/gd/tests/createfromwbmp2.phpt diff -u php-src/ext/gd/tests/createfromwbmp2.phpt:1.3 php-src/ext/gd/tests/createfromwbmp2.phpt:1.4 --- php-src/ext/gd/tests/createfromwbmp2.phpt:1.3 Tue May 22 09:45:12 2007 +++ php-src/ext/gd/tests/createfromwbmp2.phpt Mon May 28 17:49:43 2007 @@ -14,26 +14,26 @@ //write header $c = 0; -@fputs($fp, chr($c), 1); -@fputs($fp, $c, 1); +@fputs($fp, (binary) chr($c), 1); +@fputs($fp, (binary) $c, 1); //write width = 2^32 / 4 + 1 $c = 0x84; -@fputs($fp, chr($c), 1); +fputs($fp, (binary) chr($c), 1); $c = 0x80; -@fputs($fp, chr($c), 1); -@fputs($fp, chr($c), 1); -@fputs($fp, chr($c), 1); +fputs($fp, (binary) chr($c), 1); +fputs($fp, (binary) chr($c), 1); +fputs($fp, (binary) chr($c), 1); $c = 0x01; -@fputs($fp, chr($c), 1); +fputs($fp, (binary) chr($c), 1); /*write height = 4*/ $c = 0x04; -@fputs($fp, chr($c), 1); +fputs($fp, (binary) chr($c), 1); /*write some data to cause overflow*/ for ($i=0; $i<10000; $i++) { - @fwrite($fp, chr($c), 1); + fwrite($fp, (binary) chr($c), 1); } fclose($fp);

« previous php.cvs (#44524) next »