Closed alex88 closed 2 years ago
I'm also unable to get a dump when using the GET flag.
Hi @socceroos @alex88
Does it work if you install memprof from the master branch of this repository ?
Same here with php 7.4 and pecl installed memprof 2.1.2
Hi @vadim-nilov @socceroos @alex88
I've released version 3.0.0 on pecl, which should fix these issues. Could you try again ?
On version 3.0.0 from PECL and PHP 7.4.10: cli profiling has no dumps on limit, no data written with functions memprof_dump_callgrind(), memprof_dump_pprof() Executed (on Laravel)
MEMPROF_PROFILE=dump_on_limit php -dextension=memprof.so -dmemprof.output_dir=/var/www/storage/logs -dmemory_limit=16M artisan test:command
Hi @dkop
Does the process have write acces on /var/www/storage/logs
?
Yes, empty files created with $stream = fopen('...', 'w'), but no data written to these files with memprof functions using $stream var.
I experience similar problems. I'm using PHP 8 and memprof 3.0.1 (installed with pecl). Thememprof_version()
seems not to exist. memprof_dump_callgrind()
works, but dump_on_limit
doesn't; no output is produced. If I combine the latter with native
, I even get a Segmentation fault.
Hello @arnaud-lb
I wanted to chime in here with the same issue. I am running the following in a Docker container. Memprof has been installed using PECL.
PHP 8.0.10
memprof
memprof support => enabled
memprof version => 3.0.1
memprof native malloc support => Yes
memprof.output_dir => /var/log/apache2 => /var/log/apache2
I am unable to get any dump file using the GET variable MEMPROF_PROFILE=1
or MEMPROF_PROFILE=dump_on_limit
. So I also tried on CLI setting the env variable MEMPROF_PROFILE=dump_on_limit
and run a CLI script. I see the Out Of Memory error but no log file.
Anything I can do to help?
Edit: @pjdevries compiled a new .so from the current source and we tested that version. We still do not get a dump file.
I also tested the example code of @alex88 in the opening post, that does generate a file. The generated file is written to the local folder or the /var/log/apache2
folder. So there should not be any issue with writing access.
With that latest, self compiled module, like @roland-d mentioned above, the memprof_version()
works. Like he also mentions, dumping manually using memprof_dump_callgrind()
in a simple script works, However, in a real production script, in which quite a lot is going on, I don't get any output. Could this be a memory problem in the module?
Hi @pjdevries @roland-d
memprof_dump_callgrind() works, but dump_on_limit doesn't; no output is produced. If I combine the latter with native, I even get a Segmentation fault.
As dump_on_limit
works by hooking on the "Allowed memory size of x bytes exhausted" error, one possibility is that the error message is not exactly the same on your setup, or that an other extension is conflicting.
Could you copy/paste the exact PHP error you get when the memory limit is reached ?
Could you provide the list of loaded PHP extensions ?
(Note: the Segmentation fault is expected, unfortunately, if some extension is using threads because the native malloc hooks are not thread safe.)
@arnaud-lb Thank you for your reply.
This is the error message I see:
This is the source code of that page:
<br />
<font size='1'><table class='xdebug-error xe-fatal-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 163840 bytes) in <a style='color: black' href='phpstorm://open?file=/var/www/html/csvi/libraries/classmap.php&line=370'>/var/www/html/csvi/libraries/classmap.php</a> on line <i>370</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>16806893286.7924</td><td bgcolor='#eeeeec' align='right'>0</td><td bgcolor='#eeeeec'>{main}( )</td><td title='/var/www/html/csvi/administrator/index.php' bgcolor='#eeeeec'><a style='color: black' href='phpstorm://open?file=/var/www/html/csvi/administrator/index.php&line=0'>.../index.php<b>:</b>0</a></td></tr>
<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>16806893286.7924</td><td bgcolor='#eeeeec' align='right'>0</td><td bgcolor='#eeeeec'>require_once( <font color='#00bb00'>'/var/www/html/csvi/administrator/includes/framework.php</font> )</td><td title='/var/www/html/csvi/administrator/index.php' bgcolor='#eeeeec'><a style='color: black' href='phpstorm://open?file=/var/www/html/csvi/administrator/index.php&line=40'>.../index.php<b>:</b>40</a></td></tr>
<tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>16806893286.7924</td><td bgcolor='#eeeeec' align='right'>0</td><td bgcolor='#eeeeec'>require_once( <font color='#00bb00'>'/var/www/html/csvi/libraries/cms.php</font> )</td><td title='/var/www/html/csvi/administrator/includes/framework.php' bgcolor='#eeeeec'><a style='color: black' href='phpstorm://open?file=/var/www/html/csvi/administrator/includes/framework.php&line=20'>.../framework.php<b>:</b>20</a></td></tr>
</table></font>
This is the list of modules I have installed:
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
fileinfo
filter
ftp
gd
hash
iconv
imap
intl
json
ldap
libxml
mbstring
memprof
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
Reflection
session
SimpleXML
soap
sodium
SPL
sqlite3
standard
tokenizer
xdebug
xml
xmlreader
xmlwriter
xsl
zip
zlib
[Zend Modules]
Xdebug
Let me know if you need anything else.
Thanx for the swift follow up @arnaud-lb.
I'm running a cli script. The message I get is:
PHP Fatal error: Allowed memory size of 44040192 bytes exhausted (tried to allocate 1294336 bytes) (memprof dumped to /tmp/memprof.callgrind.1719509925843605) in /var/www/html/d2j4.obixconcept.local/public/libraries/com_dma/vendor/tecnickcom/tcpdf/tcpdf.php on line 8874
Fatal error: Allowed memory size of 44040192 bytes exhausted (tried to allocate 1294336 bytes) (memprof dumped to /tmp/memprof.callgrind.1719509925843605) in /var/www/html/d2j4.obixconcept.local/public/libraries/com_dma/vendor/tecnickcom/tcpdf/tcpdf.php on line 8874
Symfony\Component\ErrorHandler\Error\OutOfMemoryError^ {#7579
-error: array:4 [
"type" => 1
"message" => "Allowed memory size of 44040192 bytes exhausted (tried to allocate 1294336 bytes) (memprof dumped to /tmp/memprof.callgrind.1719509925843605)"
"file" => "/var/www/html/d2j4.obixconcept.local/public/libraries/com_dma/vendor/tecnickcom/tcpdf/tcpdf.php"
"line" => 8874
]
#message: "Error: Allowed memory size of 44040192 bytes exhausted (tried to allocate 1294336 bytes) (memprof dumped to /tmp/memprof.callgrind.1719509925843605)"
#code: 0
#file: "/var/www/html/d2j4.obixconcept.local/public/libraries/com_dma/vendor/tecnickcom/tcpdf/tcpdf.php"
#line: 8874
}
The list of my PHP modules is:
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
hash
iconv
imagick
intl
json
ldap
libxml
mbstring
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
Reflection
session
SimpleXML
soap
sockets
sodium
SPL
sqlite3
standard
tokenizer
xdebug
xml
xmlreader
xmlwriter
zip
zlib
[Zend Modules]
Xdebug
I just found out that the last run did produce a profile log. Weird, because I did not change anything related, as far as I can remember.
Thank you @pjdevries @roland-d
I figured that Xdebug did something that was preventing dump_on_limit
from being notified that the memory limit was reached. This should be fixed now in the v3 branch.
Thank you for the quick fix @arnaud-lb and, even more so, for making the profiler available to the general community.
Thank you for the kind words and the details, this helped a lot.
I'm closing this issue.
For any future reader: The issue is fixed in v3 branch starting at commit 801a5760abe35d581a10c1b4bb487f3ffc231831, and will be fixed in pecl versions higher than 3.0.1. The cause was a conflict with xdebug, so disabling xdebug might also fix the issue.
Good evening, unfortunately I have the same problem. I installed the actual source as described in https://github.com/arnaud-lb/php-memory-profiler#installing-manually. I created a sample script
<?php
//memprof_enable();
var_dump(memprof_version());
var_dump(memprof_enabled());
var_dump(memprof_enabled_flags());
echo 'X';
$arr = [];
while (true)
{
$arr[] = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa';
}
echo 'Y';
I call the php file with chrome at URL/test.php?MEMPROF_PROFILE=dump_on_limit The output is (source shown here):
string(5) "3.0.1"
bool(false)
array(3) {
enabled"]=>
bool(false)
["native"]=>
bool(false)
["dump_on_limit"]=>
bool(false)
}
X<br />
<b>Fatal error</b>: Allowed memory size of 134217728 bytes exhausted (tried to allocate 134217736 bytes) in <b>/var/www/vhosts/xyz.de/test.php</b> on line <b>12</b><br />
The php modules loaded are:
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
enchant
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
imagick
imap
intl
json
libxml
mailparse
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
pgsql
Phar
posix
pspell
readline
Reflection
session
SimpleXML
soap
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
What am I missing and doing wrong? Thanks in advance for your help? Merry christmas!
Good Morning @anli-xsigns
From your output, it looks like that memprof didn't enable itself (memprof_enabled() returns false), but I don't understand why. Could you add var_dump($_GET); var_dump(ini_get("request_order")); var_dump(ini_get("variables_order"));
in this script ?
Good morning @arnaud-lb,
thanks a lot for your quick response! Sure - I changed the script like this:
<?php
//memprof_enable();
var_dump(memprof_version());
var_dump(memprof_enabled());
var_dump(memprof_enabled_flags());
var_dump($_GET);
var_dump(ini_get("request_order"));
var_dump(ini_get("variables_order"));
echo 'X';
$arr = [];
while (true)
{
$arr[] = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa';
}
echo 'Y';
the output is:
string(5) "3.0.1"
bool(false)
array(3) {
["enabled"]=>
bool(false)
["native"]=>
bool(false)
["dump_on_limit"]=>
bool(false)
}
array(1) {
["MEMPROF_PROFILE"]=>
string(13) "dump_on_limit"
}
string(2) "GP"
string(4) "GPCS"
X<br />
<b>Fatal error</b>: Allowed memory size of 134217728 bytes exhausted (tried to allocate 134217736 bytes) in <b>/var/www/vhosts/feondi.de/api.feondi.de/public_organizerapi/test.php</b> on line <b>17</b><br />
Thanks a lot for helping me with this!
Thanks
What php version are you using ? Would you mind sharing the output of phpinfo() ?
I'm on php 8.0.14. Is php -i enough?
phpinfo()
PHP Version => 8.0.14
System => Linux server05.xyz.de 4.9.0-12-amd64 #1 SMP Debian 4.9.210-1+deb9u1 (2020-06-07) x86_64
Build Date => Dec 20 2021 03:41:04
Build System => Linux
Configure Command => './configure' '--docdir=/opt/plesk/php/8.0/share/doc' '--runstatedir=/run' '--infodir=/opt/plesk/php/8.0/share/info' '--localedir=/opt/plesk/php/8.0/share/locale' '--exec-prefix=/opt/plesk/php/8.0' '--sysconfdir=/opt/plesk/php/8.0/etc' '--includedir=/opt/plesk/php/8.0/include' '--prefix=/opt/plesk/php/8.0' '--libdir=/opt/plesk/php/8.0/lib/x86_64-linux-gnu' '--sbindir=/opt/plesk/php/8.0/sbin' '--datadir=/opt/plesk/php/8.0/share' '--sharedstatedir=/opt/plesk/php/8.0/com' '--libexecdir=/opt/plesk/php/8.0/lib' '--mandir=/opt/plesk/php/8.0/share/man' '--bindir=/opt/plesk/php/8.0/bin' '--localstatedir=/opt/plesk/php/8.0/var' '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--disable-debug' '--disable-rpath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-litespeed' '--enable-phpdbg' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-xml' '--with-bz2' '--with-config-file-path=/opt/plesk/php/8.0/etc' '--with-config-file-scan-dir=/opt/plesk/php/8.0/etc/php.d' '--with-enchant=shared' '--with-gettext' '--with-gmp' '--with-iconv' '--with-kerberos' '--with-layout=GNU' '--with-libdir=lib' '--with-libxml' '--with-openssl' '--with-pic' '--with-system-tzdata' '--with-zlib' '--without-gdbm' '--without-pear' '--enable-bcmath=shared' '--enable-dba=shared' '--enable-dom=shared' '--enable-fileinfo=shared' '--enable-gd=shared' '--with-webp=/var/jenkins/workspace/php-8.0-unix/buck-out/gen/libs/webp/webp.files' '--enable-intl=shared' '--enable-mbregex' '--enable-mbstring=shared' '--enable-mysqlnd=shared' '--enable-pcntl' '--enable-pdo=shared' '--enable-phar=shared' '--enable-posix=shared' '--enable-soap=shared' '--enable-sysvmsg=shared' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--with-curl=shared' '--with-db4=/usr' '--with-freetype' '--with-imap=shared' '--with-imap-ssl' '--with-jpeg' '--with-ldap=shared' '--with-ldap-sasl' '--with-libedit' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-mysqli=shared,mysqlnd' '--with-pdo-mysql=shared,mysqlnd' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared' '--with-pgsql=shared' '--with-pspell=shared' '--with-snmp=shared,/usr' '--with-sqlite3=shared' '--with-tidy=shared,/usr' '--with-unixODBC=shared,/usr' '--with-xpm' '--with-xsl=shared' '--with-zip=shared' '--without-readline' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'PKG_CONFIG=/var/jenkins/workspace/php-8.0-unix/rules/buck-out/gen/build/pkg-config.pex'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /opt/plesk/php/8.0/etc
Loaded Configuration File => /opt/plesk/php/8.0/etc/php.ini
Scan this dir for additional .ini files => /opt/plesk/php/8.0/etc/php.d
Additional .ini files parsed => /opt/plesk/php/8.0/etc/php.d/10-opcache.ini,
/opt/plesk/php/8.0/etc/php.d/20-mysqlnd.ini,
/opt/plesk/php/8.0/etc/php.d/50-xdebug.ini,
/opt/plesk/php/8.0/etc/php.d/bcmath.ini,
/opt/plesk/php/8.0/etc/php.d/curl.ini,
/opt/plesk/php/8.0/etc/php.d/dba.ini,
/opt/plesk/php/8.0/etc/php.d/dom.ini,
/opt/plesk/php/8.0/etc/php.d/enchant.ini,
/opt/plesk/php/8.0/etc/php.d/fileinfo.ini,
/opt/plesk/php/8.0/etc/php.d/gd.ini,
/opt/plesk/php/8.0/etc/php.d/imagick.ini,
/opt/plesk/php/8.0/etc/php.d/imap.ini,
/opt/plesk/php/8.0/etc/php.d/intl.ini,
/opt/plesk/php/8.0/etc/php.d/ldap.ini,
/opt/plesk/php/8.0/etc/php.d/mbstring.ini,
/opt/plesk/php/8.0/etc/php.d/mysqli.ini,
/opt/plesk/php/8.0/etc/php.d/odbc.ini,
/opt/plesk/php/8.0/etc/php.d/pdo.ini,
/opt/plesk/php/8.0/etc/php.d/pdo_mysql.ini,
/opt/plesk/php/8.0/etc/php.d/pdo_odbc.ini,
/opt/plesk/php/8.0/etc/php.d/pdo_pgsql.ini,
/opt/plesk/php/8.0/etc/php.d/pdo_sqlite.ini,
/opt/plesk/php/8.0/etc/php.d/pgsql.ini,
/opt/plesk/php/8.0/etc/php.d/phar.ini,
/opt/plesk/php/8.0/etc/php.d/posix.ini,
/opt/plesk/php/8.0/etc/php.d/pspell.ini,
/opt/plesk/php/8.0/etc/php.d/redis.ini,
/opt/plesk/php/8.0/etc/php.d/snmp.ini,
/opt/plesk/php/8.0/etc/php.d/soap.ini,
/opt/plesk/php/8.0/etc/php.d/sodium.ini,
/opt/plesk/php/8.0/etc/php.d/sqlite3.ini,
/opt/plesk/php/8.0/etc/php.d/sysvmsg.ini,
/opt/plesk/php/8.0/etc/php.d/sysvsem.ini,
/opt/plesk/php/8.0/etc/php.d/sysvshm.ini,
/opt/plesk/php/8.0/etc/php.d/tidy.ini,
/opt/plesk/php/8.0/etc/php.d/xmlreader.ini,
/opt/plesk/php/8.0/etc/php.d/xmlwriter.ini,
/opt/plesk/php/8.0/etc/php.d/xsl.ini,
/opt/plesk/php/8.0/etc/php.d/zip.ini
PHP API => 20200930
PHP Extension => 20200930
Zend Extension => 420200930
Zend Extension Build => API420200930,NTS
PHP Extension Build => API20200930,NTS
Debug Build => no
Thread Safety => disabled
Zend Signal Handling => enabled
Zend Memory Manager => enabled
Zend Multibyte Support => provided by mbstring
IPv6 Support => enabled
DTrace Support => disabled
Registered PHP Streams => https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2
Registered Stream Filters => zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, convert.*, consumed, dechunk
This program makes use of the Zend Scripting Language Engine:
Zend Engine v4.0.14, Copyright (c) Zend Technologies
with Zend OPcache v8.0.14, Copyright (c), by Zend Technologies
_______________________________________________________________________
Configuration
bcmath
BCMath support => enabled
Directive => Local Value => Master Value
bcmath.scale => 0 => 0
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
Core
PHP Version => 8.0.14
Directive => Local Value => Master Value
allow_url_fopen => On => On
allow_url_include => Off => Off
arg_separator.input => & => &
arg_separator.output => & => &
auto_append_file => no value => no value
auto_globals_jit => On => On
auto_prepend_file => no value => no value
browscap => no value => no value
default_charset => UTF-8 => UTF-8
default_mimetype => text/html => text/html
disable_classes => no value => no value
disable_functions => no value => no value
display_errors => Off => Off
display_startup_errors => Off => Off
doc_root => no value => no value
docref_ext => no value => no value
docref_root => no value => no value
enable_dl => Off => Off
enable_post_data_reading => On => On
error_append_string => no value => no value
error_log => no value => no value
error_prepend_string => no value => no value
error_reporting => 22527 => 22527
expose_php => On => On
extension_dir => /opt/plesk/php/8.0/lib/php/modules => /opt/plesk/php/8.0/lib/php/modules
file_uploads => On => On
hard_timeout => 2 => 2
highlight.comment => <font style="color: #FF8000">#FF8000</font> => <font style="color: #FF8000">#FF8000</font>
highlight.default => <font style="color: #0000BB">#0000BB</font> => <font style="color: #0000BB">#0000BB</font>
highlight.html => <font style="color: #000000">#000000</font> => <font style="color: #000000">#000000</font>
highlight.keyword => <font style="color: #007700">#007700</font> => <font style="color: #007700">#007700</font>
highlight.string => <font style="color: #DD0000">#DD0000</font> => <font style="color: #DD0000">#DD0000</font>
html_errors => Off => Off
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => On
include_path => .:/opt/plesk/php/8.0/share/pear => .:/opt/plesk/php/8.0/share/pear
input_encoding => no value => no value
internal_encoding => no value => no value
log_errors => On => On
log_errors_max_len => 1024 => 1024
mail.add_x_header => Off => Off
mail.force_extra_parameters => no value => no value
mail.log => no value => no value
max_execution_time => 0 => 0
max_file_uploads => 20 => 20
max_input_nesting_level => 64 => 64
max_input_time => -1 => -1
max_input_vars => 3000 => 3000
memory_limit => 128M => 128M
open_basedir => no value => no value
output_buffering => 0 => 0
output_encoding => no value => no value
output_handler => no value => no value
post_max_size => 8M => 8M
precision => 14 => 14
realpath_cache_size => 4096K => 4096K
realpath_cache_ttl => 120 => 120
register_argc_argv => On => On
report_memleaks => On => On
report_zend_debug => Off => Off
request_order => GP => GP
sendmail_from => no value => no value
sendmail_path => /usr/sbin/sendmail -t -i => /usr/sbin/sendmail -t -i
serialize_precision => -1 => -1
short_open_tag => Off => Off
SMTP => localhost => localhost
smtp_port => 25 => 25
sys_temp_dir => no value => no value
syslog.facility => LOG_USER => LOG_USER
syslog.filter => no-ctrl => no-ctrl
syslog.ident => php => php
unserialize_callback_func => no value => no value
upload_max_filesize => 2M => 2M
upload_tmp_dir => no value => no value
user_dir => no value => no value
user_ini.cache_ttl => 300 => 300
user_ini.filename => .user.ini => .user.ini
variables_order => GPCS => GPCS
xmlrpc_error_number => 0 => 0
xmlrpc_errors => Off => Off
zend.assertions => -1 => -1
zend.detect_unicode => On => On
zend.enable_gc => On => On
zend.exception_ignore_args => On => On
zend.exception_string_param_max_len => 0 => 0
zend.multibyte => Off => Off
zend.script_encoding => no value => no value
zend.signal_check => Off => Off
ctype
ctype functions => enabled
curl
cURL support => enabled
cURL Information => 7.52.1
Age => 3
Features
AsynchDNS => Yes
CharConv => No
Debug => No
GSS-Negotiate => No
IDN => Yes
IPv6 => Yes
krb4 => No
Largefile => Yes
libz => Yes
NTLM => Yes
NTLMWB => Yes
SPNEGO => Yes
SSL => Yes
SSPI => No
TLS-SRP => Yes
HTTP2 => Yes
GSSAPI => Yes
KERBEROS5 => Yes
UNIX_SOCKETS => Yes
PSL => Yes
HTTPS_PROXY => Yes
Protocols => dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtmp, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp
Host => x86_64-pc-linux-gnu
SSL Version => OpenSSL/1.0.2u
ZLib Version => 1.2.8
libSSH Version => libssh2/1.7.0
Directive => Local Value => Master Value
curl.cainfo => no value => no value
date
date/time support => enabled
timelib version => 2020.03
"Olson" Timezone Database Version => 0.system
Timezone Database => internal
Default timezone => UTC
Directive => Local Value => Master Value
date.default_latitude => 31.7667 => 31.7667
date.default_longitude => 35.2333 => 35.2333
date.sunrise_zenith => 90.833333 => 90.833333
date.sunset_zenith => 90.833333 => 90.833333
date.timezone => no value => no value
dba
DBA support => enabled
Supported handlers => cdb cdb_make db4 inifile flatfile
Directive => Local Value => Master Value
dba.default_handler => flatfile => flatfile
dom
DOM/XML => enabled
DOM/XML API Version => 20031129
libxml Version => 2.9.4
HTML Support => enabled
XPath Support => enabled
XPointer Support => enabled
Schema Support => enabled
RelaxNG Support => enabled
exif
EXIF Support => enabled
Supported EXIF Version => 0220
Supported filetypes => JPEG, TIFF
Multibyte decoding support using mbstring => enabled
Extended EXIF tag formats => Canon, Casio, Fujifilm, Nikon, Olympus, Samsung, Panasonic, DJI, Sony, Pentax, Minolta, Sigma, Foveon, Kyocera, Ricoh, AGFA, Epson
Directive => Local Value => Master Value
exif.decode_jis_intel => JIS => JIS
exif.decode_jis_motorola => JIS => JIS
exif.decode_unicode_intel => UCS-2LE => UCS-2LE
exif.decode_unicode_motorola => UCS-2BE => UCS-2BE
exif.encode_jis => no value => no value
exif.encode_unicode => ISO-8859-15 => ISO-8859-15
fileinfo
fileinfo support => enabled
libmagic => 539
filter
Input Validation and Filtering => enabled
Directive => Local Value => Master Value
filter.default => unsafe_raw => unsafe_raw
filter.default_flags => no value => no value
ftp
FTP support => enabled
FTPS support => enabled
gd
GD Support => enabled
GD Version => bundled (2.1.0 compatible)
FreeType Support => enabled
FreeType Linkage => with freetype
FreeType Version => 2.6.3
GIF Read Support => enabled
GIF Create Support => enabled
JPEG Support => enabled
libJPEG Version => 6b
PNG Support => enabled
libPNG Version => 1.6.28
WBMP Support => enabled
XPM Support => enabled
libXpm Version => 30411
XBM Support => enabled
WebP Support => enabled
BMP Support => enabled
TGA Read Support => enabled
Directive => Local Value => Master Value
gd.jpeg_ignore_warning => 1 => 1
gettext
GetText Support => enabled
gmp
gmp support => enabled
GMP version => 6.1.2
hash
hash support => enabled
Hashing Engines => md2 md4 md5 sha1 sha224 sha256 sha384 sha512/224 sha512/256 sha512 sha3-224 sha3-256 sha3-384 sha3-512 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 crc32c 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.24
Directive => Local Value => Master Value
iconv.input_encoding => no value => no value
iconv.internal_encoding => no value => no value
iconv.output_encoding => no value => no value
imagick
imagick module => enabled
imagick module version => 3.6.0
imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
Imagick compiled with ImageMagick version => ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org
Imagick using ImageMagick library version => ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org
ImageMagick copyright => © 1999-2017 ImageMagick Studio LLC
ImageMagick release date => 20170114
ImageMagick number of supported formats: => 226
ImageMagick supported formats => 3FR, AAI, AI, ART, ARW, AVI, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GROUP4, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WMV, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
Directive => Local Value => Master Value
imagick.allow_zero_dimension_images => 0 => 0
imagick.locale_fix => 0 => 0
imagick.progress_monitor => 0 => 0
imagick.set_single_thread => 1 => 1
imagick.shutdown_sleep_count => 10 => 10
imagick.skip_version_check => 0 => 0
imap
IMAP c-Client Version => 2007f
SSL Support => enabled
Kerberos Support => enabled
Directive => Local Value => Master Value
imap.enable_insecure_rsh => Off => Off
intl
Internationalization support => enabled
ICU version => 57.1
ICU Data version => 57.1
ICU Unicode version => 8.0
Directive => Local Value => Master Value
intl.default_locale => no value => no value
intl.error_level => 0 => 0
intl.use_exceptions => Off => Off
json
json support => enabled
libxml
libXML support => active
libXML Compiled Version => 2.9.4
libXML Loaded Version => 20904
libXML streams => enabled
mailparse
mailparse support => enabled
Extension Version => 3.1.2
Directive => Local Value => Master Value
mailparse.def_charset => us-ascii => us-ascii
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) version => 6.1.3
Directive => Local Value => Master Value
mbstring.detect_order => no value => no value
mbstring.encoding_translation => Off => Off
mbstring.http_input => no value => no value
mbstring.http_output => no value => no value
mbstring.http_output_conv_mimetypes => ^(text/|application/xhtml\+xml) => ^(text/|application/xhtml\+xml)
mbstring.internal_encoding => no value => no value
mbstring.language => neutral => neutral
mbstring.regex_retry_limit => 1000000 => 1000000
mbstring.regex_stack_limit => 100000 => 100000
mbstring.strict_detection => Off => Off
mbstring.substitute_character => no value => no value
mysqli
MysqlI Support => enabled
Client API library version => mysqlnd 8.0.14
Active Persistent Links => 0
Inactive Persistent Links => 0
Active Links => 0
Directive => Local Value => Master Value
mysqli.allow_local_infile => Off => Off
mysqli.allow_persistent => On => On
mysqli.default_host => no value => no value
mysqli.default_port => 3306 => 3306
mysqli.default_pw => no value => no value
mysqli.default_socket => /var/run/mysqld/mysqld.sock => /var/run/mysqld/mysqld.sock
mysqli.default_user => no value => no value
mysqli.max_links => Unlimited => Unlimited
mysqli.max_persistent => Unlimited => Unlimited
mysqli.reconnect => Off => Off
mysqli.rollback_on_cached_plink => Off => Off
mysqlnd
mysqlnd => enabled
Version => mysqlnd 8.0.14
Compression => supported
core SSL => supported
extended SSL => supported
Command buffer size => 4096
Read buffer size => 32768
Read timeout => 86400
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_caching_sha2_password,auth_plugin_sha256_password
API Extensions => mysqli,pdo_mysql
openssl
OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.1.0l 10 Sep 2019
OpenSSL Header Version => OpenSSL 1.1.0l 10 Sep 2019
Openssl default config => /usr/lib/ssl/openssl.cnf
Directive => Local Value => Master Value
openssl.cafile => no value => no value
openssl.capath => no value => no value
pcntl
pcntl support => enabled
pcre
PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 10.35 2020-05-09
PCRE Unicode Version => 13.0.0
PCRE JIT Support => enabled
PCRE JIT Target => x86 64bit (little endian + unaligned)
Directive => Local Value => Master Value
pcre.backtrack_limit => 1000000 => 1000000
pcre.jit => 1 => 1
pcre.recursion_limit => 100000 => 100000
PDO
PDO support => enabled
PDO drivers => mysql, sqlite
pdo_mysql
PDO Driver for MySQL => enabled
Client API version => mysqlnd 8.0.14
Directive => Local Value => Master Value
pdo_mysql.default_socket => /var/run/mysqld/mysqld.sock => /var/run/mysqld/mysqld.sock
pdo_sqlite
PDO Driver for SQLite 3.x => enabled
SQLite Library => 3.16.2
pgsql
PostgreSQL Support => enabled
PostgreSQL (libpq) Version => 9.6.24
Multibyte character support => enabled
Active Persistent Links => 0
Active Links => 0
Directive => Local Value => Master Value
pgsql.allow_persistent => On => On
pgsql.auto_reset_persistent => Off => Off
pgsql.ignore_notice => Off => Off
pgsql.log_notice => Off => Off
pgsql.max_links => Unlimited => Unlimited
pgsql.max_persistent => Unlimited => Unlimited
Phar
Phar: PHP Archive support => enabled
Phar API version => 1.1.1
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.
Directive => Local Value => Master Value
phar.cache_list => no value => no value
phar.readonly => On => On
phar.require_hash => On => On
posix
POSIX support => enabled
pspell
PSpell Support => enabled
readline
Readline Support => enabled
Readline library => EditLine wrapper
Directive => Local Value => Master Value
cli.pager => no value => no value
cli.prompt => \b \> => \b \>
Reflection
Reflection => enabled
session
Session Support => enabled
Registered save handlers => files user
Registered serializer handlers => php_serialize php php_binary
Directive => Local Value => Master Value
session.auto_start => Off => Off
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_httponly => no value => no value
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_samesite => no value => no value
session.cookie_secure => 0 => 0
session.gc_divisor => 1000 => 1000
session.gc_maxlifetime => 1440 => 1440
session.gc_probability => 0 => 0
session.lazy_write => On => On
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => /var/lib/php/sessions => /var/lib/php/sessions
session.serialize_handler => php => php
session.sid_bits_per_character => 5 => 5
session.sid_length => 26 => 26
session.upload_progress.cleanup => On => On
session.upload_progress.enabled => On => On
session.upload_progress.freq => 1% => 1%
session.upload_progress.min_freq => 1 => 1
session.upload_progress.name => PHP_SESSION_UPLOAD_PROGRESS => PHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefix => upload_progress_ => upload_progress_
session.use_cookies => 1 => 1
session.use_only_cookies => 1 => 1
session.use_strict_mode => 0 => 0
session.use_trans_sid => 0 => 0
SimpleXML
SimpleXML support => enabled
Schema support => enabled
soap
Soap Client => enabled
Soap Server => enabled
Directive => Local Value => Master Value
soap.wsdl_cache => 1 => 1
soap.wsdl_cache_dir => /tmp => /tmp
soap.wsdl_cache_enabled => On => On
soap.wsdl_cache_limit => 5 => 5
soap.wsdl_cache_ttl => 86400 => 86400
sockets
Sockets Support => enabled
sodium
sodium support => enabled
libsodium headers version => 1.0.16
libsodium library version => 1.0.16
SPL
SPL support => enabled
Interfaces => 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
standard
Dynamic Library Support => enabled
Path to sendmail => /usr/sbin/sendmail -t -i
Directive => Local Value => Master Value
assert.active => On => On
assert.bail => Off => Off
assert.callback => no value => no value
assert.exception => On => On
assert.warning => On => On
auto_detect_line_endings => Off => Off
default_socket_timeout => 60 => 60
from => no value => no value
session.trans_sid_hosts => no value => no value
session.trans_sid_tags => a=href,area=href,frame=src,form= => a=href,area=href,frame=src,form=
unserialize_max_depth => 4096 => 4096
url_rewriter.hosts => no value => no value
url_rewriter.tags => form= => form=
user_agent => no value => no value
sysvmsg
sysvmsg support => enabled
sysvsem
sysvsem support => enabled
sysvshm
sysvshm support => enabled
tidy
Tidy support => enabled
libTidy Version => 5.2.0
libTidy Release => 2016/04/07
Directive => Local Value => Master Value
tidy.clean_output => no value => no value
tidy.default_config => no value => no value
tokenizer
Tokenizer Support => enabled
xml
XML Support => active
XML Namespace Support => active
libxml2 Version => 2.9.4
xmlreader
XMLReader => enabled
xmlwriter
XMLWriter => enabled
xsl
XSL => enabled
libxslt Version => 1.1.29
libxslt compiled against libxml Version => 2.9.4
EXSLT => enabled
libexslt Version => 1.1.29
Zend OPcache
Opcode Caching => Disabled
Optimization => Disabled
SHM Cache => Enabled
File Cache => Disabled
JIT => On
Startup Failed => Opcode Caching is disabled for CLI
Directive => Local Value => Master Value
opcache.blacklist_filename => no value => no value
opcache.consistency_checks => 0 => 0
opcache.dups_fix => Off => Off
opcache.enable => On => On
opcache.enable_cli => Off => Off
opcache.enable_file_override => Off => Off
opcache.error_log => no value => no value
opcache.file_cache => no value => no value
opcache.file_cache_consistency_checks => On => On
opcache.file_cache_only => Off => Off
opcache.file_update_protection => 2 => 2
opcache.force_restart_timeout => 180 => 180
opcache.huge_code_pages => Off => Off
opcache.interned_strings_buffer => 8 => 8
opcache.jit => tracing => tracing
opcache.jit_bisect_limit => 0 => 0
opcache.jit_blacklist_root_trace => 16 => 16
opcache.jit_blacklist_side_trace => 8 => 8
opcache.jit_buffer_size => 0 => 0
opcache.jit_debug => 0 => 0
opcache.jit_hot_func => 127 => 127
opcache.jit_hot_loop => 64 => 64
opcache.jit_hot_return => 8 => 8
opcache.jit_hot_side_exit => 8 => 8
opcache.jit_max_exit_counters => 8192 => 8192
opcache.jit_max_loop_unrolls => 8 => 8
opcache.jit_max_polymorphic_calls => 2 => 2
opcache.jit_max_recursive_calls => 2 => 2
opcache.jit_max_recursive_returns => 2 => 2
opcache.jit_max_root_traces => 1024 => 1024
opcache.jit_max_side_traces => 128 => 128
opcache.jit_prof_threshold => 0.005 => 0.005
opcache.lockfile_path => /tmp => /tmp
opcache.log_verbosity_level => 1 => 1
opcache.max_accelerated_files => 10000 => 10000
opcache.max_file_size => 0 => 0
opcache.max_wasted_percentage => 5 => 5
opcache.memory_consumption => 128 => 128
opcache.opt_debug_level => 0 => 0
opcache.optimization_level => 0x7FFEBFFF => 0x7FFEBFFF
opcache.preferred_memory_model => no value => no value
opcache.preload => no value => no value
opcache.preload_user => no value => no value
opcache.protect_memory => Off => Off
opcache.record_warnings => Off => Off
opcache.restrict_api => no value => no value
opcache.revalidate_freq => 2 => 2
opcache.revalidate_path => On => On
opcache.save_comments => On => On
opcache.use_cwd => On => On
opcache.validate_permission => On => On
opcache.validate_root => Off => Off
opcache.validate_timestamps => On => On
zip
Zip => enabled
Zip version => 1.19.5
Libzip version => 1.1.2
zlib
ZLib Support => enabled
Stream Wrapper => compress.zlib://
Stream Filter => zlib.inflate, zlib.deflate
Compiled Version => 1.2.8
Linked Version => 1.2.8
Directive => Local Value => Master Value
zlib.output_compression => Off => Off
zlib.output_compression_level => -1 => -1
zlib.output_handler => no value => no value
Additional Modules
Module Name
Environment
Variable => Value
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=00: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:*.zst=01;31:*.tzst=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:*.mjpg=01;35:*.mjpeg=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:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
LANG => en_US.UTF-8
XDG_SESSION_ID => 244700
USER => root
PWD => /root
HOME => /root
SSH_TTY => /dev/pts/0
MAIL => /var/mail/root
TERM => xterm
SHELL => /bin/bash
LS_OPTIONS => --color=auto
SHLVL => 1
LANGUAGE => en_US:en
LOGNAME => root
XDG_RUNTIME_DIR => /run/user/0
PATH => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
_ => /opt/plesk/php/8.0/bin/php
PHP Variables
Variable => Value
$_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=00: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:*.zst=01;31:*.tzst=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:*.mjpg=01;35:*.mjpeg=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:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
$_SERVER['LANG'] => en_US.UTF-8
$_SERVER['PM2_HOME'] => /var/nodejs/.pm2
$_SERVER['XDG_SESSION_ID'] => 244700
$_SERVER['USER'] => root
$_SERVER['PWD'] => /root
$_SERVER['HOME'] => /root
$_SERVER['SSH_TTY'] => /dev/pts/0
$_SERVER['MAIL'] => /var/mail/root
$_SERVER['TERM'] => xterm
$_SERVER['SHELL'] => /bin/bash
$_SERVER['LS_OPTIONS'] => --color=auto
$_SERVER['SHLVL'] => 1
$_SERVER['LANGUAGE'] => en_US:en
$_SERVER['LOGNAME'] => root
$_SERVER['XDG_RUNTIME_DIR'] => /run/user/0
$_SERVER['PATH'] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
$_SERVER['_'] => /opt/plesk/php/8.0/bin/php
$_SERVER['PHP_SELF'] =>
$_SERVER['SCRIPT_NAME'] =>
$_SERVER['SCRIPT_FILENAME'] =>
$_SERVER['PATH_TRANSLATED'] =>
$_SERVER['DOCUMENT_ROOT'] =>
$_SERVER['REQUEST_TIME_FLOAT'] => 1640353017.5951
$_SERVER['REQUEST_TIME'] => 1640353017
$_SERVER['argv'] => Array
(
)
$_SERVER['argc'] => 0
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.
@arnaud-lb Was the information provided before enough or do you need more information?
Hi @anli-xsigns
Sorry, I was AFK for a few days.
Thank you for these details. Unfortunately I still can't figure why this is not working for you.
However, I noticed that your phpinfo output doesn't mention memprof at all. What other differences are there between your php cli and your php fpm/mod ?
Hi @arnaud-lb,
thanks for looking into it and sorry for my delayed response - I couldn't look at this earlier. I managed to get this fixed - the reason was that I use a plesk managed server and enabled the memprof extension only for that specific web (that's why memprof wasn't listed in the php info which I made from console because the additional php.ini settings made for the specific domain are only taken into account when executed via webserver). However I added memprof to the global php.ini and now everything works as expected.
Thanks a lot for your help!
Hi @anli-xsigns
Thank you for the followup!
What is puzzling me is that you did have the extension loaded in the web context, but it wasn't seeing the MEMPROF_PROFILE trigger. Do you know how Plesk was loading the extension before you added it to the global php.ini ?
I've installed memprof via pecl on macos on php 7.2, pecl installed memprof 2.1.2
I've run a quick test with:
memprof_enabled()
works and is true, I also get the output generated bymemprof_dump_callgrind
however:var_dump(memprof_enabled_flags());
givesCall to undefined function memprof_enabled_flags()
MEMPROF_PROFILE=dump_on_limit php test.php
doesn't output the dump on crashI've tried to also change the dump folder to put it in the current working directory, no output
Any idea?