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
This test verifies that objects that have gone away do not cause segfaults
--FILE--
<?php
class O extends Threaded {
public function run() {
}
}
class T extends Thread {
public $o;
public function run() {
$this->o = new O();
/* this will disappear */
$this->o["data"] = true;
}
}
$t = new T();
$t->start();
$t->join();
var_dump($t->o);
?>
--EXPECTF--
Fatal error: Uncaught exception 'RuntimeException' with message 'pthreads detected an attempt to connect to a O which has already been destroyed' in %s:%d