tony2001 Fri Feb 6 14:38:18 2009 UTC
Modified files:
/php-src/ext/standard scanf.c
Log:
fix unicode implementation
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/scanf.c?r1=1.45&r2=1.46&diff_format=u
Index: php-src/ext/standard/scanf.c
diff -u php-src/ext/standard/scanf.c:1.45 php-src/ext/standard/scanf.c:1.46
--- php-src/ext/standard/scanf.c:1.45 Fri Feb 6 10:17:51 2009
+++ php-src/ext/standard/scanf.c Fri Feb 6 14:38:18 2009
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: scanf.c,v 1.45 2009/02/06 10:17:51 felipe Exp $ */
+/* $Id: scanf.c,v 1.46 2009/02/06 14:38:18 tony2001 Exp $ */
/*
scanf.c --
@@ -2180,7 +2180,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);
}
@@ -2285,7 +2285,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