oct_overflow_char.phpt 301 B

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