summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-09-26 18:47:30 +0200
committerAnatol Belski <ab@php.net>2016-09-26 18:47:30 +0200
commit39e599170532f64fd433dd68aa79bc0dcbda4689 (patch)
tree2e45092c0b844f1c26b3141da7de51a3067e2f2e
parenteaee65080ee504f70f663c75c3e17de5125cba85 (diff)
downloadphp-git-39e599170532f64fd433dd68aa79bc0dcbda4689.tar.gz
Fixed bug #73172 parse error: Invalid numeric literal
-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==