[php-src] Issue #14980: Proposal: Dump circular references in var_export() using IIFE
| From: | carlosmintfan | Date: | Tue, 16 Jul 2024 17:51:08 +0000 |
| Subject: | [php-src] Issue #14980: Proposal: Dump circular references in var_export() using IIFE | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-247304@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/14980
Author: carlosmintfan
### Description
When having
$a = array(&$a) and calling var_export($a), instead of
getting
```
PHP Warning: var_export does not handle circular references in php shell code on line 1
array (
0 => NULL,
)
``, we could make it return an IIFE like