php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77466 random segfault after fatal error
Submitted: 2019-01-16 09:40 UTC Modified: 2019-01-16 09:51 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: webox955 at gmail dot com Assigned:
Status: Wont fix Package: FPM related
PHP Version: 5.6.40 OS: Centos 7
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: webox955 at gmail dot com
New email:
PHP Version: OS:

 

 [2019-01-16 09:40 UTC] webox955 at gmail dot com
Description:
------------
This bug reproduct on 5.6.39 too. I use apache 2.4 (mod_proxy) + php-fpm. When php-fpm report like this:
[15-Jan-2019 18:58:21] WARNING: [pool www] child 4265 said into stderr: "NOTICE: PHP message: PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 85 bytes) in /var/www/my project_name/htdocs/bitrix/modules/main/classes/mysql/database_mysql.php on line 136"

Not regular, but not null probability:                                                                                                                                                                                                   
[Tue Jan 15 18:59:43 2019] php-fpm[4265]: segfault at 56003432007b ip 0000564c0781f7ca sp 00007ffd78fc3768 error 6 in php-fpm[564c075bf000+3a6000]                                                                                                                            
[Tue Jan 15 19:00:11 2019] php-fpm[4596]: segfault at ffffffff ip 0000564c077d4b8d sp 00007ffd78fc33d0 error 4 in php-fpm[564c075bf000+3a6000]                                                                                                                                
[Tue Jan 15 19:01:51 2019] php-fpm[5335]: segfault at ffffffff ip 0000564c077d4b8d sp 00007ffd78fc3720 error 4 in php-fpm[564c075bf000+3a6000]                                                                                                                                
[Tue Jan 15 19:02:26 2019] php-fpm[5343]: segfault at ffffffff ip 0000564c077d4b8d sp 00007ffd78fc2d40 error 4 in php-fpm[564c075bf000+3a6000]                                                                                                                                
[Tue Jan 15 19:04:27 2019] php-fpm[6268]: segfault at ffffffff ip 0000564c077d4b8d sp 00007ffd78fc3790 error 4 in php-fpm[564c075bf000+3a6000]                                                                                                                                
[Tue Jan 15 19:07:49 2019] php-fpm[7655]: segfault at ffffffff ip 0000564c077d4b8d sp 00007ffd78fc2d40 error 4 in php-fpm[564c075bf000+3a6000]                                                                                                                                
[Tue Jan 15 19:07:57 2019] php-fpm[7479]: segfault at ffffffff ip 0000564c077d4b8d sp 00007ffd78fc3740 error 4 in php-fpm[564c075bf000+3a6000]                                                                                                                                
[Tue Jan 15 19:09:11 2019] php-fpm[8183]: segfault at ffffffff ip 0000564c077d4b8d sp 00007ffd78fc3790 error 4 in php-fpm[564c075bf000+3a6000]     
[Tue Jan 15 19:14:01 2019] php-fpm[10075]: segfault at ffffffff ip 0000564c077d4b8d sp 00007ffd78fc36f0 error 4 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:08 2019] traps: php-fpm[10714] general protection ip:564c077d4d01 sp:7ffd78fc3750 error:0 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:08 2019] php-fpm[10551]: segfault at 564c0000016d ip 0000564c0780dd46 sp 00007ffd78fc3190 error 4 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:08 2019] php-fpm[10829]: segfault at 564c0000007c ip 0000564c0780dd46 sp 00007ffd78fc3190 error 4 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:08 2019] php-fpm[10681]: segfault at 564c00000078 ip 0000564c0780dd46 sp 00007ffd78fc3190 error 4 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:08 2019] php-fpm[10680]: segfault at 564c0000007c ip 0000564c0780dd46 sp 00007ffd78fc3190 error 4 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:08 2019] php-fpm[10676]: segfault at 564c00000191 ip 0000564c0780dd46 sp 00007ffd78fc12c0 error 4 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:08 2019] php-fpm[10798]: segfault at 564c0000007c ip 0000564c0780dd46 sp 00007ffd78fc3190 error 4 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:08 2019] php-fpm[10830]: segfault at 564c0000007d ip 0000564c0780dd46 sp 00007ffd78fc3190 error 4 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:08 2019] php-fpm[10834]: segfault at 7f5500000078 ip 0000564c0780dd46 sp 00007ffd78fc3190 error 4 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:14 2019] show_signal_msg: 25 callbacks suppressed
[Tue Jan 15 19:16:14 2019] php-fpm[10868]: segfault at 564c00000190 ip 0000564c0780dd46 sp 00007ffd78fc12c0 error 4 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:14 2019] php-fpm[10874]: segfault at 564c0000007d ip 0000564c0780dd46 sp 00007ffd78fc3190 error 4 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:14 2019] php-fpm[10875]: segfault at 8 ip 0000564c077fd7c5 sp 00007ffd78fc1378 error 4 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:14 2019] php-fpm[10696]: segfault at 564c000001b1 ip 0000564c0780dd46 sp 00007ffd78fc12c0 error 4 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:15 2019] php-fpm[10876]: segfault at 564c00000250 ip 0000564c0780dd46 sp 00007ffd78fc12c0 error 4 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:16 2019] php-fpm[10877]: segfault at 564c00000233 ip 0000564c0780dd46 sp 00007ffd78fc12c0 error 4 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:16 2019] php-fpm[10881]: segfault at 8 ip 0000564c077fd7c5 sp 00007ffd78fc3248 error 4 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:16 2019] php-fpm[10878]: segfault at 564c00000250 ip 0000564c0780dd46 sp 00007ffd78fc12c0 error 4 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:16 2019] php-fpm[10884]: segfault at 564c00000194 ip 0000564c0780dd46 sp 00007ffd78fc12c0 error 4 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:17 2019] php-fpm[10885]: segfault at 8 ip 0000564c077fd7c5 sp 00007ffd78fc1378 error 4 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:19 2019] show_signal_msg: 5 callbacks suppressed
[Tue Jan 15 19:16:19 2019] php-fpm[10904]: segfault at 564c0000016c ip 0000564c0780dd46 sp 00007ffd78fc12c0 error 4 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:19 2019] php-fpm[10902]: segfault at 8 ip 0000564c077fd7c5 sp 00007ffd78fc3248 error 4 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:20 2019] php-fpm[10907]: segfault at 7f5500000079 ip 0000564c0780dd46 sp 00007ffd78fc3190 error 4 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:20 2019] php-fpm[10906]: segfault at 564c0000016d ip 0000564c0780dd46 sp 00007ffd78fc3190 error 4 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:20 2019] php-fpm[10911]: segfault at 8 ip 0000564c077fd7c5 sp 00007ffd78fc3248 error 4 in php-fpm[564c075bf000+3a6000]
[Tue Jan 15 19:16:22 2019] php-fpm[10912]: segfault at 7f5500000079 ip 0000564c0780dd46 sp 00007ffd78fc3190 error 4 in php-fpm[564c075bf000+3a6000]

- not only one script can do this, bat always "Allowed memory size" error before mass segfault
- I can't disable opcache, because x4 LA on production servers
- can't reproduce, only race condition
- if segfault run with mass error (response code 500+), our monitoring try hard restart, and i can't debug all cases, but if can, I try exec opcache_reset() by php script, and it is work.
- I try increase opcache.log_verbosity_level to 3, and write script to do opcache_compile_file(), buy log file, but cannot reproduce. When this script return error, I extend my opcache black list. Script from top (database_mysql.php) already been there.
- On normal load, with low level bad response code, I infinity have 1 segfault on 3-7 minutes, until restart or flush opcache.
- can't disable Zend Memory Manager, after this action, I can get phpinfo, but our project not working.
- On release 5.6.39 I rebuild php from src (src rpm from remi):
   1. Cannot rebuild debug version, because not all modules src rpm in remi repos
   2. When rebuild with -fsanitize=address, many memory error in php -i (for example). I run many test with valgrind. I understand what I have moor memory leak (curl.so for example), but this is not interesting in my cases. My problem is mass segfault (11 signal).
- one server in production environment build from sources with optflags: x86_64 -O0 -fPIC -g -ggdb2. Only one server gather coredump. All core segfault on low level memory operation (zend_alloc.c for example) or MAKE_STD_ZVAL macros.
- "zend_mm_heap corrupted" on php-fpm log, when bug shoot.

I think my problem like this:
https://bugs.php.net/bug.php?id=64297
https://bugs.php.net/bug.php?id=71135

