Skip to content

Commit bb4491a

Browse files
committed
ext/spl: Adding a const modifier
1 parent 35c5cf9 commit bb4491a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/spl/spl_directory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ static zend_object *spl_filesystem_object_new(zend_class_entry *class_type)
202202
}
203203
/* }}} */
204204

205-
PHPAPI zend_string *spl_filesystem_object_get_path(spl_filesystem_object *intern) /* {{{ */
205+
PHPAPI zend_string *spl_filesystem_object_get_path(const spl_filesystem_object *intern) /* {{{ */
206206
{
207207
#ifdef HAVE_GLOB
208208
if (intern->type == SPL_FS_DIR && php_stream_is(intern->u.dir.dirp, &php_glob_stream_ops)) {

ext/spl/spl_directory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ typedef struct _spl_filesystem_object spl_filesystem_object;
3636
typedef void (*spl_foreign_dtor_t)(spl_filesystem_object *object);
3737
typedef void (*spl_foreign_clone_t)(spl_filesystem_object *src, spl_filesystem_object *dst);
3838

39-
PHPAPI zend_string *spl_filesystem_object_get_path(spl_filesystem_object *intern);
39+
PHPAPI zend_string *spl_filesystem_object_get_path(const spl_filesystem_object *intern);
4040

4141
typedef struct _spl_other_handler {
4242
spl_foreign_dtor_t dtor;

0 commit comments

Comments
 (0)