projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- need php_stream_open_wrapper_*ex* to pass a stream context
[m6w6/ext-http]
/
http_functions.c
diff --git
a/http_functions.c
b/http_functions.c
index b1e2256c6ab72dc129a2454ee39786c7776d10e9..8ce961fdac10ccdf666076eb2ad5bd7cda2db923 100644
(file)
--- a/
http_functions.c
+++ b/
http_functions.c
@@
-1502,7
+1502,7
@@
PHP_FUNCTION(http_put_file)
RETURN_FALSE;
}
RETURN_FALSE;
}
- if (!(stream = php_stream_open_wrapper
(file, "rb", REPORT_ERRORS|ENFORCE_SAFE_MODE
, HTTP_DEFAULT_STREAM_CONTEXT))) {
+ if (!(stream = php_stream_open_wrapper
_ex(file, "rb", REPORT_ERRORS|ENFORCE_SAFE_MODE, NULL
, HTTP_DEFAULT_STREAM_CONTEXT))) {
RETURN_FALSE;
}
if (php_stream_stat(stream, &ssb)) {
RETURN_FALSE;
}
if (php_stream_stat(stream, &ssb)) {