summaryrefslogtreecommitdiff
path: root/Zend/tests/oct_overflow_char.phpt
blob: 61de43d201b73907688dbce2c026eebf5179c50e (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
Octal overflow in string interpolation
--FILE--
<?php

// "abc", ordinarily 'b' would be \142, but we'll deliberately overflow the value by \400
echo "\141\542\143\n";
?>
--EXPECTF--
Warning: Octal escape sequence overflow \542 is greater than \377 in %s%eoct_overflow_char.php on line 4
abc