From e8f043b449418d2f0d1862660a6aecd75e6bce3b Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Thu, 25 May 2006 13:27:51 +0000 Subject: [PATCH] -#7715, fix float validation when using '.23' or '123' have worked before using my version, bug introduced in later commits. --- ext/filter/tests/bug7715.phpt | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 ext/filter/tests/bug7715.phpt 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) -- 2.50.1