Call to undefined function Codeception\Util\json_last_error_msg() #2535

Closed
Naktibalda opened this Issue Nov 11, 2015 · 5 comments

Comments

Projects
None yet
2 participants
@Naktibalda
Member

Naktibalda commented Nov 11, 2015

Codeception\Util\JsonArray constructor uses json_last_error_msg() function which is not available in PHP 5.4

@Naktibalda

This comment has been minimized.

Show comment
Hide comment
@Naktibalda

Naktibalda Nov 11, 2015

Member

Should it go to autoload.php ?

Member

Naktibalda commented Nov 11, 2015

Should it go to autoload.php ?

@sergeyklay

This comment has been minimized.

Show comment
Hide comment
@sergeyklay

sergeyklay Nov 11, 2015

Member

It seems before.

if (!function_exists('json_last_error_msg')) {
    function json_last_error_msg()
    {
        // ...
    }
}
Member

sergeyklay commented Nov 11, 2015

It seems before.

if (!function_exists('json_last_error_msg')) {
    function json_last_error_msg()
    {
        // ...
    }
}

Naktibalda added a commit to Naktibalda/Codeception that referenced this issue Nov 11, 2015

@Naktibalda

This comment has been minimized.

Show comment
Hide comment
@Naktibalda

Naktibalda Nov 11, 2015

Member

Failed on PHP 5.4 with error message: Fatal error: Call to undefined function Codeception\Util\json_last_error_msg() in /home/travis/build/Codeception/Codeception/src/Codeception/Util/JsonArray.php on line 33

Member

Naktibalda commented Nov 11, 2015

Failed on PHP 5.4 with error message: Fatal error: Call to undefined function Codeception\Util\json_last_error_msg() in /home/travis/build/Codeception/Codeception/src/Codeception/Util/JsonArray.php on line 33

Naktibalda added a commit to Naktibalda/Codeception that referenced this issue Nov 11, 2015

@Naktibalda Naktibalda closed this Nov 11, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment