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;
[EMAIL PROTECTED]($fp, chr($c), 1);
[EMAIL PROTECTED]($fp, $c, 1);
[EMAIL PROTECTED]($fp, (binary) chr($c), 1);
[EMAIL PROTECTED]($fp, (binary) $c, 1);
 
 //write width = 2^32 / 4 + 1
 $c = 0x84;
[EMAIL PROTECTED]($fp, chr($c), 1);
+fputs($fp, (binary) chr($c), 1);
 $c = 0x80;
[EMAIL PROTECTED]($fp, chr($c), 1);
[EMAIL PROTECTED]($fp, chr($c), 1);
[EMAIL PROTECTED]($fp, chr($c), 1);
+fputs($fp, (binary) chr($c), 1);
+fputs($fp, (binary) chr($c), 1);
+fputs($fp, (binary) chr($c), 1);
 $c = 0x01;
[EMAIL PROTECTED]($fp, chr($c), 1);
+fputs($fp, (binary) chr($c), 1);
 
 /*write height = 4*/
 $c = 0x04;
[EMAIL PROTECTED]($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);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to