bug61124.phpt 356 B

1234567891011
  1. --TEST--
  2. Bug #61124: Segmentation fault with openssl_decrypt
  3. --EXTENSIONS--
  4. openssl
  5. --FILE--
  6. <?php
  7. var_dump(openssl_decrypt('kzo w2RMExUTYQXW2Xzxmg==', 'aes-128-cbc', 'pass', false, 'pass'));
  8. ?>
  9. --EXPECTF--
  10. Warning: openssl_decrypt(): IV passed is only 4 bytes long, cipher expects an IV of precisely 16 bytes, padding with \0 in %s on line %d
  11. bool(false)