This is my heavy pain. Is last comment by first link(?id=64297) treats me?

phpinfo:
X-Powered-By: PHP/5.6.39
Content-type: text/html; charset=UTF-8

#!/bin/bash
REQUEST_METHOD=GET SCRIPT_FILENAME="/info.php" SCRIPT_NAME="info.php" cgi-fcgi -bind -connect /var/run/php-fpm/listen.sock
exit 0
phpinfo()
PHP Version 5.6.39
System Linux bitr01.int.<my project_name>.com 3.10.0-693.17.1.el7.ocfs2.x86_64 #1 SMP Wed Feb 14 16:18:44 MSK 2018 x86_64 
Build Date Dec 21 2018 15:49:29 
Server API FPM/FastCGI 
Virtual Directory Support disabled 
Configuration File (php.ini) Path /etc 
Loaded Configuration File /etc/php.ini 
Scan this dir for additional .ini files /etc/php.d 
Additional .ini files parsed /etc/php.d/10-opcache.ini,
/etc/php.d/20-bcmath.ini,
/etc/php.d/20-bz2.ini,
/etc/php.d/20-calendar.ini,
/etc/php.d/20-ctype.ini,
/etc/php.d/20-curl.ini,
/etc/php.d/20-dom.ini,
/etc/php.d/20-exif.ini,
/etc/php.d/20-fileinfo.ini,
/etc/php.d/20-ftp.ini,
/etc/php.d/20-gd.ini,
/etc/php.d/20-gettext.ini,
/etc/php.d/20-iconv.ini,
/etc/php.d/20-intl.ini,
/etc/php.d/20-mbstring.ini,
/etc/php.d/20-mcrypt.ini,
/etc/php.d/20-mysqlnd.ini,
/etc/php.d/20-pdo.ini,
/etc/php.d/20-phar.ini,
/etc/php.d/20-posix.ini,
/etc/php.d/20-shmop.ini,
/etc/php.d/20-simplexml.ini,
/etc/php.d/20-soap.ini,
/etc/php.d/20-sockets.ini,
/etc/php.d/20-sqlite3.ini,
/etc/php.d/20-sysvmsg.ini,
/etc/php.d/20-sysvsem.ini,
/etc/php.d/20-sysvshm.ini,
/etc/php.d/20-tokenizer.ini,
/etc/php.d/20-xml.ini,
/etc/php.d/20-xmlwriter.ini,
/etc/php.d/20-xsl.ini,
/etc/php.d/30-mysql.ini,
/etc/php.d/30-mysqli.ini,
/etc/php.d/30-pdo_mysql.ini,
/etc/php.d/30-pdo_sqlite.ini,
/etc/php.d/30-wddx.ini,
/etc/php.d/30-xmlreader.ini,
/etc/php.d/40-amqp.ini,
/etc/php.d/40-apcu.ini,
/etc/php.d/40-igbinary.ini,
/etc/php.d/40-json.ini,
/etc/php.d/40-memcache.ini,
/etc/php.d/40-msgpack.ini,
/etc/php.d/40-zip.ini,
/etc/php.d/50-memcached.ini,
/etc/php.d/50-mongodb.ini,
/etc/php.d/50-redis.ini
 
