mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
ext/spl: Adding a const modifier
This commit is contained in:
parent
35c5cf9760
commit
bb4491af88
2 changed files with 2 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue