Skip to content

Commit 3d8342a

Browse files
committed
[skip ci] Skip 2 tokenizer tests if tokenizer isn't loaded
`./configure --disable-tokenizer` can disable tokenizer Closes GH-5184
1 parent c31029f commit 3d8342a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ext/tokenizer/tests/invalid_large_octal_with_underscores.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Large invalid octal number with underscores
3+
--SKIPIF--
4+
<?php if (!extension_loaded("tokenizer")) print "skip tokenizer extension not enabled"; ?>
35
--FILE--
46
<?php
57

ext/tokenizer/tests/invalid_octal_dnumber.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Invalid octal number that overflows to double
3+
--SKIPIF--
4+
<?php if (!extension_loaded("tokenizer")) print "skip tokenizer extension not enabled"; ?>
35
--FILE--
46
<?php
57
echo token_name(token_get_all('<?php 0177777777777777777777787')[1][0]), "\n";

0 commit comments

Comments
 (0)