[PHP-DEV] Bug #6916: blob->savefromfile doesn't work for binary files From: mb <email protected>
Date: 09/28/00

From: mb <email protected>
Operating system: Windows, OCI8
PHP version: 3.0.16
PHP Bug Type: Oracle related
Bug description: blob-&gt;savefromfile doesn't work for binary files

In line 2708 the input file for the blob isn't opened in binary mode, so upload of binary data like images doesn't work on MS Windows platforms. Possibly should check if clob or blob and set O_BINARY accordingly.

Modified line:
                if ((fp = open(filename, O_RDONLY | O_BINARY)) == -1) {

works OK.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>