You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.
i receive:
Warning: Missing argument 1 for Crypt_Blowfish::Crypt_Blowfish(), called in D:\xampp-5-5\htdocs\user\Net\SSH2.php on line 1529 and defined in D:\xampp-5-5\php\pear\Crypt\Blowfish.php on line 94
Strict Standards: Non-static method PEAR::raiseError() should not be called statically, assuming $this from incompatible context in D:\xampp-5-5\php\pear\Crypt\Blowfish.php on line 255
Key must be a string All done.
I think thread does not know where is the key or smth. I tried also to create Net_SSH2 object inside run() but then i reached some other interesting error. So the question is - Is this approach of passing object to the thead constructor the best i can use or no and any advice should be appreciated. The other question is - Is there any good chanse to make phpseclib and pthreads work together?
The text was updated successfully, but these errors were encountered:
You should pass only the data to thread's constructor and any action related to autoloading or constructing objects that cannot be serialized must be done in thread's run method. What was the other error you got?
Basically, both file include and creating the Net_SSH2($ip) should be done in thread's run. You can make phpseclib work the same way. If you use composer to load phpseclib, include Composer's autoload.php in run and construct objects there.
when i try to use this code...
i receive:
Warning: Missing argument 1 for Crypt_Blowfish::Crypt_Blowfish(), called in D:\xampp-5-5\htdocs\user\Net\SSH2.php on line 1529 and defined in D:\xampp-5-5\php\pear\Crypt\Blowfish.php on line 94
Strict Standards: Non-static method PEAR::raiseError() should not be called statically, assuming $this from incompatible context in D:\xampp-5-5\php\pear\Crypt\Blowfish.php on line 255
Key must be a string All done.
I think thread does not know where is the key or smth. I tried also to create Net_SSH2 object inside run() but then i reached some other interesting error. So the question is - Is this approach of passing object to the thead constructor the best i can use or no and any advice should be appreciated. The other question is - Is there any good chanse to make phpseclib and pthreads work together?
The text was updated successfully, but these errors were encountered: