[php-src] Issue #21639: Volatile arguments in frameless calls

[email protected] (iluuu1994)
Newsgroups php.bugs
Message-ID <[email protected]>
Issue: https://github.com/php/php-src/issues/21639
Author: iluuu1994

### Description

```php
<?php

class C {
    public function __toString(): string {
        global $arr;
        $arr = null;
        return "C";
    }
}

$arr = [new C, 42];
implode(", ", $arr);
```

Resulted in this output:
```
Segfault
```

But I expected this output instead:
```
```

Originally reported by @cnwangjihe.

### PHP Version

```plain
PHP 8.4+
```

### Operating System

_No response_
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.