cvs: php-src /ext/spl spl_iterators.c

From: Date: Sun, 15 Jan 2006 16:05:49 +0000
Subject: cvs: php-src /ext/spl spl_iterators.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-36522@lists.php.net to get a copy of this message
tony2001 Sun Jan 15 16:05:49 2006 UTC Modified files: /php-src/ext/spl spl_iterators.c Log: avoid segfaults http://cvs.php.net/viewcvs.cgi/php-src/ext/spl/spl_iterators.c?r1=1.107&r2=1.108&diff_format=u Index: php-src/ext/spl/spl_iterators.c diff -u php-src/ext/spl/spl_iterators.c:1.107 php-src/ext/spl/spl_iterators.c:1.108 --- php-src/ext/spl/spl_iterators.c:1.107 Sun Jan 1 19:57:27 2006 +++ php-src/ext/spl/spl_iterators.c Sun Jan 15 16:05:49 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: spl_iterators.c,v 1.107 2006/01/01 19:57:27 helly Exp $ */ +/* $Id: spl_iterators.c,v 1.108 2006/01/15 16:05:49 tony2001 Exp $ */ #ifdef HAVE_CONFIG_H # include "config.h" @@ -929,7 +929,7 @@ case DIT_RecursiveRegExIterator: { char *regex; int len, poptions, coptions; - pcre_extra *extra; + pcre_extra *extra = NULL; intern->u.regex.flags = 0; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Os|l", &zobject, ce_inner, &regex, &len, &intern->u.regex.flags) == FAILURE) {

« previous php.cvs (#36522) next »