From 9054c069b3ce338e33372b37b90c8e0e9b11ff53 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Fri, 6 Feb 2009 10:17:51 +0000 Subject: [PATCH] - Fixed bug #47322 (sscanf %d does't work) --- ext/standard/scanf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/standard/scanf.c b/ext/standard/scanf.c index 9e4ff95514..e640908cc0 100644 --- a/ext/standard/scanf.c +++ b/ext/standard/scanf.c @@ -1534,7 +1534,7 @@ addToInt: } 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 @@ addToFloat: } 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 ); } -- 2.40.0