From: Dmitry Stogov Date: Fri, 27 Feb 2004 14:52:24 +0000 (+0000) Subject: win32 specific fixes X-Git-Tag: RELEASE_0_2_0~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df29576af6cfff8ec39f3c681c1ccfcff23459a7;p=php win32 specific fixes --- diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c index 9487336a56..35ba391304 100644 --- a/ext/soap/php_encoding.c +++ b/ext/soap/php_encoding.c @@ -660,7 +660,7 @@ static xmlNodePtr to_xml_ulong(encodeTypePtr type, zval *data, int style, xmlNod if (Z_TYPE_P(data) == IS_DOUBLE) { char s[16]; - sprintf(s, "%0.0F",Z_DVAL_P(data)); + sprintf(s, "%0.0f",Z_DVAL_P(data)); xmlNodeSetContent(ret, s); } else { zval tmp = *data; diff --git a/ext/soap/tests/schema/test_schema.inc b/ext/soap/tests/schema/test_schema.inc index 6ef38a0c65..64635a10ca 100644 --- a/ext/soap/tests/schema/test_schema.inc +++ b/ext/soap/tests/schema/test_schema.inc @@ -70,11 +70,5 @@ EOF; ob_end_clean(); var_dump($val); } - -/* - xml_parse_into_struct($xml,$x->__getlastrequest(),&$x,&$y); - var_dump($x); - var_dump($y); -*/ } ?> \ No newline at end of file diff --git a/ext/soap/tests/soap12/T45.phpt b/ext/soap/tests/soap12/T45.phpt index 68e3cceeef..4bbcc818d4 100644 --- a/ext/soap/tests/soap12/T45.phpt +++ b/ext/soap/tests/soap12/T45.phpt @@ -19,7 +19,7 @@ $HTTP_RAW_POST_DATA = <<hello world 99 - 4.0699e-12 + 5.5 nested struct @@ -31,5 +31,5 @@ include "soap12-test.inc"; ?> --EXPECT-- -returnhello world420.005nested struct994.0699E-12 +returnhello world420.005nested struct995.5 ok diff --git a/ext/soap/tests/soap12/T47.phpt b/ext/soap/tests/soap12/T47.phpt index e1d8b8f1a4..a9bb43e368 100644 --- a/ext/soap/tests/soap12/T47.phpt +++ b/ext/soap/tests/soap12/T47.phpt @@ -14,7 +14,7 @@ $HTTP_RAW_POST_DATA = << - 0.00000555 + 5.5 12999.9 @@ -25,5 +25,5 @@ include "soap12-test.inc"; ?> --EXPECT-- -return5.55E-0612999.9 +return5.512999.9 ok