Bug #73480 [Opn->Fbk]: php exit 127 on recursive function call
| From: | ab@php.net | Date: | Wed, 09 Nov 2016 10:59:35 +0000 |
| Subject: | Bug #73480 [Opn->Fbk]: php exit 127 on recursive function call | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-205253@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73480&edit=1
ID: 73480
Updated by: ab@php.net
Reported by: odigiman at gmail dot com
Summary: php exit 127 on recursive function call
-Status: Open
+Status: Feedback
Type: Bug
Package: Reproducible crash
Operating System: Windows
PHP Version: 7.0.12
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:
------------------------------------------------------------------------
[2016-11-08 17:52:02] odigiman at gmail dot com
Description:
------------
Uncontrolled recursive function call triggers exit 127 on Windows instead of the expected out of
memory fatal error. This does not occur on any Linux distributions I have tested.
Loaded extensions:
Core
bcmath
calendar
ctype
date
filter
hash
iconv
json
mcrypt
SPL
pcre
Reflection
session
standard
mysqlnd
tokenizer
zip
zlib
libxml
dom
PDO
openssl
SimpleXML
xml
wddx
xmlreader
xmlwriter
Weakref
curl
mysqli
sqlite3
sockets
mbstring
yaml
pthreads
Phar
com_dotnet
Zend OPcache
Test script:
---------------
<?php
function recursive(){
recursive();
}
recursive();
Expected result:
----------------
Fatal error: Allowed memory size of xxxxx bytes exhausted (tried to allocate xxx bytes) in
C:\Users\User\Desktop\recursive.php
Actual result:
--------------
php.exe: Exit 127
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73480&edit=1