From 0ba8f49fafc75f481a1202a7a4c0376bd43bdaa5 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Fri, 6 Feb 2009 14:38:18 +0000 Subject: [PATCH] fix unicode implementation --- 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 e640908cc06..9729bab1cd9 100644 --- a/ext/standard/scanf.c +++ b/ext/standard/scanf.c @@ -2180,7 +2180,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); } @@ -2285,7 +2285,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 ); }