diff --git a/src/utils/pthreads.php b/src/utils/pthreads.php index be91ec58a..134fd3f3a 100644 --- a/src/utils/pthreads.php +++ b/src/utils/pthreads.php @@ -22,8 +22,20 @@ define("ASYNC_CURL_GET", 1); define("ASYNC_CURL_POST", 2); -class StackableArray{ - public $counter = 0; +class StackableArray extends Stackable{ + public function __construct(){ + foreach(func_get_args() as $n => $value){ + if(is_array($value)){ + $this->{$n} = new StackableArray(); + call_user_func_array(array($this->{$n}, "__construct"), $value); + }else{ + $this->{$n} = $value; + } + } + } + + public function __destruct(){} + public function run(){} }