tony2001 Wed Dec 27 10:30:48 2006 UTC Modified files: /php-src/ext/pdo_oci oci_statement.c Log: initialize memory with 0's, so we won't get garbage if the statement does not set the var http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_oci/oci_statement.c?r1=1.20&r2=1.21&diff_format=u Index: php-src/ext/pdo_oci/oci_statement.c diff -u php-src/ext/pdo_oci/oci_statement.c:1.20 php-src/ext/pdo_oci/oci_statement.c:1.21 --- php-src/ext/pdo_oci/oci_statement.c:1.20 Sat Mar 18 22:06:45 2006 +++ php-src/ext/pdo_oci/oci_statement.c Wed Dec 27 10:30:47 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: oci_statement.c,v 1.20 2006/03/18 22:06:45 tony2001 Exp $ */ +/* $Id: oci_statement.c,v 1.21 2006/12/27 10:30:47 tony2001 Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -204,7 +204,7 @@ zval_dtor(param->parameter); Z_STRLEN_P(param->parameter) = param->max_value_len; - Z_STRVAL_P(param->parameter) = emalloc(Z_STRLEN_P(param->parameter)+1); + Z_STRVAL_P(param->parameter) = ecalloc(1, Z_STRLEN_P(param->parameter)+1); P->used_for_output = 1; P->actual_len = Z_STRLEN_P(param->parameter);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php