add_signal("test"); $this->name = "Test"; } public function say_hello() { echo "Hello guys!\n"; $this->test->emit(); } } function hello($obj, $name) { echo "Hello $obj->name, I'm $name!\n"; } $o = new Test(); $o->test->connect('hello', 'John'); $o->test->connect('hello', 'Marcel'); $o->say_hello(); $o->test = null; # [sf:antea] phpsig $ php test.php # Hello guys! # Hello Test, I'm John! # Hello Test, I'm Marcel! # Fatal error: Uncaught exception 'Exception' with message 'Can't override signals' in /home/sf/tmp/phpsig/sig.php:117 # ex:ts=2:et: ?>