-
Notifications
You must be signed in to change notification settings - Fork 8k
Missing addref for __unset #21603
Copy link
Copy link
Open
Description
Description
The following code:
<?php
class C {
public function __unset($name) {
global $c;
$c = null;
var_dump($this);
}
}
$c = new C;
unset($c->prop);Resulted in this output:
Segfault
But I expected this output instead:
Originally reported by @cnwangjihe.
PHP Version
PHP 8.2+
Operating System
No response
Reactions are currently unavailable