Bug #74456 [Opn->Fbk]: Segmentation error while running a script in CLI mode
| From: | requinix@php.net | Date: | Mon, 17 Apr 2017 08:46:05 +0000 |
| Subject: | Bug #74456 [Opn->Fbk]: Segmentation error while running a script in CLI mode | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-208614@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74456&edit=1
ID: 74456
Updated by: requinix@php.net
Reported by: dumitru at floringabriel dot com
Summary: Segmentation error while running a script in CLI
mode
-Status: Open
+Status: Feedback
Type: Bug
Package: Scripting Engine problem
Operating System: Debian 8
PHP Version: master-Git-2017-04-17 (Git)
Block user comment: N
Private report: N
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2017-04-17 08:38:45] dumitru at floringabriel dot com
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 this bug report at https://bugs.php.net/bug.php?id=74456&edit=1