summaryrefslogtreecommitdiff
path: root/Zend/tests/numeric_literal_separator_007.phpt
diff options
context:
space:
mode:
authorTheodore Brown <theodorejb@outlook.com>2019-05-02 12:10:19 -0500
committerNikita Popov <nikita.ppv@gmail.com>2019-06-14 11:37:04 +0200
commitf74109d9a4b1e4fbaeba4f68c8fc89950e19d265 (patch)
tree479e45443ebaac440802f843baaac77a4e0aa6a3 /Zend/tests/numeric_literal_separator_007.phpt
parentec77cca5f30c77944c5038bb17de7353fb200757 (diff)
downloadphp-git-f74109d9a4b1e4fbaeba4f68c8fc89950e19d265.tar.gz
Implement numeric literal separators
RFC: https://wiki.php.net/rfc/numeric_literal_separator
Diffstat (limited to 'Zend/tests/numeric_literal_separator_007.phpt')
-rw-r--r--Zend/tests/numeric_literal_separator_007.phpt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Zend/tests/numeric_literal_separator_007.phpt b/Zend/tests/numeric_literal_separator_007.phpt
new file mode 100644
index 0000000000..e74c7ed033
--- /dev/null
+++ b/Zend/tests/numeric_literal_separator_007.phpt
@@ -0,0 +1,7 @@
+--TEST--
+Invalid use: underscore next to 0b
+--FILE--
+<?php
+0b_0101;
+--EXPECTF--
+Parse error: syntax error, unexpected 'b_0101' (T_STRING) in %s on line %d