PHP API 20131106 
PHP Extension 20131226 
Zend Extension 220131226 
Zend Extension Build API220131226,NTS 
PHP Extension Build API20131226,NTS 
Debug Build no 
Thread Safety disabled 
Zend Signal Handling disabled 
Zend Memory Manager enabled 
Zend Multibyte Support provided by mbstring 
IPv6 Support enabled 
DTrace Support available, disabled 
Registered PHP Streamshttps, ftps, compress.zlib, php, file, glob, data, http, ftp, compress.bzip2, phar, zip
Registered Stream Socket Transportstcp, udp, unix, udg, ssl, sslv3, tls, tlsv1.0, tlsv1.1, tlsv1.2
Registered Stream Filterszlib.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, bzip2.*, convert.iconv.*, mcrypt.*, mdecrypt.*
This program makes use of the Zend Scripting Language Engine:Zend&nbsp;Engine&nbsp;v2.6.0,&nbsp;Copyright&nbsp;(c)&nbsp;1998-2016&nbsp;Zend&nbsp;Technologies&nbsp;&nbsp;&nbsp;&nbsp;with&nbsp;Zend&nbsp;OPcache&nbsp;v7.0.6-dev,&nbsp;Copyright&nbsp;(c)&nbsp;1999-2016,&nbsp;by&nbsp;Zend&nbsp;Technologies
Configuration
amqp
Version1.9.3
Revisionrelease
CompiledOct 19 2017 @ 17:41:59
AMQP protocol version0-9-1
librabbitmq version0.8.0
Default max channels per connection256
Default max frame size131072
Default heartbeats interval0
DirectiveLocal ValueMaster Value
amqp.auto_ack00
amqp.cacertno valueno value
amqp.certno valueno value
amqp.channel_max256256
amqp.connect_timeout00
amqp.frame_max131072131072
amqp.heartbeat00
amqp.hostlocalhostlocalhost
amqp.keyno valueno value
amqp.loginguestguest
amqp.passwordguestguest
amqp.port56725672
amqp.prefetch_count33
amqp.read_timeout00
amqp.timeoutno valueno value
amqp.verify11
amqp.vhost//
amqp.write_timeout00
apc
APC support Emulated 
apcu
APCu SupportEnabled
Version 4.0.11 
APCu Debugging Disabled 
MMAP Support Enabled 
MMAP File Mask no value 
Serialization Support php, igbinary 
Revision $Revision: 328290 $ 
Build Date May  4 2016 17:40:45 
DirectiveLocal ValueMaster Value
apc.coredump_unmapOffOff
apc.enable_cliOffOff
apc.enabledOnOn
apc.entries_hint40964096
apc.gc_ttl36003600
apc.mmap_file_maskno valueno value
apc.preload_pathno valueno value
apc.rfc1867OffOff
apc.rfc1867_freq00
apc.rfc1867_nameAPC_UPLOAD_PROGRESSAPC_UPLOAD_PROGRESS
apc.rfc1867_prefixupload_upload_
apc.rfc1867_ttl36003600
apc.serializerphpphp
apc.shm_segments11
apc.shm_size32M32M
apc.slam_defenseOnOn
apc.smart00
apc.ttl00
apc.use_request_timeOnOn
apc.writable/tmp/tmp
bcmath
BCMath support enabled 
DirectiveLocal ValueMaster Value
bcmath.scale00
bz2
BZip2 Support Enabled 
Stream Wrapper support compress.bzip2:// 
Stream Filter support bzip2.decompress, bzip2.compress 
BZip2 Version 1.0.6, 6-Sept-2010 
calendar
Calendar support enabled 
cgi-fcgi
php-fpm active 
DirectiveLocal ValueMaster Value
cgi.discard_path00
cgi.fix_pathinfo11
cgi.force_redirect11
cgi.nph00
cgi.redirect_status_envno valueno value
cgi.rfc2616_headers00
fastcgi.error_headerno valueno value
fastcgi.logging11
fpm.configno valueno value
Core
PHP Version 5.6.39 
DirectiveLocal ValueMaster Value
allow_url_fopenOnOn
allow_url_includeOffOff
always_populate_raw_post_data00
arg_separator.input&amp;&amp;
arg_separator.output&amp;&amp;
asp_tagsOffOff
auto_append_fileno valueno value
auto_globals_jitOnOn
auto_prepend_fileno valueno value
browscapno valueno value
default_charsetUTF-8UTF-8
default_mimetypetext/htmltext/html
disable_classesno valueno value
disable_functionsno valueno value
display_errorsOffOff
display_startup_errorsOffOff
doc_rootno valueno value
docref_extno valueno value
docref_rootno valueno value
enable_dlOffOff
enable_post_data_readingOnOn
error_append_stringno valueno value
error_logno valueno value
error_prepend_stringno valueno value
error_reporting2252722527
exit_on_timeoutOffOff
expose_phpOnOn
extension_dir/usr/lib64/php/modules/usr/lib64/php/modules
file_uploadsOnOn
highlight.comment#FF8000#FF8000
highlight.default#0000BB#0000BB
highlight.html#000000#000000
highlight.keyword#007700#007700
highlight.string#DD0000#DD0000
html_errorsOnOn
ignore_repeated_errorsOffOff
ignore_repeated_sourceOffOff
ignore_user_abortOffOff
implicit_flushOffOff
include_path.:/usr/share/pear:/usr/share/php.:/usr/share/pear:/usr/share/php
input_encodingno valueno value
internal_encodingno valueno value
log_errorsOnOn
log_errors_max_len10241024
mail.add_x_headerOnOn
mail.force_extra_parametersno valueno value
mail.logno valueno value
max_execution_time9090
max_file_uploads2020
max_input_nesting_level6464
max_input_time300300
max_input_vars10001000
memory_limit2048M2048M
open_basedirno valueno value
output_buffering40964096
output_encodingno valueno value
output_handlerno valueno value
post_max_size256M256M
precision1414
realpath_cache_size8M8M
realpath_cache_ttl120120
register_argc_argvOffOff
report_memleaksOnOn
report_zend_debugOnOn
request_orderGPGP
sendmail_fromno valueno value
sendmail_path/usr/sbin/sendmail&nbsp;-t&nbsp;-i/usr/sbin/sendmail&nbsp;-t&nbsp;-i
serialize_precision1717
short_open_tagOnOn
SMTPlocalhostlocalhost
smtp_port2525
sql.safe_modeOffOff
sys_temp_dirno valueno value
track_errorsOffOff
unserialize_callback_funcno valueno value
upload_max_filesize256M256M
upload_tmp_dirno valueno value
user_dirno valueno value
user_ini.cache_ttl300300
user_ini.filename.user.ini.user.ini
variables_orderGPCSGPCS
xmlrpc_error_number00
xmlrpc_errorsOffOff
zend.detect_unicodeOnOn
zend.enable_gcOnOn
zend.multibyteOffOff
zend.script_encodingno valueno value
ctype
ctype functions enabled 
curl
cURL support enabled 
cURL Information 7.29.0 
Age 3 
Features 
AsynchDNS Yes 
CharConv No 
Debug No 
GSS-Negotiate Yes 
IDN Yes 
IPv6 Yes 
krb4 No 
Largefile Yes 
libz Yes 
NTLM Yes 
NTLMWB Yes 
SPNEGO No 
SSL Yes 
SSPI No 
TLS-SRP No 
Protocols dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtsp, scp, sftp, smtp, smtps, telnet, tftp 
Host x86_64-redhat-linux-gnu 
SSL Version NSS/3.36 
ZLib Version 1.2.7 
libSSH Version libssh2/1.4.3 
date
date/time support enabled 
&quot;Olson&quot; Timezone Database Version 0.system 
Timezone Database internal 
Default timezone Europe/Moscow 
DirectiveLocal ValueMaster Value
date.default_latitude31.766731.7667
date.default_longitude35.233335.2333
date.sunrise_zenith90.58333390.583333
date.sunset_zenith90.58333390.583333
date.timezoneEurope/MoscowEurope/Moscow
dom
DOM/XML enabled 
DOM/XML API Version 20031129 
libxml Version 2.9.1 
HTML Support enabled 
XPath Support enabled 
XPointer Support enabled 
Schema Support enabled 
RelaxNG Support enabled 
ereg
Regex Library Bundled library enabled 
exif
EXIF Support enabled 
EXIF Version 1.4 $Id: cad29b729548e4206f0697710cc9e177f26fdff3 $ 
Supported EXIF Version 0220 
Supported filetypes JPEG,TIFF 
DirectiveLocal ValueMaster Value
exif.decode_jis_intelJISJIS
exif.decode_jis_motorolaJISJIS
exif.decode_unicode_intelUCS-2LEUCS-2LE
exif.decode_unicode_motorolaUCS-2BEUCS-2BE
exif.encode_jisno valueno value
exif.encode_unicodeISO-8859-15ISO-8859-15
fileinfo
fileinfo support enabled 
version 1.0.5 
libmagic 517 
filter
Input Validation and Filtering enabled 
Revision $Id: 5b79667bd9a68977a9b4f7505223a8e216e04908 $ 
DirectiveLocal ValueMaster Value
filter.defaultunsafe_rawunsafe_raw
filter.default_flagsno valueno value
ftp
FTP support enabled 
gd
GD Support enabled 
GD headers Version 2.2.5 
GD library Version 2.2.5 
FreeType Support enabled 
FreeType Linkage with freetype 
FreeType Version 2.8.0 
T1Lib Support enabled 
GIF Read Support enabled 
GIF Create Support enabled 
JPEG Support enabled 
libJPEG Version 6b 
PNG Support enabled 
libPNG Version 1.5.13 
WBMP Support enabled 
XPM Support enabled 
libXpm Version 30411 
XBM Support enabled 
WebP Support enabled 
DirectiveLocal ValueMaster Value
gd.jpeg_ignore_warning00
gettext
GetText Support enabled 
hash
hash support enabled 
Hashing Engines md2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost gost-crypto adler32 crc32 crc32b fnv132 fnv1a32 fnv164 fnv1a64 joaat haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5  
iconv
iconv support enabled 
iconv implementation glibc 
iconv library version 2.17 
DirectiveLocal ValueMaster Value
iconv.input_encodingno valueno value
iconv.internal_encodingno valueno value
iconv.output_encodingno valueno value
igbinary
igbinary support enabled 
igbinary version 2.0.5 
igbinary APCU serializer ABI 0 
igbinary session support yes 
DirectiveLocal ValueMaster Value
igbinary.compact_stringsOnOn
intl
Internationalization supportenabled
version 1.1.0 
ICU version 50.1.2 
ICU Data version 50.1 
DirectiveLocal ValueMaster Value
intl.default_localeno valueno value
intl.error_level00
intl.use_exceptions00
json
json support enabled 
json version 1.3.10 
JSON-C version (bundled) 0.11 
libxml
libXML support active 
libXML Compiled Version 2.9.1 
libXML Loaded Version 20901 
libXML streams enabled 
mbstring
Multibyte Support enabled 
Multibyte string engine libmbfl 
HTTP input encoding translation disabled 
libmbfl version 1.3.2 
mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.
Multibyte (japanese) regex support enabled 
Multibyte regex (oniguruma) backtrack check On 
Multibyte regex (oniguruma) version 5.9.5 
DirectiveLocal ValueMaster Value
mbstring.detect_orderno valueno value
mbstring.encoding_translationOffOff
mbstring.func_overload77
mbstring.http_inputno valueno value
mbstring.http_outputno valueno value
mbstring.http_output_conv_mimetypes^(text/|application/xhtml\+xml)^(text/|application/xhtml\+xml)
mbstring.internal_encodingUTF-8UTF-8
mbstring.languageneutralneutral
mbstring.strict_detectionOffOff
mbstring.substitute_characterno valueno value
mcrypt
mcrypt supportenabled
mcrypt_filter supportenabled
Version 2.5.8 
Api No 20021217 
Supported ciphers cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes  
Supported modes cbc cfb ctr ecb ncfb nofb ofb stream  
DirectiveLocal ValueMaster Value
mcrypt.algorithms_dirno valueno value
mcrypt.modes_dirno valueno value
memcache
memcache supportenabled
Version 3.0.8 
Revision $Revision: 329835 $ 
DirectiveLocal ValueMaster Value
memcache.allow_failover11
memcache.chunk_size3276832768
memcache.compress_threshold2000020000
memcache.default_port1121111211
memcache.hash_functioncrc32crc32
memcache.hash_strategyconsistentconsistent
memcache.lock_timeout1515
memcache.max_failover_attempts2020
memcache.protocolasciiascii
memcache.redundancy11
memcache.session_redundancy22
memcached
memcached supportenabled
Version 2.2.0 
libmemcached version 1.0.16 
SASL support yes 
Session support yes 
igbinary support yes 
json support yes 
msgpack support yes 
DirectiveLocal ValueMaster Value
memcached.compression_factor1.31.3
memcached.compression_threshold20002000
memcached.compression_typefastlzfastlz
memcached.serializerigbinaryigbinary
memcached.sess_binaryno valueno value
memcached.sess_connect_timeout10001000
memcached.sess_consistent_hashno valueno value
memcached.sess_lock_expire00
memcached.sess_lock_max_wait00
memcached.sess_lock_wait150000150000
memcached.sess_lockingno valueno value
memcached.sess_number_of_replicas00
memcached.sess_prefixmemc.sess.key.memc.sess.key.
memcached.sess_randomize_replica_readno valueno value
memcached.sess_remove_failed11
memcached.sess_sasl_passwordno valueno value
memcached.sess_sasl_usernameno valueno value
memcached.store_retry_count22
memcached.use_saslno valueno value
mhash
MHASH support Enabled 
MHASH API Version Emulated Support 
mongodb
MongoDB supportenabled
MongoDB extension version 1.5.3 
MongoDB extension stability stable 
libbson bundled version 1.13.0 
libmongoc bundled version 1.13.0 
libmongoc SSL enabled 
libmongoc SSL library OpenSSL 
libmongoc crypto enabled 
libmongoc crypto library libcrypto 
libmongoc crypto system profile enabled 
libmongoc SASL enabled 
libmongoc ICU enabled 
libmongoc compression enabled 
libmongoc compression snappy enabled 
libmongoc compression zlib enabled 
DirectiveLocal ValueMaster Value
mongodb.debugno valueno value
msgpack
MessagePack Support enabled 
Session Support enabled 
extension Version 0.5.7 
header Version 0.5.4 
DirectiveLocal ValueMaster Value
msgpack.error_displayOnOn
msgpack.illegal_key_insertOffOff
msgpack.php_onlyOnOn
msgpack.use_str8_serializationOnOn
mysql
MySQL Supportenabled
Active Persistent Links 0 
Active Links 0 
Client API version mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $ 
DirectiveLocal ValueMaster Value
mysql.allow_local_infileOnOn
mysql.allow_persistentOnOn
mysql.connect_timeout6060
mysql.default_hostno valueno value
mysql.default_passwordno valueno value
mysql.default_portno valueno value
mysql.default_socket/var/lib/mysql/mysql.sock/var/lib/mysql/mysql.sock
mysql.default_userno valueno value
mysql.max_linksUnlimitedUnlimited
mysql.max_persistentUnlimitedUnlimited
mysql.trace_modeOffOff
mysqli
MysqlI Supportenabled
Client API library version mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $ 
Active Persistent Links 0 
Inactive Persistent Links 0 
Active Links 0 
DirectiveLocal ValueMaster Value
mysqli.allow_local_infileOnOn
mysqli.allow_persistentOnOn
mysqli.default_hostno valueno value
mysqli.default_port33063306
mysqli.default_pwno valueno value
mysqli.default_socket/var/lib/mysql/mysql.sock/var/lib/mysql/mysql.sock
mysqli.default_userno valueno value
mysqli.max_linksUnlimitedUnlimited
mysqli.max_persistentUnlimitedUnlimited
mysqli.reconnectOffOff
mysqli.rollback_on_cached_plinkOffOff
mysqlnd
mysqlndenabled
Version mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $ 
Compression supported 
core SSL supported 
extended SSL supported 
Command buffer size 4096 
Read buffer size 32768 
Read timeout 31536000 
Collecting statistics Yes 
Collecting memory statistics No 
Tracing n/a 
Loaded plugins mysqlnd,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password,auth_plugin_sha256_password 
API Extensions mysql,mysqli,pdo_mysql 
mysqlnd statistics 
bytes_sent 1096567 
bytes_received 6548079 
packets_sent 5672 
packets_received 61324 
protocol_overhead_in 245296 
protocol_overhead_out 22688 
bytes_received_ok_packet 0 
bytes_received_eof_packet 0 
bytes_received_rset_header_packet 19062 
bytes_received_rset_field_meta_packet 0 
bytes_received_rset_row_packet 17034 
bytes_received_prepare_response_packet 2179602 
bytes_received_change_user_packet 4313336 
packets_sent_command 2747 
packets_received_ok 0 
packets_received_eof 0 
packets_received_rset_header 2118 
packets_received_rset_field_meta 0 
packets_received_rset_row 2480 
packets_received_prepare_response 30933 
packets_received_change_user 25526 
result_set_queries 2029 
non_result_set_queries 451 
no_index_used 250 
bad_index_used 0 
slow_queries 0 
buffered_sets 2029 
unbuffered_sets 0 
ps_buffered_sets 0 
ps_unbuffered_sets 0 
flushed_normal_sets 0 
flushed_ps_sets 0 
ps_prepared_never_executed 0 
ps_prepared_once_executed 0 
rows_fetched_from_server_normal 23497 
rows_fetched_from_server_ps 0 
rows_buffered_from_client_normal 23497 
rows_buffered_from_client_ps 0 
rows_fetched_from_client_normal_buffered 23475 
rows_fetched_from_client_normal_unbuffered 0 
rows_fetched_from_client_ps_buffered 0 
rows_fetched_from_client_ps_unbuffered 0 
rows_fetched_from_client_ps_cursor 0 
rows_affected_normal 273 
rows_affected_ps 0 
rows_skipped_normal 23497 
rows_skipped_ps 0 
copy_on_write_saved 74636 
copy_on_write_performed 740561 
command_buffer_too_small 10 
connect_success 89 
connect_failure 0 
connection_reused 0 
reconnect 0 
pconnect_success 0 
active_connections 18446744073709551527 
active_persistent_connections 0 
explicit_close 89 
implicit_close 0 
disconnect_close 0 
in_middle_of_command_close 0 
explicit_free_result 2029 
implicit_free_result 0 
explicit_stmt_close 0 
implicit_stmt_close 0 
mem_emalloc_count 0 
mem_emalloc_amount 0 
mem_ecalloc_count 0 
mem_ecalloc_amount 0 
mem_erealloc_count 0 
mem_erealloc_amount 0 
mem_efree_count 0 
mem_efree_amount 0 
mem_malloc_count 0 
mem_malloc_amount 0 
mem_calloc_count 0 
mem_calloc_amount 0 
mem_realloc_count 0 
mem_realloc_amount 0 
mem_free_count 0 
mem_free_amount 0 
mem_estrndup_count 0 
mem_strndup_count 0 
mem_estndup_count 0 
mem_strdup_count 0 
proto_text_fetched_null 0 
proto_text_fetched_bit 0 
proto_text_fetched_tinyint 42 
proto_text_fetched_short 0 
proto_text_fetched_int24 0 
proto_text_fetched_int 349723 
proto_text_fetched_bigint 242 
proto_text_fetched_decimal 2800 
proto_text_fetched_float 0 
proto_text_fetched_double 18964 
proto_text_fetched_date 3 
proto_text_fetched_year 0 
proto_text_fetched_time 0 
proto_text_fetched_datetime 3647 
proto_text_fetched_timestamp 5258 
proto_text_fetched_string 133111 
proto_text_fetched_blob 0 
proto_text_fetched_enum 23284 
proto_text_fetched_set 0 
proto_text_fetched_geometry 0 
proto_text_fetched_other 0 
proto_binary_fetched_null 0 
proto_binary_fetched_bit 0 
proto_binary_fetched_tinyint 0 
proto_binary_fetched_short 0 
proto_binary_fetched_int24 0 
proto_binary_fetched_int 0 
proto_binary_fetched_bigint 0 
proto_binary_fetched_decimal 0 
proto_binary_fetched_float 0 
proto_binary_fetched_double 0 
proto_binary_fetched_date 0 
proto_binary_fetched_year 0 
proto_binary_fetched_time 0 
proto_binary_fetched_datetime 0 
proto_binary_fetched_timestamp 0 
proto_binary_fetched_string 0 
proto_binary_fetched_json 0 
proto_binary_fetched_blob 0 
proto_binary_fetched_enum 0 
proto_binary_fetched_set 0 
proto_binary_fetched_geometry 0 
proto_binary_fetched_other 0 
init_command_executed_count 0 
init_command_failed_count 0 
com_quit 89 
com_init_db 89 
com_query 2480 
com_field_list 0 
com_create_db 0 
com_drop_db 0 
com_refresh 0 
com_shutdown 0 
com_statistics 0 
com_process_info 0 
com_connect 0 
com_process_kill 0 
com_debug 0 
com_ping 0 
com_time 0 
com_delayed_insert 0 
com_change_user 0 
com_binlog_dump 0 
com_table_dump 0 
com_connect_out 0 
com_register_slave 0 
com_stmt_prepare 0 
com_stmt_execute 0 
com_stmt_send_long_data 0 
com_stmt_close 0 
com_stmt_reset 0 
com_stmt_set_option 89 
com_stmt_fetch 0 
com_deamon 0 
bytes_received_real_data_normal 3373887 
bytes_received_real_data_ps 0 
openssl
OpenSSL support enabled 
OpenSSL Library Version OpenSSL 1.0.2k-fips  26 Jan 2017 
OpenSSL Header Version OpenSSL 1.0.2k-fips  26 Jan 2017 
Openssl default config /etc/pki/tls/openssl.cnf 
DirectiveLocal ValueMaster Value
openssl.cafileno valueno value
openssl.capathno valueno value
pcre
PCRE (Perl Compatible Regular Expressions) Support enabled 
PCRE Library Version 8.32 2012-11-30 
DirectiveLocal ValueMaster Value
pcre.backtrack_limit10000001000000
pcre.recursion_limit100000100000
PDO
PDO supportenabled
PDO drivers mysql, sqlite 
pdo_mysql
PDO Driver for MySQLenabled
Client API version mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $ 
DirectiveLocal ValueMaster Value
pdo_mysql.default_socket/var/lib/mysql/mysql.sock/var/lib/mysql/mysql.sock
pdo_sqlite
PDO Driver for SQLite 3.xenabled
SQLite Library 3.7.17 
Phar
Phar: PHP Archive supportenabled
Phar EXT version 2.0.2 
Phar API version 1.1.1 
SVN revision $Id: 47ff8cd790730dbc3520e47faa86327e2987a238 $ 
Phar-based phar archives enabled 
Tar-based phar archives enabled 
ZIP-based phar archives enabled 
gzip compression enabled 
bzip2 compression enabled 
Native OpenSSL support enabled 
Phar based on pear/PHP_Archive, original concept by Davey Shafik.Phar fully realized by Gregory Beaver and Marcus Boerger.Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle.
DirectiveLocal ValueMaster Value
phar.cache_listno valueno value
phar.readonlyOnOn
phar.require_hashOnOn
posix
Revision $Id: 5f4acc20904b1406142f2a0ede068db048c77e77 $ 
redis
Redis Supportenabled
Redis Version 3.1.6 
Available serializers php, igbinary 
Reflection
Reflectionenabled
Version $Id: 5f15287237d5f78d75b19c26915aa7bd83dee8b8 $ 
session
Session Support enabled 
Registered save handlers files user memcache memcached redis rediscluster  
Registered serializer handlers php_serialize php php_binary wddx igbinary msgpack  
DirectiveLocal ValueMaster Value
session.auto_startOffOff
session.cache_expire180180
session.cache_limiternocachenocache
session.cookie_domainno valueno value
session.cookie_httponlyOffOff
session.cookie_lifetime00
session.cookie_path//
session.cookie_secureOffOff
session.entropy_file/dev/urandom/dev/urandom
session.entropy_length128128
session.gc_divisor10001000
session.gc_maxlifetime14401440
session.gc_probability11
session.hash_bits_per_character55
session.hash_function00
session.nameV20V20
session.referer_checkno valueno value
session.save_handlermemcachedmemcached
session.save_path127.0.0.1:11311127.0.0.1:11311
session.serialize_handlerphpphp
session.upload_progress.cleanupOnOn
session.upload_progress.enabledOnOn
session.upload_progress.freq1%1%
session.upload_progress.min_freq11
session.upload_progress.namePHP_SESSION_UPLOAD_PROGRESSPHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefixupload_progress_upload_progress_
session.use_cookiesOnOn
session.use_only_cookiesOnOn
session.use_strict_modeOffOff
session.use_trans_sid00
shmop
shmop support enabled 
SimpleXML
Simplexml supportenabled
Revision $Id: d7077fc935154236afb4fe70814ba358efdbdca4 $ 
Schema support enabled 
soap
Soap Client enabled 
Soap Server enabled 
DirectiveLocal ValueMaster Value
soap.wsdl_cache11
soap.wsdl_cache_dir/tmp/tmp
soap.wsdl_cache_enabled11
soap.wsdl_cache_limit55
soap.wsdl_cache_ttl8640086400
sockets
Sockets Support enabled 
SPL
SPL supportenabled
Interfaces Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject 
Classes AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException 
sqlite3
SQLite3 supportenabled
SQLite3 module version 0.7-dev 
SQLite Library 3.7.17 
DirectiveLocal ValueMaster Value
sqlite3.extension_dirno valueno value
standard
Dynamic Library Support enabled 
Path to sendmail /usr/sbin/sendmail -t -i 
DirectiveLocal ValueMaster Value
assert.active11
assert.bail00
assert.callbackno valueno value
assert.quiet_eval00
assert.warning11
auto_detect_line_endings00
default_socket_timeout6060
fromno valueno value
url_rewriter.tagsa=href,area=href,frame=src,input=src,form=fakeentrya=href,area=href,frame=src,input=src,form=fakeentry
user_agentno valueno value
sysvmsg
sysvmsg support enabled 
Revision $Id: 58590192720bc56939152fde3645d808b348bb9b $ 
tokenizer
Tokenizer Support enabled 
wddx
WDDX Supportenabled
WDDX Session Serializer enabled 
xml
XML Support active 
XML Namespace Support active 
libxml2 Version 2.9.1 
xmlreader
XMLReader enabled 
xmlwriter
XMLWriter enabled 
xsl
XSL enabled 
libxslt Version 1.1.28 
libxslt compiled against libxml Version 2.9.1 
EXSLT enabled 
libexslt Version 1.1.28 
Zend OPcache
Opcode Caching Up and Running 
Optimization Enabled 
Startup OK 
Shared memory model mmap 
Cache hits 434259687 
Cache misses 3032 
Used memory 108159280 
Free memory 965079768 
Wasted memory 502776 
Interned Strings Used memory 14883304 
Interned Strings Free memory 1893912 
Cached scripts 2881 
Cached keys 2881 
Max keys 16229 
OOM restarts 0 
Hash keys restarts 0 
Manual restarts 10 
DirectiveLocal ValueMaster Value
opcache.blacklist_filename/etc/php.d/opcache*.blacklist/etc/php.d/opcache*.blacklist
opcache.consistency_checks00
opcache.dups_fixOffOff
opcache.enableOnOn
opcache.enable_cliOnOn
opcache.enable_file_overrideOffOff
opcache.error_log/var/log/opcache_error.log/var/log/opcache_error.log
opcache.fast_shutdown00
opcache.file_update_protection22
opcache.force_restart_timeout180180
opcache.inherited_hackOnOn
opcache.interned_strings_buffer1616
opcache.load_comments11
opcache.log_verbosity_level44
opcache.max_accelerated_files1600016000
opcache.max_file_size00
opcache.max_wasted_percentage55
opcache.memory_consumption10241024
opcache.optimization_level0x7FFFBFFF0x7FFFBFFF
opcache.preferred_memory_modelno valueno value
opcache.protect_memory00
opcache.restrict_apino valueno value
opcache.revalidate_freq22
opcache.revalidate_pathOnOn
opcache.save_comments11
opcache.use_cwdOnOn
opcache.validate_permissionOffOff
opcache.validate_rootOffOff
opcache.validate_timestampsOnOn
zip
Zip enabled 
Zip version 1.15.2 
Libzip headers version 1.3.2 
Libzip library version 1.4.0 
zlib
ZLib Supportenabled
Stream Wrapper compress.zlib:// 
Stream Filter zlib.inflate, zlib.deflate 
Compiled Version 1.2.7 
Linked Version 1.2.7 
DirectiveLocal ValueMaster Value
zlib.output_compressionOffOff
zlib.output_compression_level-1-1
zlib.output_handlerno valueno value
Additional Modules
Module Name
sysvsem
sysvshm
Environment
VariableValue
USER apache 
HOME /var/www 
PHP Variables
VariableValue
_SERVER["USER"]root
_SERVER["HOME"]/root
_SERVER["FCGI_ROLE"]RESPONDER
_SERVER["SCRIPT_NAME"]info.php
_SERVER["REQUEST_METHOD"]GET
_SERVER["SCRIPT_FILENAME"]/info.php
_SERVER["HOSTNAME"]bitr01.int.my project_name.com
_SERVER["TERM"]screen
_SERVER["SHELL"]/bin/bash
_SERVER["HISTSIZE"]1000
_SERVER["LS_COLORS"]rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:
_SERVER["SUDO_USER"]ssmirnov
_SERVER["SUDO_UID"]527400124
_SERVER["USERNAME"]root
_SERVER["MAIL"]/var/spool/mail/ssmirnov
_SERVER["PATH"]/sbin:/bin:/usr/sbin:/usr/bin
_SERVER["_"]/bin/cgi-fcgi
_SERVER["PWD"]/var/core
_SERVER["LANG"]en_US.UTF-8
_SERVER["SUDO_COMMAND"]/bin/bash
_SERVER["SHLVL"]2
_SERVER["LOGNAME"]root
_SERVER["SUDO_GID"]527400124
_SERVER["PHP_SELF"]info.php
_SERVER["REQUEST_TIME_FLOAT"]1547630582.8772
_SERVER["REQUEST_TIME"]1547630582
PHP Credits
PHP Group
Thies C. Arntzen, Stig Bakken, Shane Caraveo, Andi Gutmans, Rasmus Lerdorf, Sam Ruby, Sascha Schumann, Zeev Suraski, Jim Winstead, Andrei Zmievski 
Language Design &amp; Concept
Andi Gutmans, Rasmus Lerdorf, Zeev Suraski, Marcus Boerger 
PHP Authors
ContributionAuthors
Zend Scripting Language Engine Andi Gutmans, Zeev Suraski, Stanislav Malyshev, Marcus Boerger, Dmitry Stogov, Xinchen Hui, Nikita Popov 
Extension Module API Andi Gutmans, Zeev Suraski, Andrei Zmievski 
UNIX Build and Modularization Stig Bakken, Sascha Schumann, Jani Taskinen 
Windows Port Shane Caraveo, Zeev Suraski, Wez Furlong, Pierre-Alain Joye, Anatol Belski 
Server API (SAPI) Abstraction Layer Andi Gutmans, Shane Caraveo, Zeev Suraski 
Streams Abstraction Layer Wez Furlong, Sara Golemon 
PHP Data Objects Layer Wez Furlong, Marcus Boerger, Sterling Hughes, George Schlossnagle, Ilia Alshanetsky 
Output Handler Zeev Suraski, Thies C. Arntzen, Marcus Boerger, Michael Wallner 
SAPI Modules
ContributionAuthors
AOLserver Sascha Schumann 
Apache 1.3 (apache_hooks) Rasmus Lerdorf, Zeev Suraski, Stig Bakken, David Sklar, George Schlossnagle, Lukas Schroeder 
Apache 1.3 Rasmus Lerdorf, Zeev Suraski, Stig Bakken, David Sklar 
Apache 2.0 Filter Sascha Schumann, Aaron Bannert 
Apache 2.0 Handler Ian Holsman, Justin Erenkrantz (based on Apache 2.0 Filter code) 
Caudium / Roxen David Hedbor 
CGI / FastCGI Rasmus Lerdorf, Stig Bakken, Shane Caraveo, Dmitry Stogov 
CLI Edin Kadribasic, Marcus Boerger, Johannes Schlueter, Moriyoshi Koizumi, Xinchen Hui 
Continuity Alex Leigh (based on nsapi code) 
Embed Edin Kadribasic 
FastCGI Process Manager Andrei Nigmatulin, dreamcat4, Antony Dovgal, Jerome Loyet 
ISAPI Andi Gutmans, Zeev Suraski 
litespeed George Wang 
NSAPI Jayakumar Muthukumarasamy, Uwe Schindler 
phpdbg Felipe Pena, Joe Watkins, Bob Weinand 
phttpd Thies C. Arntzen 
pi3web Holger Zimmermann 
Sendmail Milter Harald Radi 
thttpd Sascha Schumann 
tux Sascha Schumann 
WebJames Alex Waugh 
Module Authors
ModuleAuthors
BC Math Andi Gutmans 
Bzip2 Sterling Hughes 
Calendar Shane Caraveo, Colin Viebrock, Hartmut Holzgraefe, Wez Furlong 
COM and .Net Wez Furlong 
ctype Hartmut Holzgraefe 
cURL Sterling Hughes 
Date/Time Support Derick Rethans 
DB-LIB (MS SQL, Sybase) Wez Furlong, Frank M. Kromann 
DBA Sascha Schumann, Marcus Boerger 
DOM Christian Stocker, Rob Richards, Marcus Boerger 
enchant Pierre-Alain Joye, Ilia Alshanetsky 
ereg Rasmus Lerdorf, Jim Winstead, Jaakko Hyvätti 
EXIF Rasmus Lerdorf, Marcus Boerger 
fileinfo Ilia Alshanetsky, Pierre Alain Joye, Scott MacVicar, Derick Rethans 
Firebird driver for PDO Ard Biesheuvel 
FTP Stefan Esser, Andrew Skalski 
GD imaging Rasmus Lerdorf, Stig Bakken, Jim Winstead, Jouni Ahto, Ilia Alshanetsky, Pierre-Alain Joye, Marcus Boerger 
GetText Alex Plotnick 
GNU GMP support Stanislav Malyshev 
Iconv Rui Hirokawa, Stig Bakken, Moriyoshi Koizumi  
IMAP Rex Logan, Mark Musone, Brian Wang, Kaj-Michael Lang, Antoni Pamies Olive, Rasmus Lerdorf, Andrew Skalski, Chuck Hagenbuch, Daniel R Kalowsky 
Input Filter Rasmus Lerdorf, Derick Rethans, Pierre-Alain Joye, Ilia Alshanetsky 
InterBase Jouni Ahto, Andrew Avdeev, Ard Biesheuvel 
Internationalization Ed Batutis, Vladimir Iordanov, Dmitry Lakhtyuk, Stanislav Malyshev, Vadim Savchuk, Kirti Velankar 
JSON Omar Kilani, Scott MacVicar 
LDAP Amitay Isaacs, Eric Warnke, Rasmus Lerdorf, Gerrit Thomson, Stig Venaas 
LIBXML Christian Stocker, Rob Richards, Marcus Boerger, Wez Furlong, Shane Caraveo 
mcrypt Sascha Schumann, Derick Rethans 
MS SQL Frank M. Kromann 
Multibyte String Functions Tsukada Takuya, Rui Hirokawa 
MySQL driver for PDO George Schlossnagle, Wez Furlong, Ilia Alshanetsky, Johannes Schlueter 
MySQL Zeev Suraski, Zak Greant, Georg Richter, Andrey Hristov 
MySQLi Zak Greant, Georg Richter, Andrey Hristov, Ulf Wendel 
MySQLnd Andrey Hristov, Ulf Wendel, Georg Richter, Johannes Schlüter 
OCI8 Stig Bakken, Thies C. Arntzen, Andy Sautins, David Benson, Maxim Maletsky, Harald Radi, Antony Dovgal, Andi Gutmans, Wez Furlong, Christopher Jones, Oracle Corporation 
ODBC driver for PDO Wez Furlong 
ODBC Stig Bakken, Andreas Karajannis, Frank M. Kromann, Daniel R. Kalowsky 
OpenSSL Stig Venaas, Wez Furlong, Sascha Kettler, Scott MacVicar 
Oracle (OCI) driver for PDO Wez Furlong 
pcntl Jason Greene, Arnaud Le Blanc 
Perl Compatible Regexps Andrei Zmievski 
PHP Archive Gregory Beaver, Marcus Boerger 
PHP Data Objects Wez Furlong, Marcus Boerger, Sterling Hughes, George Schlossnagle, Ilia Alshanetsky 
PHP hash Sara Golemon, Rasmus Lerdorf, Stefan Esser, Michael Wallner, Scott MacVicar 
Posix Kristian Koehntopp 
PostgreSQL driver for PDO Edin Kadribasic, Ilia Alshanetsky 
PostgreSQL Jouni Ahto, Zeev Suraski, Yasuo Ohgaki, Chris Kings-Lynne 
Pspell Vlad Krupin 
Readline Thies C. Arntzen 
Recode Kristian Koehntopp 
Reflection Marcus Boerger, Timm Friebe, George Schlossnagle, Andrei Zmievski, Johannes Schlueter 
Sessions Sascha Schumann, Andrei Zmievski 
Shared Memory Operations Slava Poliakov, Ilia Alshanetsky 
SimpleXML Sterling Hughes, Marcus Boerger, Rob Richards 
SNMP Rasmus Lerdorf, Harrie Hazewinkel, Mike Jackson, Steven Lawrance, Johann Hanne, Boris Lytochkin 
SOAP Brad Lafountain, Shane Caraveo, Dmitry Stogov 
Sockets Chris Vandomelen, Sterling Hughes, Daniel Beulshausen, Jason Greene 
SPL Marcus Boerger, Etienne Kneuss 
SQLite 3.x driver for PDO Wez Furlong 
SQLite3 Scott MacVicar, Ilia Alshanetsky, Brad Dewar 
Sybase-CT Zeev Suraski, Tom May, Timm Friebe 
System V Message based IPC Wez Furlong 
System V Semaphores Tom May 
System V Shared Memory Christian Cartus 
tidy John Coggeshall, Ilia Alshanetsky 
tokenizer Andrei Zmievski, Johannes Schlueter 
WDDX Andrei Zmievski 
XML Stig Bakken, Thies C. Arntzen, Sterling Hughes 
XMLReader Rob Richards 
xmlrpc Dan Libby 
XMLWriter Rob Richards, Pierre-Alain Joye 
XSL Christian Stocker, Rob Richards 
Zip Pierre-Alain Joye, Remi Collet 
Zlib Rasmus Lerdorf, Stefan Roehrich, Zeev Suraski, Jade Nicoletti, Michael Wallner 
PHP Documentation
Authors Mehdi Achour, Friedhelm Betz, Antony Dovgal, Nuno Lopes, Hannes Magnusson, Georg Richter, Damien Seguy, Jakub Vrana, Adam Harvey, Peter Cowburn 
Editor Philip Olson 
User Note Maintainers Daniel P. Brown, Thiago Henrique Pojda 
Other Contributors Previously active authors, editors and other contributors are listed in the manual. 
PHP Quality Assurance Team
Ilia Alshanetsky, Joerg Behrens, Antony Dovgal, Stefan Esser, Moriyoshi Koizumi, Magnus Maatta, Sebastian Nohn, Derick Rethans, Melvyn Sopacua, Jani Taskinen, Pierre-Alain Joye, Dmitry Stogov, Felipe Pena, David Soria Parra, Stanislav Malyshev, Julien Pauli, Stephen Zarkos, Anatol Belski, Remi Collet, Ferenc Kovacs 
Websites and Infrastructure team
PHP Websites Team Rasmus Lerdorf, Hannes Magnusson, Philip Olson, Lukas Kahwe Smith, Pierre-Alain Joye, Kalle Sommer Nielsen, Peter Cowburn, Adam Harvey, Ferenc Kovacs, Levi Morrison 
Event Maintainers Damien Seguy, Daniel P. Brown 
Network Infrastructure Daniel P. Brown 
Windows Infrastructure Alex Schoenmaker 
PHP License
This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file:  LICENSE
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.

