Bug #77793 [Opn->Ver]: Segmentation fault

From: Date: Mon, 25 Mar 2019 16:14:53 +0000
Subject: Bug #77793 [Opn->Ver]: Segmentation fault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-220173@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77793&edit=1 ID: 77793 Updated by: nikic@php.net Reported by: contact at joycebabu dot com Summary: Segmentation fault -Status: Open +Status: Verified Type: Bug Package: Unknown/Other Function Operating System: macOs Mojave 10.14.2 PHP Version: 7.3.3 Block user comment: N Private report: N New Comment: Confirm that this is faulting on 7.3 and working on 7.2. Previous Comments: ------------------------------------------------------------------------ [2019-03-25 16:14:00] contact at joycebabu dot com As per the following online PHP interpreter, the issue is present in 7.3.x only. https://3v4l.org/PSMRW ------------------------------------------------------------------------ [2019-03-25 16:10:16] contact at joycebabu dot com Description: ------------ The following test code causes PHP to exit with a segmentation fault. Test script: --------------- <?php register_shutdown_function(function () { $hookInfo = [function () {}]; $hooks[][] = [$hookInfo]; }); $options = [ 'sort' => [] ]; $defaultOption = ['sort' => []]; $sort = &$options['sort']; $sort['direction'] = 'asc'; $val = array_merge($defaultOption, $options); extract($val); print_r($val); Expected result: ---------------- Array ( [sort] => Array ( [direction] => asc ) ) Actual result: -------------- Array ( [sort] => Array ( [direction] => asc ) ) Segmentation fault: 11 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77793&edit=1

« previous php.bugs (#220173) next »