Lines Matching refs:dirp
72 …if ((dirp = (php_stream *)zend_fetch_resource(Z_RES_P(id), "Directory", php_file_le_stream())) == …
80 …if ((dirp = (php_stream *)zend_fetch_resource(DIRG(default_dir), "Directory", php_file_le_stream()…
91 …if ((dirp = (php_stream *)zend_fetch_resource_ex(handle_zv, "Directory", php_file_le_stream())) ==…
203 php_stream *dirp; in _php_do_opendir() local
213 dirp = php_stream_opendir(dirname, REPORT_ERRORS, context); in _php_do_opendir()
215 if (dirp == NULL) { in _php_do_opendir()
219 dirp->flags |= PHP_STREAM_FLAG_NO_FCLOSE; in _php_do_opendir()
221 php_set_default_dir(dirp->res); in _php_do_opendir()
226 ZVAL_RES(Z_DIRECTORY_HANDLE_P(return_value), dirp->res); in _php_do_opendir()
227 php_stream_auto_cleanup(dirp); /* so we don't get warnings under debug */ in _php_do_opendir()
229 php_stream_to_zval(dirp, return_value); in _php_do_opendir()
252 php_stream *dirp; in PHP_FUNCTION() local
257 if (!(dirp->flags & PHP_STREAM_FLAG_IS_DIR)) { in PHP_FUNCTION()
262 res = dirp->res; in PHP_FUNCTION()
263 zend_list_close(dirp->res); in PHP_FUNCTION()
363 php_stream *dirp; in PHP_FUNCTION() local
367 if (!(dirp->flags & PHP_STREAM_FLAG_IS_DIR)) { in PHP_FUNCTION()
372 php_stream_rewinddir(dirp); in PHP_FUNCTION()
380 php_stream *dirp; in PHP_FUNCTION() local
385 if (!(dirp->flags & PHP_STREAM_FLAG_IS_DIR)) { in PHP_FUNCTION()
390 if (php_stream_readdir(dirp, &entry)) { in PHP_FUNCTION()