Lines Matching refs:dirp
69 …if ((dirp = (php_stream *)zend_fetch_resource(Z_RES_P(id), "Directory", php_file_le_stream())) == …
77 …if ((dirp = (php_stream *)zend_fetch_resource(DIRG(default_dir), "Directory", php_file_le_stream()…
87 …if ((dirp = (php_stream *)zend_fetch_resource_ex(tmp, "Directory", php_file_le_stream())) == NULL)…
201 php_stream *dirp; in _php_do_opendir() local
211 dirp = php_stream_opendir(dirname, REPORT_ERRORS, context); in _php_do_opendir()
213 if (dirp == NULL) { in _php_do_opendir()
217 dirp->flags |= PHP_STREAM_FLAG_NO_FCLOSE; in _php_do_opendir()
219 php_set_default_dir(dirp->res); in _php_do_opendir()
224 add_property_resource(return_value, "handle", dirp->res); in _php_do_opendir()
225 php_stream_auto_cleanup(dirp); /* so we don't get warnings under debug */ in _php_do_opendir()
227 php_stream_to_zval(dirp, return_value); in _php_do_opendir()
250 php_stream *dirp; in PHP_FUNCTION() local
255 if (!(dirp->flags & PHP_STREAM_FLAG_IS_DIR)) { in PHP_FUNCTION()
260 res = dirp->res; in PHP_FUNCTION()
261 zend_list_close(dirp->res); in PHP_FUNCTION()
361 php_stream *dirp; in PHP_FUNCTION() local
365 if (!(dirp->flags & PHP_STREAM_FLAG_IS_DIR)) { in PHP_FUNCTION()
370 php_stream_rewinddir(dirp); in PHP_FUNCTION()
378 php_stream *dirp; in PHP_FUNCTION() local
383 if (!(dirp->flags & PHP_STREAM_FLAG_IS_DIR)) { in PHP_FUNCTION()
388 if (php_stream_readdir(dirp, &entry)) { in PHP_FUNCTION()