From: Pierre Joye Date: Thu, 25 May 2006 13:27:51 +0000 (+0000) Subject: -#7715, fix float validation when using '.23' or '123' X-Git-Tag: BEFORE_NEW_OUTPUT_API~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8f043b449418d2f0d1862660a6aecd75e6bce3b;p=php -#7715, fix float validation when using '.23' or '123' have worked before using my version, bug introduced in later commits. --- diff --git a/ext/filter/tests/bug7715.phpt b/ext/filter/tests/bug7715.phpt new file mode 100644 index 0000000000..9e1206f6a5 --- /dev/null +++ b/ext/filter/tests/bug7715.phpt @@ -0,0 +1,27 @@ +--TEST-- +bug 7715, floats value with integer or incomplete input +--FILE-- + +--EXPECTF-- +float(0.23) +float(-42) +float(42) +float(0.4) +float(-0.4) +float(1.0E+12) +float(-1.0E+12)