helly           Wed Aug 11 20:38:12 2004 EDT

  Modified files:              (Branch: PHP_5_0)
    /php-src/ext/dba/tests      dba_cdb_make.phpt 
  Log:
  MFH: Change to use md5_file()
  
http://cvs.php.net/diff.php/php-src/ext/dba/tests/dba_cdb_make.phpt?r1=1.3&r2=1.3.2.1&ty=u
Index: php-src/ext/dba/tests/dba_cdb_make.phpt
diff -u php-src/ext/dba/tests/dba_cdb_make.phpt:1.3 
php-src/ext/dba/tests/dba_cdb_make.phpt:1.3.2.1
--- php-src/ext/dba/tests/dba_cdb_make.phpt:1.3 Tue Mar  4 15:31:42 2003
+++ php-src/ext/dba/tests/dba_cdb_make.phpt     Wed Aug 11 20:38:12 2004
@@ -14,7 +14,7 @@
        require_once('test.inc');
        echo "database handler: $handler\n";
        // print md5 checksum of test.cdb which is generated by cdb_make program
-       var_dump(md5(implode('',file(dirname(__FILE__).'/test.cdb'))));
+       var_dump(md5_file(dirname(__FILE__).'/test.cdb'));
        if (($db_make=dba_open($db_file, "n", $handler))!==FALSE) {
                dba_insert("1", "1", $db_make);
                dba_insert("2", "2", $db_make);
@@ -26,7 +26,7 @@
 //             dba_replace cdb_make doesn't know replace
                dba_close($db_make);
                // write md5 checksum of generated database file
-               var_dump(md5(implode('',file($db_file))));
+               var_dump(md5_file($db_file));
                // no need to test created database: this is done by dba_cdb_read.phpt
        } else {
                echo "Error creating database\n";
@@ -34,5 +34,5 @@
 ?>
 --EXPECT--
 database handler: cdb_make
-string(32) "723d19f39c1b15b3b455dd64323148d1"
-string(32) "723d19f39c1b15b3b455dd64323148d1"
\ No newline at end of file
+string(32) "12fc5ba2b9dcfef2480e5324eeb5f3e5"
+string(32) "12fc5ba2b9dcfef2480e5324eeb5f3e5"
\ No newline at end of file

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

Reply via email to