Lines Matching refs:dirp
88 ZEND_FETCH_RESOURCE(dirp, php_stream *, tmp, -1, "Directory", php_file_le_stream()); \
90 …ZEND_FETCH_RESOURCE(dirp, php_stream *, 0, DIRG(default_dir), "Directory", php_file_le_stream()); \
93 …dirp = (php_stream *) zend_fetch_resource(&id TSRMLS_CC, -1, "Directory", NULL, 1, php_file_le_str…
94 if (!dirp) \
220 php_stream *dirp; in _php_do_opendir() local
228 dirp = php_stream_opendir(dirname, REPORT_ERRORS, context); in _php_do_opendir()
230 if (dirp == NULL) { in _php_do_opendir()
234 dirp->flags |= PHP_STREAM_FLAG_NO_FCLOSE; in _php_do_opendir()
236 php_set_default_dir(dirp->rsrc_id TSRMLS_CC); in _php_do_opendir()
241 add_property_resource(return_value, "handle", dirp->rsrc_id); in _php_do_opendir()
242 php_stream_auto_cleanup(dirp); /* so we don't get warnings under debug */ in _php_do_opendir()
244 php_stream_to_zval(dirp, return_value); in _php_do_opendir()
270 php_stream *dirp; in PHP_FUNCTION() local
275 if (!(dirp->flags & PHP_STREAM_FLAG_IS_DIR)) { in PHP_FUNCTION()
276 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "%d is not a valid Directory resource", dirp->rsrc_id); in PHP_FUNCTION()
280 rsrc_id = dirp->rsrc_id; in PHP_FUNCTION()
281 zend_list_delete(dirp->rsrc_id); in PHP_FUNCTION()
385 php_stream *dirp; in PHP_FUNCTION() local
389 if (!(dirp->flags & PHP_STREAM_FLAG_IS_DIR)) { in PHP_FUNCTION()
390 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "%d is not a valid Directory resource", dirp->rsrc_id); in PHP_FUNCTION()
394 php_stream_rewinddir(dirp); in PHP_FUNCTION()
403 php_stream *dirp; in PHP_NAMED_FUNCTION() local
408 if (!(dirp->flags & PHP_STREAM_FLAG_IS_DIR)) { in PHP_NAMED_FUNCTION()
409 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "%d is not a valid Directory resource", dirp->rsrc_id); in PHP_NAMED_FUNCTION()
413 if (php_stream_readdir(dirp, &entry)) { in PHP_NAMED_FUNCTION()