Skip to content

Commit fe8cf7c

Browse files
committed
Merge pull request #93 from koenpunt/patch-1
replace eval for call_user_func_array
2 parents 0cba995 + 8031318 commit fe8cf7c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

phpfastcache/3.0.0/phpfastcache.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ function __construct($storage = "", $config = array()) {
9797

9898

9999
public function __call($name, $args) {
100-
$str = implode(",",$args);
101-
eval('return $this->instance->$name('.$str.');');
100+
return call_user_func_array(array($this->instance, $name), $args);
102101
}
103102

104103

0 commit comments

Comments
 (0)