chunksize length line is > 10 bytes). (Ilia)
- SPL
+ . Fixed memory leak when calling SplFileInfo's constructor twice. (Felipe)
. Fixed bug #61347 (inconsistent isset behavior of Arrayobject). (Laruence)
. Fixed bug #61326 (ArrayObject comparison). (Gustavo)
void spl_filesystem_info_set_filename(spl_filesystem_object *intern, char *path, int len, int use_copy TSRMLS_DC) /* {{{ */
{
char *p1, *p2;
+
+ if (intern->file_name) {
+ efree(intern->file_name);
+ }
intern->file_name = use_copy ? estrndup(path, len) : path;
intern->file_name_len = len;
} else {
intern->_path_len = 0;
}
-
+
+ if (intern->_path) {
+ efree(intern->_path);
+ }
intern->_path = estrndup(path, intern->_path_len);
} /* }}} */