For people who are using still PHP 4.x, you can add following function at end of the file:

if(!function_exists('str_split')) {
  function str_split($string, $split_length = 1) {
    $array = explode("\r\n", chunk_split($string, $split_length));
    array_pop($array);
    return $array;
  }
}

Comments

japanitrat’s picture

ah yes we had this before and i suggested the pear compat library for general use of php4. anyway, since this is not a nice workaround, str_split is going to be replaced with preg_split('//', $entropy, -1, PREG_SPLIT_NO_EMPTY) in the next release.

starbow’s picture

Status: Needs review » Fixed

Fixed in Beta3

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.