Add support for older PHP 5.x.x versions #14

Merged
merged 1 commit into from Jan 17, 2013

Projects

None yet

2 participants

@por
Contributor
por commented Jan 17, 2013

This PR adds support for older PHP 5 versions (<5.3.0). Older versions threw the following error when including the main Soundcloud.php library file.

syntax error, unexpected T_FUNCTION, expecting ')' in /path/to/Soundcloud.php

This is also described in this StackOverflow question.

The root cause is that array_map only supports lambda functions as of PHP 5.0.3. This PR replaces this method with a simple foreach.

@mptre mptre merged commit d30406a into mptre:master Jan 17, 2013
@mptre
Owner
mptre commented Jan 17, 2013

Thx, merged!

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