summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/zend_strtod_int.h4
-rw-r--r--tests/lang/bug73172.inc7
-rw-r--r--tests/lang/bug73172.phpt13
3 files changed, 22 insertions, 2 deletions
diff --git a/Zend/zend_strtod_int.h b/Zend/zend_strtod_int.h
index 03bf0007cc..c1f66eb19c 100644
--- a/Zend/zend_strtod_int.h
+++ b/Zend/zend_strtod_int.h
@@ -64,8 +64,8 @@ typedef unsigned long int uint32_t;
# endif
#endif
-#ifdef HAVE_LOCALE_H
-#define USE_LOCALE 1
+#ifdef USE_LOCALE
+#undef USE_LOCALE
#endif
#ifdef WORDS_BIGENDIAN
diff --git a/tests/lang/bug73172.inc b/tests/lang/bug73172.inc
new file mode 100644
index 0000000000..5e4a85ea2e
--- /dev/null
+++ b/tests/lang/bug73172.inc
@@ -0,0 +1,7 @@
+<?php
+
+function test($a, $x, $y){
+ return;
+}
+test('test', 9223372036854775808, 'test');
+
diff --git a/tests/lang/bug73172.phpt b/tests/lang/bug73172.phpt
new file mode 100644
index 0000000000..369d293cac
--- /dev/null
+++ b/tests/lang/bug73172.phpt
@@ -0,0 +1,13 @@
+--TEST--
+Bug #73172 parse error: Invalid numeric literal
+--FILE--
+<?php
+
+setlocale(LC_ALL, 'fr_FR.utf8', 'fra');
+
+include dirname(__FILE__) . DIRECTORY_SEPARATOR . "bug73172.inc";
+
+?>
+==DONE==
+--EXPECTF--
+==DONE==