Kernel version 3.10.0-693.17.1.el7
arch: x86_64

Test script:
---------------
-

Actual result:
--------------
core 1:
#0  0x000056128d8bc445 in _zend_mm_free_int (heap=0x56128e2aa2f0, p=0x31) at /usr/src/debug/php-5.6.39/Zend/zend_alloc.c:2075
        mm_block = 0x21
        next_block = 0x56128f10afb0
        size = 16280
#1  0x000056128d8bd2b3 in _efree (ptr=0x31) at /usr/src/debug/php-5.6.39/Zend/zend_alloc.c:2440
No locals.
#2  0x000056128d8e4b30 in destroy_op_array (op_array=0x56128ebe3cc0) at /usr/src/debug/php-5.6.39/Zend/zend_opcode.c:411
        literal = 0x0
        end = 0x1b8
        i = 1
#3  0x000056128d8e3e2d in destroy_zend_function (function=0x56128ebe3cc0) at /usr/src/debug/php-5.6.39/Zend/zend_opcode.c:116
No locals.
#4  0x000056128d8e3e4a in zend_function_dtor (function=0x56128ebe3cc0) at /usr/src/debug/php-5.6.39/Zend/zend_opcode.c:128
No locals.
#5  0x000056128d906e02 in zend_hash_destroy (ht=0x7fb9c311fec0) at /usr/src/debug/php-5.6.39/Zend/zend_hash.c:548
        p = 0x0
        q = 0x56128f30a830
