com php-src: Fixed bug #73172 parse error: Invalid numeric literal: Zend/zend_strtod_int.h tests/lang/bug73172. inc tests/lang/bug73172.phpt
| From: | Anatol Belski | Date: | Mon, 26 Sep 2016 16:47:30 +0000 |
| Subject: | com php-src: Fixed bug #73172 parse error: Invalid numeric literal: Zend/zend_strtod_int.h tests/lang/bug73172. inc tests/lang/bug73172.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-94715@lists.php.net to get a copy of this message | ||
Commit: 39e599170532f64fd433dd68aa79bc0dcbda4689
Author: Anatol Belski <ab@php.net> Mon, 26 Sep 2016 18:47:30 +0200
Parents: eaee65080ee504f70f663c75c3e17de5125cba85
Branches: PHP-7.0 PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=39e599170532f64fd433dd68aa79bc0dcbda4689
Log:
Fixed bug #73172 parse error: Invalid numeric literal
Bugs:
https://bugs.php.net/73172
Changed paths:
M Zend/zend_strtod_int.h
A tests/lang/bug73172.inc
A tests/lang/bug73172.phpt
Diff:
diff --git a/Zend/zend_strtod_int.h b/Zend/zend_strtod_int.h
index 03bf000..c1f66eb 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 0000000..5e4a85e
--- /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 0000000..369d293
--- /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==