summaryrefslogtreecommitdiff
path: root/Zend/tests/oct_overflow_char.phpt
blob: 32060d8593063caddf983a4065378bc4f5075fe6 (plain)
1
2
3
4
5
6
7
8
9
10
--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