xref: /PHP-8.0/Zend/tests/oct_overflow_char.phpt (revision 7aacc705)
1--TEST--
2Octal overflow in string interpolation
3--FILE--
4<?php
5
6// "abc", ordinarily 'b' would be \142, but we'll deliberately overflow the value by \400
7echo "\141\542\143\n";
8?>
9--EXPECTF--
10Warning: Octal escape sequence overflow \542 is greater than \377 in %s%eoct_overflow_char.php on line 4
11abc
12