summaryrefslogtreecommitdiff
path: root/ext/standard/streamsfuncs.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/streamsfuncs.c')
-rw-r--r--ext/standard/streamsfuncs.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c
index 83471fcb62..128004bfc2 100644
--- a/ext/standard/streamsfuncs.c
+++ b/ext/standard/streamsfuncs.c
@@ -1525,15 +1525,14 @@ PHP_FUNCTION(stream_socket_enable_crypto)
/* {{{ Determine what file will be opened by calls to fopen() with a relative path */
PHP_FUNCTION(stream_resolve_include_path)
{
- char *filename;
- size_t filename_len;
+ zend_string *filename;
zend_string *resolved_path;
ZEND_PARSE_PARAMETERS_START(1, 1)
- Z_PARAM_PATH(filename, filename_len)
+ Z_PARAM_PATH_STR(filename)
ZEND_PARSE_PARAMETERS_END();
- resolved_path = zend_resolve_path(filename, filename_len);
+ resolved_path = zend_resolve_path(filename);
if (resolved_path) {
RETURN_STR(resolved_path);