[php-src] Issue #11613: extract($GLOBALS, EXTR_REFS); does not generate an error, and does not work.
| From: | divinity76 | Date: | Fri, 07 Jul 2023 08:01:28 +0000 |
| Subject: | [php-src] Issue #11613: extract($GLOBALS, EXTR_REFS); does not generate an error, and does not work. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-244899@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/11613
Author: divinity76
### Description
The following code:
```php
<?php extract($GLOBALS, EXTR_REFS);?>
```
Resulted in this output:
```
```
But I expected this output instead:
```
Fatal error: Uncaught Error: extract(): Argument #1 ($array) cannot be passed by reference
```
### PHP Version
PHP 8.2.7
### Operating System
N/A