ext/spl: Adding a const modifier

This commit is contained in:
Gina Peter Banyard 2024-06-09 01:14:19 +01:00
parent 35c5cf9760
commit bb4491af88
2 changed files with 2 additions and 2 deletions

View file

@ -202,7 +202,7 @@ static zend_object *spl_filesystem_object_new(zend_class_entry *class_type)
}
/* }}} */
PHPAPI zend_string *spl_filesystem_object_get_path(spl_filesystem_object *intern) /* {{{ */
PHPAPI zend_string *spl_filesystem_object_get_path(const spl_filesystem_object *intern) /* {{{ */
{
#ifdef HAVE_GLOB
if (intern->type == SPL_FS_DIR && php_stream_is(intern->u.dir.dirp, &php_glob_stream_ops)) {

View file

@ -36,7 +36,7 @@ typedef struct _spl_filesystem_object spl_filesystem_object;
typedef void (*spl_foreign_dtor_t)(spl_filesystem_object *object);
typedef void (*spl_foreign_clone_t)(spl_filesystem_object *src, spl_filesystem_object *dst);
PHPAPI zend_string *spl_filesystem_object_get_path(spl_filesystem_object *intern);
PHPAPI zend_string *spl_filesystem_object_get_path(const spl_filesystem_object *intern);
typedef struct _spl_other_handler {
spl_foreign_dtor_t dtor;