Date: 09/28/00
- Next message: Bug Database: "[PHP-DEV] Bug #6916 Updated: blob->savefromfile doesn't work for binary files"
- Previous message: Howard Cohodas: "RE: [PHP-DEV] COM PropPut() patch - support for write-only properties"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: mb <email protected>
Operating system: Windows, OCI8
PHP version: 3.0.16
PHP Bug Type: Oracle related
Bug description: blob->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>
- Next message: Bug Database: "[PHP-DEV] Bug #6916 Updated: blob->savefromfile doesn't work for binary files"
- Previous message: Howard Cohodas: "RE: [PHP-DEV] COM PropPut() patch - support for write-only properties"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