#6  0x000056128d8e45f4 in destroy_zend_class (pce=0x5612af0f7158) at /usr/src/debug/php-5.6.39/Zend/zend_opcode.c:305
        ce = 0x7fb9c311fe98
#7  0x000056128d9055d6 in i_zend_hash_bucket_delete (p=0x5612af0f7140, ht=0x56128e2aac70) at /usr/src/debug/php-5.6.39/Zend/zend_hash.c:182                                                                                                                                   
No locals.
#8  zend_hash_bucket_delete (ht=0x56128e2aac70, p=0x5612af0f7140) at /usr/src/debug/php-5.6.39/Zend/zend_hash.c:192
No locals.
#9  0x000056128d9074c3 in zend_hash_reverse_apply (ht=0x56128e2aac70, apply_func=0x56128d8dd8a4 <clean_non_persistent_class>) at /usr/src/debug/php-5.6.39/Zend/zend_hash.c:733                                                                                               
        result = 1
        p_last = 0x5612af0f6ff0
        p = 0x5612af0f7140
#10 0x000056128d8de172 in shutdown_executor () at /usr/src/debug/php-5.6.39/Zend/zend_execute_API.c:300
        __orig_bailout = 0x7ffc3204e230
        __bailout = {{__jmpbuf = {0, -6402286960328965046, 94637682200640, 140721147676240, 0, 0, -6402286960368810934, -793760549586598838}, __mask_was_saved = 0, __saved_mask = {__val = {94638939835976, 94637704815184, 94637694558960, 140721147666512, 94637702425736, 
                94637712956576, 94637694558960, 48, 10, 94637694559608, 62, 94637684009589, 94637689093912, 140721147666272, 18446744071789335219, 140721147666320}}}}                                                                                                        
