kakserpom / phpdaemon

Asynchronous server-side framework for network applications implemented in PHP using libevent
http://daemon.io/
GNU Lesser General Public License v3.0
1.53k stars 231 forks source link

Wrong use of $this #9

Closed Emmerman closed 14 years ago

Emmerman commented 14 years ago

MongoNode.php

 $this->LockClient->job(__CLASS__,TRUE,function($jobname) use ($appInstance)
 {
  $this->pushRequest(new MongoNode_ReplicationRequest($this,$this));
 });

You can't use $this with closures

kakserpom commented 14 years ago

Thank you! Fixed.