Lines Matching refs:dirp

88 …if ((dirp = (php_stream *)zend_fetch_resource_ex(tmp, "Directory", php_file_le_stream())) == NULL)…
93 …(dirp = (php_stream *)zend_fetch_resource(DIRG(default_dir), "Directory", php_file_le_stream())) =…
98 …if ((dirp = (php_stream *)zend_fetch_resource(Z_RES_P(id), "Directory", php_file_le_stream())) == …
225 php_stream *dirp; in _php_do_opendir() local
233 dirp = php_stream_opendir(dirname, REPORT_ERRORS, context); in _php_do_opendir()
235 if (dirp == NULL) { in _php_do_opendir()
239 dirp->flags |= PHP_STREAM_FLAG_NO_FCLOSE; in _php_do_opendir()
241 php_set_default_dir(dirp->res); in _php_do_opendir()
246 add_property_resource(return_value, "handle", dirp->res); in _php_do_opendir()
247 php_stream_auto_cleanup(dirp); /* so we don't get warnings under debug */ in _php_do_opendir()
249 php_stream_to_zval(dirp, return_value); in _php_do_opendir()
275 php_stream *dirp; in PHP_FUNCTION() local
280 if (!(dirp->flags & PHP_STREAM_FLAG_IS_DIR)) { in PHP_FUNCTION()
281 php_error_docref(NULL, E_WARNING, "%d is not a valid Directory resource", dirp->res->handle); in PHP_FUNCTION()
285 res = dirp->res; in PHP_FUNCTION()
286 zend_list_close(dirp->res); in PHP_FUNCTION()
392 php_stream *dirp; in PHP_FUNCTION() local
396 if (!(dirp->flags & PHP_STREAM_FLAG_IS_DIR)) { in PHP_FUNCTION()
397 php_error_docref(NULL, E_WARNING, "%d is not a valid Directory resource", dirp->res->handle); in PHP_FUNCTION()
401 php_stream_rewinddir(dirp); in PHP_FUNCTION()
410 php_stream *dirp; in PHP_NAMED_FUNCTION() local
415 if (!(dirp->flags & PHP_STREAM_FLAG_IS_DIR)) { in PHP_NAMED_FUNCTION()
416 php_error_docref(NULL, E_WARNING, "%d is not a valid Directory resource", dirp->res->handle); in PHP_NAMED_FUNCTION()
420 if (php_stream_readdir(dirp, &entry)) { in PHP_NAMED_FUNCTION()