#11 0x000056128d8f49ff in zend_deactivate () at /usr/src/debug/php-5.6.39/Zend/zend.c:972
No locals.
#12 0x000056128d8663fa in php_request_shutdown (dummy=0x0) at /usr/src/debug/php-5.6.39/main/main.c:1899
        report_memleaks = 1 '\001'
#13 0x000056128da2634f in main (argc=2, argv=0x7ffc32050658) at /usr/src/debug/php-5.6.39/sapi/fpm/fpm/fpm_main.c:2017
        primary_script = 0x7fb9c31577a0 "\320\335\070\217\022V"
        __orig_bailout = 0x0
        __bailout = {{__jmpbuf = {0, -6402286962688261046, 94637682200640, 140721147676240, 0, 0, -6402286959712402358, -793760932578589622}, __mask_was_saved = 0, __saved_mask = {__val = {140435816598108, 7998447013718077030, 140435800469806, 140435737795944,          
                140721147667024, 0, 140435818702000, 140721147667528, 140435746469116, 12885098640, 140435818811680, 2162024, 140435737795936, 6, 140721147666728, 64768}}}}                                                                                                  
        exit_status = 0
        cgi = 0
        c = -1
        use_extended_info = 0
        file_handle = {type = ZEND_HANDLE_FILENAME, filename = 0x7fb9c31237c0 "", opened_path = 0x0, handle = {fd = 0, fp = 0x0, stream = {handle = 0x0, isatty = 0, mmap = {len = 0, pos = 0, map = 0x0, buf = 0x2 <Address 0x2 out of bounds>, old_handle = 0x0,            
                old_closer = 0x0}, reader = 0x0, fsizer = 0x0, closer = 0x0}}, free_filename = 0 '\000'}
        orig_optind = 1
        orig_optarg = 0x0
        ini_entries_len = 0
        max_requests = 1000
        requests = 62
        fcgi_fd = 0
        request = {listen_socket = 0, fd = 5, id = 1, keep = 0, closed = 0, in_len = 0, in_pad = 0, out_hdr = 0x7ffc3204e4f0,
          out_pos = 0x7ffc3204e9ba "<removed cookie information> "...,                           
          out_buf = "\001\a\000\001\000\307\001\000PHP message: PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 77 bytes) in /var/www/<my project_name>/htdocs/bitrix/modules/main/classes/mysql/database_mysql.php on li"...,                      
          reserved = '\000' <repeats 15 times>, env = 0x7fb9c3121040}
        fpm_config = 0x0
        fpm_prefix = 0x0
        fpm_pid = 0x0
        test_conf = 0
        force_daemon = 0
        force_stderr = 0
        php_information = 0
