$x = function() { echo "hello"; }; print_r($x);
fixed in trunk for version 1.2.7
Sorry, for reopening old bug, but it`s not fixed completely - it doesn`t support Closues with "use" keyword:
for example:
//Attach last_down_unix value... array_walk($videos, function(&$it, $key) use ($last) { $it['last_down_unix'] = (int)$last[$it['id_video']]; } );
and another example that cause syntax error:
array_map( function($it) { return $it->contentId; }, $subscrList);
fixed in trunk
Log in to post a comment.
fixed in trunk for version 1.2.7
Sorry, for reopening old bug, but it`s not fixed completely - it doesn`t support Closues with "use" keyword:
for example:
//Attach last_down_unix value...
array_walk($videos, function(&$it, $key) use ($last) {
$it['last_down_unix'] = (int)$last[$it['id_video']];
} );
and another example that cause syntax error:
array_map( function($it) { return $it->contentId; }, $subscrList);
fixed in trunk