2017-04-01 13:20:57 +02:00
|
|
|
<?php
|
2017-04-01 13:22:08 +02:00
|
|
|
|
2017-05-16 15:12:04 +02:00
|
|
|
$service_port = getservbyname('www', 'tcp');
|
|
|
|
$address = gethostbyname('www.google.com');
|
|
|
|
var_dump(unpack('q', pack('l', 200).chr(0).chr(0).chr(0).chr(0)));
|
|
|
|
class a extends Volatile
|
|
|
|
{
|
|
|
|
public $a = [];
|
|
|
|
|
|
|
|
public function run()
|
|
|
|
{
|
|
|
|
$this->a[1] = new b();
|
|
|
|
$this->a[1]->a['a'] = [];
|
|
|
|
var_dump($this);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
class b extends \Volatile
|
|
|
|
{
|
|
|
|
public $a = [];
|
|
|
|
}
|
|
|
|
class main extends Threaded
|
|
|
|
{
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
$this->a = new a();
|
|
|
|
var_dump($this->a);
|
|
|
|
$this->a->run();
|
|
|
|
// One of the OH NOES (b) is printed here
|
|
|
|
}
|
|
|
|
|
|
|
|
public function run()
|
|
|
|
{
|
|
|
|
// $this->a;
|
|
|
|
}
|
2017-04-01 13:22:08 +02:00
|
|
|
}
|
2017-05-16 15:12:04 +02:00
|
|
|
$a = new main();
|
|
|
|
$pool = new Pool(1);
|
|
|
|
//$pool->submit($a); // One of the OH NOES (a) is printed here
|