Bug #74456 [NEW]: Segmentation error while running a script in CLI mode

From: Date: Mon, 17 Apr 2017 08:38:50 +0000
Subject: Bug #74456 [NEW]: Segmentation error while running a script in CLI mode
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-208612@lists.php.net to get a copy of this message
From: dumitru at floringabriel dot com Operating system: Debian 8 PHP version: master-Git-2017-04-17 (Git) Package: Scripting Engine problem Bug Type: Bug Bug description:Segmentation error while running a script in CLI mode Description: ------------ When running the following script a 'Segmentation fault' error is being displayed and the script is stoped. php -v PHP 7.1.3-3+0~20170325135815.21+jessie~1.gbpafff68 (cli) (built: Mar 25 2017 14:35:42) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.1.3-3+0~20170325135815.21+jessie~1.gbpafff68, Copyright (c) 1999-2017, by Zend Technologies Test script: --------------- <?php function small_numbers() { return [0,1,2]; } list ($zero, $one, $two) = small_numbers(); print_r(array_keys(get_defined_vars())); Expected result: ---------------- Segmentation fault Actual result: -------------- Array ( [0] => _GET [1] => _POST [2] => _COOKIE [3] => _FILES [4] => zero [5] => one [6] => two ) -- Edit bug report at https://bugs.php.net/bug.php?id=74456&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74456&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74456&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74456&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74456&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74456&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74456&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74456&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74456&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74456&r=support Expected behavior: https://bugs.php.net/fix.php?id=74456&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74456&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74456&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74456&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74456&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74456&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74456&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74456&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74456&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74456&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74456&r=mysqlcfg

« previous php.bugs (#208612) next »