View Single Post
  #1  
Old 15th April 2024, 09:00
Ruffneck Ruffneck is offline
Senior Member
 
Join Date: Feb 2008
Posts: 71
Default Problem With hash function
hi everybody !

am upgrade to php 7.4.33 , right now i have error when am upload torrent

SQL Error: 1406 - Data too long for column 'info_hash' at row 1 Query: UPDATE torrents SET `info_hash`='34be6fc4708fa558efd1ced2df836808d8960 de2'

this is my function hash

public function hash_info () {
return isset( $this->info ) ?
sha1( self::encode( $this->info ) ) :
null;
}


p.s. binary change to varchar 40 right now is work ! pls del thread !

Last edited by Ruffneck; 15th April 2024 at 14:10.
Reply With Quote