bug72994.phpt 426 B

1234567891011121314151617
  1. --TEST--
  2. Bug #72994 (mbc_to_code() out of bounds read)
  3. --SKIPIF--
  4. <?php
  5. if (!extension_loaded('mbstring')) die('skip mbstring extension not available');
  6. if (!function_exists('mbereg_replace')) die('skip mbereg_replace() not available');
  7. ?>
  8. --FILE--
  9. <?php
  10. $var1 = mbereg_replace($var-232338951,NULL,NULL,NULL);
  11. var_dump($var1);
  12. ?>
  13. ===DONE===
  14. --EXPECTF--
  15. Notice: Undefined variable: var in %s on line %d
  16. string(0) ""
  17. ===DONE===