Skip to content

PHP Error #1

Description

@davidmcoleman

My server is running PHP 5.2.17

I'm getting errors from these lines of code within index.php

define(IVSIZE, mcrypt_get_iv_size(MCRYPT_CAST_256, MCRYPT_MODE_CFB));
define(RANDOM_ID, bin2hex(mcrypt_create_iv(IVSIZE, MCRYPT_DEV_RANDOM)));
define(RANDOM, openssl_digest(RANDOM_ID.$phprand , 'sha512'));

Sample Error:

PHP Notice: Use of undefined constant IVSIZE - assumed 'IVSIZE' in
PHP Notice: Use of undefined constant RANDOM_ID

Q: Would upgrading to PHP 5.3 resolve these errors?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions