]> granicus.if.org Git - php/commitdiff
fix unicode implementation
authorAntony Dovgal <tony2001@php.net>
Fri, 6 Feb 2009 14:38:18 +0000 (14:38 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 6 Feb 2009 14:38:18 +0000 (14:38 +0000)
ext/standard/scanf.c

index e640908cc068d3c80dbdd207c36daa8c29e855e6..9729bab1cd97bd4609f3609267489da6ab8a446c 100644 (file)
@@ -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 );
                                        }