Bug #3587: BLOB savefile method problem with binary files

From: Date: Wed, 23 Feb 2000 15:21:33 +0000
Subject: Bug #3587: BLOB savefile method problem with binary files
Groups: php.dev 
Request: Send a blank email to php-dev+get-15851@lists.php.net to get a copy of this message
From: nick@tf.kharkov.net Operating system: NT SERVER 4.0 PHP version: 3.0.14 PHP Bug Type: Oracle related Bug description: BLOB savefile method problem with binary files When I tried to upload binary data (such as pictures) into BLOB fields using "savefile" method of the BLOB descriptor I saw that this files are uploaded partially without any error messages. In the function "oci8_savedescfile" in the line: if ((fp = open(filename, O_RDONLY)) == -1) { php3_error(E_WARNING, "Can't open file %s", filename); O_BINARY flag missed in order to proper reading of binary files

« previous php.dev (#15851) next »