We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class ZookeeperDemo extends Zookeeper { public function watcher( $i, $type, $key ) { echo "Insider Watcher\n"; // Watcher gets consumed so we need to set a new one $this->get( '/bar', array($this, 'watcher' ) ); } } $zoo = new ZookeeperDemo('127.0.0.1:2181'); $zoo->set('/bar', 1); $zoo->get( '/bar', array($zoo, 'watcher') ); while( true ) { echo '.'; sleep(2); }
running this in php-5.5.6 will report a php warning: PHP Warning: Unknown: could not invoke watcher callback in Unknown on line 0
The text was updated successfully, but these errors were encountered:
It seems that php must be thread safety disabled to make wathcer work. I turned my php from thread safety to no-safety and this problem is fixed.
Sorry, something went wrong.
Would you try new function zookeeper_dispatch()?
zookeeper_dispatch()
No branches or pull requests
running this in php-5.5.6 will report a php warning:
PHP Warning: Unknown: could not invoke watcher callback in Unknown on line 0
The text was updated successfully, but these errors were encountered: