Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

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

Naktibalda opened this issue Nov 11, 2015 · 5 comments

Comments

@Naktibalda
Copy link
Member

@Naktibalda Naktibalda commented Nov 11, 2015

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

@Naktibalda
Copy link
Member Author

@Naktibalda Naktibalda commented Nov 11, 2015

Should it go to autoload.php ?

@sergeyklay
Copy link
Member

@sergeyklay 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
Copy link
Member Author

@Naktibalda 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.