Skip to content

Commit 04d0a78

Browse files
author
Ilia Alshanetsky
committed
MFH: Fixed bug #32810 (temporary files not using plain file wrapper).
1 parent 64ddf44 commit 04d0a78

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ PHP 4 NEWS
2323
- Fixed bug #32932 (Oracle LDAP: ldap_get_entries invalid pointer). (Jani)
2424
- Fixed bug #32904 (pg_get_notify() ignores result_type parameter). (Tony)
2525
- Fixed bug #32813 (parse_url() does not handle scheme-only urls properly). (Ilia)
26+
- Fixed bug #32810 (temporary files not using plain file wrapper). (Ilia)
2627
- Fixed bug #32802 (General cookie overrides more specific cookie). (Ilia)
2728
- Fixed bugs #32800, #32830 (ext/odbc: Problems with 64bit systems). (Jani)
2829
- Fixed bug #32773 (GMP functions break when second parameter is 0). (Stas)

main/streams.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,6 +1371,7 @@ PHPAPI php_stream *_php_stream_fopen_tmpfile(int dummy STREAMS_DC TSRMLS_DC)
13711371
if (fd != -1) {
13721372
php_stream *stream = php_stream_fopen_from_fd_rel(fd, "r+b", NULL);
13731373
if (stream) {
1374+
stream->wrapper = &php_plain_files_wrapper;
13741375
php_stdio_stream_data *self = (php_stdio_stream_data*)stream->abstract;
13751376

13761377
self->temp_file_name = opened_path;

0 commit comments

Comments
 (0)