[php-src] PR #19162: Remove incorrect uses of zval_ptr_dtor
| From: | nielsdos | Date: | Thu, 17 Jul 2025 18:37:35 +0000 |
| Subject: | [php-src] PR #19162: Remove incorrect uses of zval_ptr_dtor | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-32490@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/19162
Author: nielsdos
zval_ptr_dtor followed by RETURN_THROWS is always wrong, unless the return value is overwritten in
between. That's because the VM will already destroy the zval, leading to double destroying it.