cvs: php-src /ext/standard type.c

From: Date: Fri, 15 Apr 2005 22:46:38 +0000
Subject: cvs: php-src /ext/standard type.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-31419@lists.php.net to get a copy of this message
sniper Fri Apr 15 18:46:38 2005 EDT Modified files: /php-src/ext/standard type.c Log: - Fixed bug #32719 (strval() fails to zero terminate strings) http://cvs.php.net/diff.php/php-src/ext/standard/type.c?r1=1.26&r2=1.27&ty=u Index: php-src/ext/standard/type.c diff -u php-src/ext/standard/type.c:1.26 php-src/ext/standard/type.c:1.27 --- php-src/ext/standard/type.c:1.26 Thu Mar 10 21:11:44 2005 +++ php-src/ext/standard/type.c Fri Apr 15 18:46:37 2005 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: type.c,v 1.26 2005/03/11 02:11:44 helly Exp $ */ +/* $Id: type.c,v 1.27 2005/04/15 22:46:37 sniper Exp $ */ #include "php.h" #include "php_incomplete_class.h" @@ -177,7 +177,7 @@ Get the string value of a variable */ PHP_FUNCTION(strval) { - pval **num, *tmp; + zval **num, *tmp; zval expr_copy; int use_copy; @@ -190,7 +190,7 @@ tmp = &expr_copy; RETVAL_ZVAL(tmp, 0, 0); } else { - RETVAL_ZVAL(*num, 0, 0); + RETVAL_ZVAL(*num, 1, 0); } } /* }}} */

« previous php.cvs (#31419) next »