Bug #77793 [Opn]: Segmentation fault

From: Date: Mon, 25 Mar 2019 16:14:00 +0000
Subject: Bug #77793 [Opn]: Segmentation fault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-220172@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 User updated by: contact at joycebabu dot com Reported by: contact at joycebabu dot com Summary: Segmentation fault Status: Open 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: As per the following online PHP interpreter, the issue is present in 7.3.x only. https://3v4l.org/PSMRW Previous Comments: ------------------------------------------------------------------------ [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 (#220172) next »