| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2019-03-25 16:14 UTC] contact at joycebabu dot com
  [2019-03-25 16:14 UTC] nikic@php.net
 
-Status: Open
+Status: Verified
  [2019-03-25 16:14 UTC] nikic@php.net
  [2019-03-25 16:22 UTC] nikic@php.net
 
-Status:      Verified
+Status:      Assigned
-Assigned To:
+Assigned To: nikic
  [2019-03-25 16:22 UTC] nikic@php.net
  [2019-03-25 16:32 UTC] nikic@php.net
 
-Summary: Segmentation fault
+Summary: Segmentation fault in extract() when overwriting
          reference with itself
  [2019-03-25 16:36 UTC] nikic@php.net
  [2019-03-25 16:36 UTC] nikic@php.net
 
-Status: Assigned
+Status: Closed
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 13:00:02 2025 UTC | 
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