---Type <return> to continue, or q <return> to quit---
        php_allow_to_run_as_root = 0
        __func__ = "main"

core 2:
#0  0x000056128d8bc445 in _zend_mm_free_int (heap=0x56128e2aa2f0, p=0x31) at /usr/src/debug/php-5.6.39/Zend/zend_alloc.c:2075
        mm_block = 0x21
        next_block = 0x56128ea4f9f8
        size = 12696
#1  0x000056128d8bd2b3 in _efree (ptr=0x31) at /usr/src/debug/php-5.6.39/Zend/zend_alloc.c:2440
No locals.
#2  0x000056128d8e4b30 in destroy_op_array (op_array=0x56128e8f4998) at /usr/src/debug/php-5.6.39/Zend/zend_opcode.c:411
        literal = 0x0
        end = 0xb0
        i = 1
#3  0x000056128d8e3e2d in destroy_zend_function (function=0x56128e8f4998) at /usr/src/debug/php-5.6.39/Zend/zend_opcode.c:116
No locals.
#4  0x000056128d8e3e4a in zend_function_dtor (function=0x56128e8f4998) at /usr/src/debug/php-5.6.39/Zend/zend_opcode.c:128
No locals.
#5  0x000056128d906e02 in zend_hash_destroy (ht=0x7fb9c311fec0) at /usr/src/debug/php-5.6.39/Zend/zend_hash.c:548
        p = 0x0
        q = 0x56128f2afb30
