summaryrefslogtreecommitdiff
path: root/ext/tokenizer
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-09-14 12:10:15 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-09-14 12:10:15 +0200
commit3372a24b99401b63bfe3e9fe6f356989bb02aa3e (patch)
tree7ec970e28a93c369fdc3091d72e46fe53b69146f /ext/tokenizer
parenta86e04876b4956ac6b9a46b27c11b849c1e3507f (diff)
parent3f76f9416ff82c10174dc382285b4b91789e278b (diff)
downloadphp-git-3372a24b99401b63bfe3e9fe6f356989bb02aa3e.tar.gz
Merge branch 'PHP-7.4'
Diffstat (limited to 'ext/tokenizer')
-rw-r--r--ext/tokenizer/tests/invalid_large_octal_with_underscores.phpt31
1 files changed, 31 insertions, 0 deletions
diff --git a/ext/tokenizer/tests/invalid_large_octal_with_underscores.phpt b/ext/tokenizer/tests/invalid_large_octal_with_underscores.phpt
new file mode 100644
index 0000000000..b6d43c1ff1
--- /dev/null
+++ b/ext/tokenizer/tests/invalid_large_octal_with_underscores.phpt
@@ -0,0 +1,31 @@
+--TEST--
+Large invalid octal number with underscores
+--FILE--
+<?php
+
+var_dump(token_get_all("<?php 0_10000000000000000000009;"));
+
+?>
+--EXPECTF--
+array(3) {
+ [0]=>
+ array(3) {
+ [0]=>
+ int(%d)
+ [1]=>
+ string(6) "<?php "
+ [2]=>
+ int(1)
+ }
+ [1]=>
+ array(3) {
+ [0]=>
+ int(%d)
+ [1]=>
+ string(25) "0_10000000000000000000009"
+ [2]=>
+ int(1)
+ }
+ [2]=>
+ string(1) ";"
+}