cvs: pecl /spl spl_directory.c

From: Date: Tue, 09 Dec 2003 19:02:34 +0000
Subject: cvs: pecl /spl spl_directory.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-573@lists.php.net to get a copy of this message
helly Tue Dec 9 14:02:34 2003 EDT Modified files: /pecl/spl spl_directory.c Log: - Initialize for refcounting. - Simplify. Index: pecl/spl/spl_directory.c diff -u pecl/spl/spl_directory.c:1.17 pecl/spl/spl_directory.c:1.18 --- pecl/spl/spl_directory.c:1.17 Thu Dec 4 15:56:31 2003 +++ pecl/spl/spl_directory.c Tue Dec 9 14:02:34 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: spl_directory.c,v 1.17 2003/12/04 20:56:31 helly Exp $ */ +/* $Id: spl_directory.c,v 1.18 2003/12/09 19:02:34 helly Exp $ */ #ifdef HAVE_CONFIG_H # include "config.h" @@ -453,7 +453,8 @@ char *path; int path_len = spprintf(&path, 0, "%s/%s", intern->path, intern->entry.d_name); - + + INIT_PZVAL(&zpath); ZVAL_STRINGL(&zpath, path, path_len, 0); spl_instantiate_arg_ex1(spl_ce_RecursiveDirectoryIterator, &return_value, 0, &zpath TSRMLS_CC); @@ -510,10 +511,9 @@ static void spl_ce_dir_it_dtor(zend_object_iterator *iter TSRMLS_DC) { spl_ce_dir_it *iterator = (spl_ce_dir_it *)iter; - zval *intern = (zval*)iterator->intern.data; zval_ptr_dtor(&iterator->current); - zval_ptr_dtor(&intern); + zval_ptr_dtor((zval**)&iterator->intern.data); efree(iterator); }

« previous php.pecl.cvs (#573) next »