#6  0x000056128d8e45f4 in destroy_zend_class (pce=0x5612af0d02d8) at /usr/src/debug/php-5.6.39/Zend/zend_opcode.c:305
        ce = 0x7fb9c311fe98
#7  0x000056128d9055d6 in i_zend_hash_bucket_delete (p=0x5612af0d02c0, ht=0x56128e2aac70) at /usr/src/debug/php-5.6.39/Zend/zend_hash.c:182
No locals.
#8  zend_hash_bucket_delete (ht=0x56128e2aac70, p=0x5612af0d02c0) at /usr/src/debug/php-5.6.39/Zend/zend_hash.c:192
No locals.
#9  0x000056128d9074c3 in zend_hash_reverse_apply (ht=0x56128e2aac70, apply_func=0x56128d8dd8a4 <clean_non_persistent_class>) at /usr/src/debug/php-5.6.39/Zend/zend_hash.c:733
        result = 1
        p_last = 0x5612af0d0170
        p = 0x5612af0d02c0
#10 0x000056128d8de172 in shutdown_executor () at /usr/src/debug/php-5.6.39/Zend/zend_execute_API.c:300
        __orig_bailout = 0x7ffc3204e230
        __bailout = {{__jmpbuf = {0, -6402286960328965046, 94637682200640, 140721147676240, 0, 0, -6402286960368810934, -793760549586598838}, __mask_was_saved = 0, __saved_mask = {__val = {94637933464984, 94637701406008, 94637694558960, 140721147666512, 94637706651280, 
                94637712624368, 94637694558960, 48, 10, 94637694559608, 62, 94637684009589, 94637689093912, 140721147666272, 18446744071789335219, 140721147666320}}}}
#11 0x000056128d8f49ff in zend_deactivate () at /usr/src/debug/php-5.6.39/Zend/zend.c:972
No locals.
#12 0x000056128d8663fa in php_request_shutdown (dummy=0x0) at /usr/src/debug/php-5.6.39/main/main.c:1899
        report_memleaks = 1 '\001'
#13 0x000056128da2634f in main (argc=2, argv=0x7ffc32050658) at /usr/src/debug/php-5.6.39/sapi/fpm/fpm/fpm_main.c:2017
        primary_script = 0x7fb9c3157968 "\220\323\063\217\022V"
        __orig_bailout = 0x0
        __bailout = {{__jmpbuf = {0, -6402286962688261046, 94637682200640, 140721147676240, 0, 0, -6402286959712402358, -793760932578589622}, __mask_was_saved = 0, __saved_mask = {__val = {140435816598108, 7998447013718077030, 140435800469806, 140435737795944, 
                140721147667024, 0, 140435818702000, 140721147667528, 140435746469116, 12885098640, 140435818811680, 2162024, 140435737795936, 6, 140721147666728, 64768}}}}
        exit_status = 0
        cgi = 0
        c = -1
        use_extended_info = 0
        file_handle = {type = ZEND_HANDLE_FILENAME, filename = 0x7fb9c31210b8 "", opened_path = 0x0, handle = {fd = 0, fp = 0x0, stream = {handle = 0x0, isatty = 0, mmap = {len = 0, pos = 0, map = 0x0, buf = 0x2 <Address 0x2 out of bounds>, old_handle = 0x0, 
                old_closer = 0x0}, reader = 0x0, fsizer = 0x0, closer = 0x0}}, free_filename = 0 '\000'}
        orig_optind = 1
        orig_optarg = 0x0
        ini_entries_len = 0
        max_requests = 1000
        requests = 8
        fcgi_fd = 0
        request = {listen_socket = 0, fd = 5, id = 1, keep = 0, closed = 0, in_len = 0, in_pad = 0, out_hdr = 0x7ffc3204e4f0, 
          out_pos = 0x7ffc3204e9ba "<removed cookie information> "..., 
          out_buf = "\001\a\000\001\000\307\001\000PHP message: PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 32 bytes) in /var/www/<my project_name>/htdocs/bitrix/modules/main/classes/mysql/database_mysql.php on li"..., 
          reserved = '\000' <repeats 15 times>, env = 0x7fb9c3121040}
        fpm_config = 0x0
        fpm_prefix = 0x0
        fpm_pid = 0x0
        test_conf = 0
        force_daemon = 0
        force_stderr = 0
        php_information = 0
        php_allow_to_run_as_root = 0
        __func__ = "main"

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-01-16 09:51 UTC] nikic@php.net
-Status: Open +Status: Wont fix
 [2019-01-16 09:51 UTC] nikic@php.net
PHP 5.6 is no longer supported. Some issues related to memory limit errors have been fixed in later versions. If this issue still reproduces in PHP 7.2, we can reopen this.
 [2019-01-16 10:08 UTC] webox955 at gmail dot com
Hi! I can't find this bug, can you paste link, please?
 [2019-01-17 13:38 UTC] webox955 at gmail dot com
test script:
#!/bin/bash

echo "Zend/tests/bug47353.phpt"
REQUEST_METHOD=GET SCRIPT_FILENAME="/flush.php" SCRIPT_NAME="flush.php" cgi-fcgi -bind -connect /var/run/php-fpm/listen.sock
exit 0
<?php
echo memory_get_usage(true);

ini_set('memory_limit','40M');
echo ":".ini_get('memory_limit')."\n";
sleep(4);

register_shutdown_function(function() {
    new stdClass;
});
$ary = [];
while (true) {
    echo memory_get_usage()."\n";
    $ary[] = new stdClass;
   echo memory_get_usage(true);
}

?>

patch:
diff -up ./Zend/zend_objects_API.c.old ./Zend/zend_objects_API.c
--- ./Zend/zend_objects_API.c.old       2019-01-16 15:05:03.487365313 +0300
+++ ./Zend/zend_objects_API.c   2019-01-16 15:06:31.750081871 +0300
@@ -114,8 +114,10 @@ ZEND_API zend_object_handle zend_objects
                EG(objects_store).free_list_head = EG(objects_store).object_buckets[handle].bucket.free_list.next;
        } else {
                if (EG(objects_store).top == EG(objects_store).size) {
-                       EG(objects_store).size <<= 1;
-                       EG(objects_store).object_buckets = (zend_object_store_bucket *) erealloc(EG(objects_store).object_buckets, EG(objects_store).size * sizeof(zend_object_store_bucket));                                                                                
+                       zend_uint new_size = 2 * EG(objects_store).size;
+                       EG(objects_store).object_buckets = (zend_object_store_bucket *) erealloc(EG(objects_store).object_buckets, new_size * sizeof(zend_object_store_bucket));                                                                                              
+                       /* Assign size after realloc, in case it fails */
+                       EG(objects_store).size = new_size;
                }
                handle = EG(objects_store).top++;
        }

backport from https://bugs.php.net/bug.php?id=76846&edit=3
original commit:
https://github.com/php/php-src/commit/45cdcb2d0be89fe7bc404dd150240ec83f5de401

no diff in autotest betwein original 5.6.40 & patched version.
test script on original version generate segfault, after this patch working fine
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Oct 07 06:01:27 2024 UTC