diff options
author | Gustavo André dos Santos Lopes <cataphract@php.net> | 2010-12-11 02:08:02 +0000 |
---|---|---|
committer | Gustavo André dos Santos Lopes <cataphract@php.net> | 2010-12-11 02:08:02 +0000 |
commit | 4fe751e8e4bf019d246cddc21a681ea4ba7d1590 (patch) | |
tree | d5d89c61f4defd2de02b5eb3b0f713762c0062ff /ext/standard/php_fopen_wrapper.c | |
parent | f73258223dacea27a9a5e477e52994ab4fcca145 (diff) | |
download | php-git-4fe751e8e4bf019d246cddc21a681ea4ba7d1590.tar.gz |
- Tests and small parsing correction for php://fd wrapper
Diffstat (limited to 'ext/standard/php_fopen_wrapper.c')
-rw-r--r-- | ext/standard/php_fopen_wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/php_fopen_wrapper.c b/ext/standard/php_fopen_wrapper.c index 2a7a2793c7..790c06277e 100644 --- a/ext/standard/php_fopen_wrapper.c +++ b/ext/standard/php_fopen_wrapper.c @@ -265,7 +265,7 @@ php_stream * php_stream_url_wrap_php(php_stream_wrapper *wrapper, char *path, ch start = &path[3]; fildes_ori = strtol(start, &end, 10); - if (end == start || (*end != '\0' && *end != '/')) { + if (end == start || *end != '\0') { php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "php://fd/ stream must be specified in the form php://fd/<orig fd>"); return NULL; |