felipe Fri Feb 6 10:17:51 2009 UTC Modified files: /php-src/ext/standard scanf.c Log: - Fixed bug #47322 (sscanf %d does't work) http://cvs.php.net/viewvc.cgi/php-src/ext/standard/scanf.c?r1=1.44&r2=1.45&diff_format=u Index: php-src/ext/standard/scanf.c diff -u php-src/ext/standard/scanf.c:1.44 php-src/ext/standard/scanf.c:1.45 --- php-src/ext/standard/scanf.c:1.44 Mon Jan 19 09:52:14 2009 +++ php-src/ext/standard/scanf.c Fri Feb 6 10:17:51 2009 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: scanf.c,v 1.44 2009/01/19 09:52:14 tony2001 Exp $ */ +/* $Id: scanf.c,v 1.45 2009/02/06 10:17:51 felipe Exp $ */ /* scanf.c -- @@ -1534,7 +1534,7 @@ } else if (numVars) { current = args[objIndex++]; zval_dtor(*current); - Z_LVAL(**current) = value; + ZVAL_LONG(*current, value); } else { add_index_long(*return_value, objIndex++, value); } @@ -1639,7 +1639,7 @@ } else if (numVars) { current = args[objIndex++]; zval_dtor(*current); - Z_DVAL_PP( current ) = dvalue; + ZVAL_DOUBLE(*current, dvalue); } else { add_index_double( *return_value, objIndex++, dvalue ); }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php