php-src/Zend/tests/oct_overflow_char.phpt

11 lines
298 B
Plaintext
Raw Normal View History

--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--
2016-05-14 21:48:04 +00:00
Warning: Octal escape sequence overflow \542 is greater than \377 in %s%eoct_overflow_char.php on line 4
abc