Bug #73480 [NEW]: php exit 127 on recursive function call
From: odigiman at gmail dot com
Operating system: Windows
PHP version: 7.0.12
Package: Reproducible crash
Bug Type: Bug
Bug description:php exit 127 on recursive function call
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 bug report at https://bugs.php.net/bug.php?id=73480&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73480&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73480&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73480&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73480&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73480&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73480&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73480&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73480&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73480&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73480&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73480&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73480&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73480&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73480&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73480&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73480&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73480&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73480&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73480&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73480&r=mysqlcfg
Thread (2 messages)
- odigiman at gmail dot com