summaryrefslogtreecommitdiff
path: root/tests/lang
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-09-26 18:49:40 +0200
committerAnatol Belski <ab@php.net>2016-09-26 18:49:40 +0200
commit4e3746380a85c8b8a4fc7dce4535760a1fb80216 (patch)
treec95fcc199c358817a805e9f5c8349c799ffc1a1c /tests/lang
parent5e24fe9fde183eda239236aa18c96007d9ac7138 (diff)
parent39e599170532f64fd433dd68aa79bc0dcbda4689 (diff)
downloadphp-git-4e3746380a85c8b8a4fc7dce4535760a1fb80216.tar.gz
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0: Fixed bug #73172 parse error: Invalid numeric literal
Diffstat (limited to 'tests/lang')
-rw-r--r--tests/lang/bug73172.inc7
-rw-r--r--tests/lang/bug73172.phpt13
2 files changed, 20 insertions, 0 deletions
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==