php / php-src

The PHP Interpreter
https://www.php.net
Other
38.17k stars 7.74k forks source link

Exceeding max_file_uploads causes an apparently unrelated "cannot modify headers" warning before script execution #10654

Closed php4fan closed 1 year ago

php4fan commented 1 year ago

Description

The following code:

<?php

if (!empty($_POST))
    echo "Done.";
else {

?><!DOCTYPE html>
<html>
<head><title>xxxx</title></head>
<body>
    <form method="post" enctype="multipart/form-data">
        <div>Lalalala</div>
        <input type="file" multiple name="diocane[]">
        <input type="hidden" name="something" value="1">
        <button type="submit">Upload</button>
    </form>
</body>
</html>
<?php
}

when uploading 21 files (one more than the value of max_file_uploads), resulted in this output:

Warning: Maximum number of allowable file uploads has been exceeded in Unknown on line 0

Warning: Cannot modify header information - headers already sent in Unknown on line 0
Done.

But I expected this output instead:

Warning: Maximum number of allowable file uploads has been exceeded in Unknown on line 0

I am not attempting to set any header, and yet I get the "cannot modify header information" error. I understand that headers cannot be set because of the output that was generated because of the warning, but again, my code did not attempt to send any header.

It seems that PHP is trying to set some headers, during the startup phase (i.e. before my script gets executed), but:

  1. I'm not sure there's a good reason for that
  2. if there is, do it before you handle uploaded files, or maybe silence the "cannot modify header information" warning when you do.
  3. give more information in the error message so that I can at least figure out what headers failed to be sent.

PHP Version

PHP 7.4.11

Operating System

Debian 10

damianwadley commented 1 year ago

Works for me in 8.1, which I have immediately available.

Do you have any extensions installed? Error handlers? Is output buffering enabled? On pages that work, any response headers besides the ones that PHP itself creates?

KapitanOczywisty commented 1 year ago

session.auto_start enabled?

github-actions[bot] commented 1 year ago

No feedback was provided. The issue is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so. Thank you.

php4fan commented 1 year ago

(NOTE: I have edited the test code, it was missing a [] at the end of the name of the file input, which was present in my tests and it's crucial to triggering the issue).

The issue is being suspended because we assume that you are no longer experiencing the problem.

That's a pretty wild assumption, and no, that is not the case. I am still experiencing the problem.

I'll attach phpinfo below.

session.auto_start enabled?

No.

Do you have any extensions installed?

Several.

Error handlers?

I don't think so. Is there a way for an error handler to somehow be there without me registering one in the code (which as you can see I am not doing)?

Is output buffering enabled?

I don't think so, not entirely sure. Phpinfo shows "no value" for output_buffering and output_handler.

On pages that work, any response headers besides the ones that PHP itself creates?

When I do a GET request to the above test script, which doesn't trigger the error, I get these headers in the response:

Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8
Date: Wed, 22 Mar 2023 11:49:26 GMT
Keep-Alive: timeout=1, max=150
Server: Apache
Transfer-Encoding: chunked

When I do a POST request with less than (or up to) 20 files which does not trigger the error, I get the exact same headers. And when I do a POST request with more than 20 files, triggering the error, I get the exact same headers, too.

Works for me in 8.1

When you say "works for me", do you mean you get the expected warning about exceeding the allowed number of uploads, but don't get the warning about failing to set headers? If that is the case, then it works for you. If you are not getting any warning at all, it does not mean it "works for you", you are just not meeting the test case. Note there was a missing [] at the end of the name of the file input in my code (now corrected). Also in order to reproducte you need to have:

display_errors=1
display_startup_errors=1
error_reporting=24567

(some lesser value of error_reporting may be enough).

Here's the output of phpinfo():

PHP Version 7.4.11
System  Linux s110-74 4.14.40 #1 SMP Comvive Servidores x86_64
Build Date  Oct 29 2020 20:59:39
Configure Command   './configure' '--prefix=/*******/daemons/php-7.4' '--localstatedir=/var' '--enable-fpm' '--enable-xml' '--enable-pdo' '--enable-dba=shared' '--with-zip' '--enable-ftp=shared' '--enable-dom=shared' '--enable-intl=shared' '--enable-json=shared' '--enable-soap=shared' '--enable-exif=shared' '--enable-phar=shared' '--enable-posix=shared' '--enable-ctype=shared' '--enable-shmop=shared' '--enable-pcntl=shared' '--enable-libxml' '--enable-dtrace=shared' '--enable-bcmath=shared' '--enable-session=shared' '--enable-sockets=shared' '--enable-mbstring=shared' '--enable-calendar=shared' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--enable-gd-native-ttf' '--enable-gd-jis-conv' '--with-config-file-path=/*******/daemons/php-7.4/etc/' '--with-config-file-scan-dir=/*******/daemons/php-7.4/lib/php/extensions' '--with-pic' '--with-db4' '--with-mhash' '--with-qdbm=/usr' '--without-gdbm' '--with-bz2' '--with-pear' '--with-zlib' '--with-zlib-dir=/usr' '--with-pcre-regex' '--with-iconv=shared' '--with-tidy=shared' '--with-curl=shared' '--with-openssl=shared' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos' '--with-pgsql=shared' '--with-sqlite3=/usr' '--with-unixODBC=shared,/usr' '--with-interbase=shared,/usr' '--with-mysqli=shared,mysqlnd' '--with-mysql-sock=/tmp/mysql.sock' '--with-pdo-dblib=shared' '--with-pdo-mysql=shared' '--with-pdo-pgsql=shared' '--with-pdo-sqlite=/usr' '--with-pdo-firebird=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-xmlrpc=shared' '--with-xsl=shared,/usr' '--with-snmp=shared,/usr' '--enable-gd' '--with-gettext=shared,/usr' '--with-gmp=shared,/usr' '--with-enchant=shared' '--with-pspell=shared,/usr' '--with-readline=/usr' '--with-ldap=shared,/usr' '--with-ldap-sasl=/usr' '--enable-opcache' '--with-xmlrpc' '--with-fpm-acl' '--with-jpeg' '--with-freetype' '--with-xpm' '--with-webp'
Server API  FPM/FastCGI
Virtual Directory Support   disabled
Configuration File (php.ini) Path   /*******/daemons/php-7.4/etc/
Loaded Configuration File   /*******/daemons/php-7.4/etc/php.ini
Scan this dir for additional .ini files /*******/daemons/php-7.4/lib/php/extensions
Additional .ini files parsed    /*******/daemons/php-7.4/lib/php/extensions/00-bcmath.ini, /*******/daemons/php-7.4/lib/php/extensions/00-ctype.ini, /*******/daemons/php-7.4/lib/php/extensions/00-curl.ini, /*******/daemons/php-7.4/lib/php/extensions/00-dom.ini, /*******/daemons/php-7.4/lib/php/extensions/00-exif.ini, /*******/daemons/php-7.4/lib/php/extensions/00-ftp.ini, /*******/daemons/php-7.4/lib/php/extensions/00-iconv.ini, /*******/daemons/php-7.4/lib/php/extensions/00-intl.ini, /*******/daemons/php-7.4/lib/php/extensions/00-json.ini, /*******/daemons/php-7.4/lib/php/extensions/00-ldap.ini, /*******/daemons/php-7.4/lib/php/extensions/00-mbstring.ini, /*******/daemons/php-7.4/lib/php/extensions/00-mysqli.ini, /*******/daemons/php-7.4/lib/php/extensions/00-opcache.ini, /*******/daemons/php-7.4/lib/php/extensions/00-openssl.ini, /*******/daemons/php-7.4/lib/php/extensions/00-pdo-mysql.ini, /*******/daemons/php-7.4/lib/php/extensions/00-phar.ini, /*******/daemons/php-7.4/lib/php/extensions/00-posix.ini, /*******/daemons/php-7.4/lib/php/extensions/00-session.ini, /*******/daemons/php-7.4/lib/php/extensions/00-soap.ini, /*******/daemons/php-7.4/lib/php/extensions/00-xmlreader.ini, /*******/daemons/php-7.4/lib/php/extensions/00-xmlwriter.ini, /*******/daemons/php-7.4/lib/php/extensions/10-igbinary.ini, /*******/daemons/php-7.4/lib/php/extensions/10-imagick.ini, /*******/daemons/php-7.4/lib/php/extensions/10-memcache.ini, /*******/daemons/php-7.4/lib/php/extensions/10-memcached.ini, /*******/daemons/php-7.4/lib/php/extensions/10-msgpack.ini, /*******/daemons/php-7.4/lib/php/extensions/10-newrelic.ini
PHP API 20190902
PHP Extension   20190902
Zend Extension  320190902
Zend Extension Build    API320190902,NTS
PHP Extension Build API20190902,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  compress.zlib, compress.bzip2, zip, php, file, glob, data, http, ftp, https, ftps, phar
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2
Registered Stream Filters   zlib.*, bzip2.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, convert.iconv.*
Zend logoThis program makes use of the Zend Scripting Language Engine:
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.11, 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
cgi-fcgi
php-fpm active
Directive   Local Value Master Value
cgi.discard_path    0   0
cgi.fix_pathinfo    1   1
cgi.force_redirect  1   1
cgi.nph 0   0
cgi.redirect_status_env no value    no value
cgi.rfc2616_headers 0   0
fastcgi.error_header    no value    no value
fastcgi.logging 1   1
fpm.config  no value    no value
Core
PHP Version 7.4.11
Directive   Local Value Master Value
allow_url_fopen On  On
allow_url_include   On  On
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  On  On
display_startup_errors  On  Off
doc_root    no value    no value
docref_ext  no value    no value
docref_root no value    no value
enable_dl   On  On
enable_post_data_reading    On  On
error_append_string no value    no value
error_log   /*******/sites/*******.com/web/htdocs/logs/error_log    /*******/sites/*******.com/web/htdocs/logs/error_log
error_prepend_string    no value    no value
error_reporting 24567   81
expose_php  Off Off
extension_dir   /*******/daemons/php-7.4/lib/php/extensions/    /*******/daemons/php-7.4/lib/php/extensions/
file_uploads    On  On
hard_timeout    2   2
highlight.comment   #FF8000 #FF8000
highlight.default   #0000BB #0000BB
highlight.html  #000000 #000000
highlight.keyword   #007700 #007700
highlight.string    #DD0000 #DD0000
html_errors On  On
ignore_repeated_errors  Off Off
ignore_repeated_source  Off Off
ignore_user_abort   Off Off
implicit_flush  Off Off
include_path    .:/php/includes:/*******/daemons/php-7.4/lib/php    .:/php/includes:/*******/daemons/php-7.4/lib/php
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   On  On
mail.force_extra_parameters no value    no value
mail.log    no value    no value
max_execution_time  300 300
max_file_uploads    20  20
max_input_nesting_level 64  64
max_input_time  300 300
max_input_vars  15000   15000
memory_limit    512M    512M
open_basedir    no value    no value
output_buffering    no value    no value
output_encoding no value    no value
output_handler  no value    no value
post_max_size   500M    500M
precision   12  12
realpath_cache_size 4096K   4096K
realpath_cache_ttl  120 120
register_argc_argv  On  On
report_memleaks On  On
report_zend_debug   On  On
request_order   no value    no value
sendmail_from   webmaster@*******.com   webmaster@*******.com
sendmail_path   /usr/lib/sendmail -t    /usr/lib/sendmail -t
serialize_precision -1  -1
short_open_tag  On  On
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
track_errors    Off Off
unserialize_callback_func   no value    no value
upload_max_filesize 500M    500M
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 EGPCS   EGPCS
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  Off Off
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 2018.04
"Olson" Timezone Database Version   2020.1
Timezone Database   internal
Default timezone    Europe/Madrid
Directive   Local Value Master Value
date.default_latitude   31.7667 31.7667
date.default_longitude  35.2333 35.2333
date.sunrise_zenith 90.583333   90.583333
date.sunset_zenith  90.583333   90.583333
date.timezone   Europe/Madrid   Europe/Madrid
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    537
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
JIS-mapped Japanese Font Support    enabled
WebP Support    enabled
BMP Support enabled
TGA Read Support    enabled
Directive   Local Value Master Value
gd.jpeg_ignore_warning  1   1
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
MHASH support   Enabled
MHASH API Version   Emulated Support
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
igbinary
igbinary support    enabled
igbinary version    3.1.2
igbinary APCu serializer ABI    no
igbinary session support    no
Directive   Local Value Master Value
igbinary.compact_strings    On  On
imagick
imagick module  enabled
imagick module version  3.4.4
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:    236
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, DJVU, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GROUP4, GV, 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, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, 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, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
Directive   Local Value Master Value
imagick.locale_fix  0   0
imagick.progress_monitor    0   0
imagick.skip_version_check  0   0
intl
Internationalization support    enabled
ICU version 57.1
ICU Data version    57.1
ICU TZData version  2016b
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 0   0
json
json support    enabled
ldap
LDAP Support    enabled
Total Links 0/unlimited
API Version 3001
Vendor Name OpenLDAP
Vendor Version  20444
SASL Support    Enabled
Directive   Local Value Master Value
ldap.max_links  Unlimited   Unlimited
libxml
libXML support  active
libXML Compiled Version 2.9.4
libXML Loaded Version   20904
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) version 6.1.3
Directive   Local Value Master Value
mbstring.detect_order   no value    no value
mbstring.encoding_translation   Off Off
mbstring.func_overload  0   0
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
memcache
memcache support    enabled
Version 4.0.5.2
Revision    $Revision$
Directive   Local Value Master Value
memcache.allow_failover 1   1
memcache.chunk_size 32768   32768
memcache.compress_threshold 20000   20000
memcache.default_port   11211   11211
memcache.hash_function  crc32   crc32
memcache.hash_strategy  consistent  consistent
memcache.lock_timeout   15  15
memcache.max_failover_attempts  20  20
memcache.prefix_host_key    0   0
memcache.prefix_host_key_remove_subdomain   0   0
memcache.prefix_host_key_remove_www 1   1
memcache.prefix_static_key  no value    no value
memcache.protocol   ascii   ascii
memcache.redundancy 1   1
memcache.session_prefix_host_key    0   0
memcache.session_prefix_host_key_remove_subdomain   0   0
memcache.session_prefix_host_key_remove_www 1   1
memcache.session_prefix_static_key  no value    no value
memcache.session_redundancy 2   2
memcache.session_save_path  no value    no value
memcached
memcached support   enabled
Version 3.1.5
libmemcached version    1.0.18
SASL support    yes
Session support yes
igbinary support    no
json support    no
msgpack support no
Directive   Local Value Master Value
memcached.compression_factor    1.3 1.3
memcached.compression_threshold 2000    2000
memcached.compression_type  fastlz  fastlz
memcached.default_binary_protocol   Off Off
memcached.default_connect_timeout   0   0
memcached.default_consistent_hash   Off Off
memcached.serializer    php php
memcached.sess_binary_protocol  On  On
memcached.sess_connect_timeout  0   0
memcached.sess_consistent_hash  On  On
memcached.sess_consistent_hash_type ketama  ketama
memcached.sess_lock_expire  0   0
memcached.sess_lock_max_wait    not set not set
memcached.sess_lock_retries 5   5
memcached.sess_lock_wait    not set not set
memcached.sess_lock_wait_max    150 150
memcached.sess_lock_wait_min    150 150
memcached.sess_locking  On  On
memcached.sess_number_of_replicas   0   0
memcached.sess_persistent   Off Off
memcached.sess_prefix   memc.sess.key.  memc.sess.key.
memcached.sess_randomize_replica_read   Off Off
memcached.sess_remove_failed_servers    Off Off
memcached.sess_sasl_password    no value    no value
memcached.sess_sasl_username    no value    no value
memcached.sess_server_failure_limit 0   0
memcached.store_retry_count 2   2
msgpack
MessagePack Support enabled
Session Support enabled
extension Version   2.1.0
header Version  3.2.0
Directive   Local Value Master Value
msgpack.error_display   On  On
msgpack.illegal_key_insert  Off Off
msgpack.php_only    On  On
msgpack.use_str8_serialization  On  On
mysqli
MysqlI Support  enabled
Client API library version  mysqlnd 7.4.11
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   /tmp/mysql.sock /tmp/mysql.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 7.4.11
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  pdo_mysql,mysqli
newrelic
New Relic RPM Monitoring    enabled
New Relic Version   10.4.0.316 ("goldenrod" - "30f9fca2e3e7")
Global Directives
Directive Name  Global Value
newrelic.daemon.address @newrelic
newrelic.daemon.app_connect_timeout no value
newrelic.daemon.app_timeout 0
newrelic.daemon.auditlog    no value
newrelic.daemon.collector_host  no value
newrelic.daemon.dont_launch no value
newrelic.daemon.location    /usr/bin/newrelic-daemon
newrelic.daemon.logfile /var/log/newrelic/newrelic-daemon.log
newrelic.daemon.loglevel    no value
newrelic.daemon.pidfile no value
newrelic.daemon.port    @newrelic
newrelic.daemon.proxy   no value
newrelic.daemon.ssl_ca_bundle   no value
newrelic.daemon.ssl_ca_path no value
newrelic.daemon.start_timeout   no value
newrelic.daemon.utilization.detect_aws  enabled
newrelic.daemon.utilization.detect_azure    enabled
newrelic.daemon.utilization.detect_docker   enabled
newrelic.daemon.utilization.detect_gcp  enabled
newrelic.daemon.utilization.detect_kubernetes   enabled
newrelic.daemon.utilization.detect_pcf  enabled
newrelic.feature_flag   no value
newrelic.high_security  0
newrelic.logfile    /var/log/newrelic/php_agent.log
newrelic.loglevel   info
newrelic.preload_framework_library_detection    1
newrelic.transaction_tracer.internal_functions_enabled  disabled
Per-Directory Directives
Directive Name  Local/Active Value  Master/Default Value
newrelic.allow_raw_exception_messages   1   1
newrelic.analytics_events.capture_attributes    enabled enabled
newrelic.analytics_events.enabled   enabled enabled
newrelic.application_logging.enabled    enabled enabled
newrelic.application_logging.forwarding.enabled enabled enabled
newrelic.application_logging.forwarding.log_level   WARNING WARNING
newrelic.application_logging.forwarding.max_samples_stored  10000   10000
newrelic.application_logging.metrics.enabled    enabled enabled
newrelic.appname    *******.com webventurebcn-generic
newrelic.attributes.enabled enabled enabled
newrelic.attributes.exclude no value    no value
newrelic.attributes.include request.parameters.*    request.parameters.*
newrelic.browser_monitoring.attributes.enabled  disabled    disabled
newrelic.browser_monitoring.attributes.exclude  no value    no value
newrelic.browser_monitoring.attributes.include  no value    no value
newrelic.browser_monitoring.auto_instrument disabled    disabled
newrelic.browser_monitoring.capture_attributes  disabled    disabled
newrelic.browser_monitoring.debug   disabled    disabled
newrelic.browser_monitoring.loader  rum rum
newrelic.capture_params off off
newrelic.code_level_metrics.enabled disabled    disabled
newrelic.cross_application_tracer.enabled   disabled    disabled
newrelic.custom_events.max_samples_stored   30000   30000
newrelic.custom_insights_events.enabled enabled enabled
newrelic.custom_parameters_enabled  1   1
newrelic.datastore_tracer.database_name_reporting.enabled   enabled enabled
newrelic.datastore_tracer.instance_reporting.enabled    enabled enabled
newrelic.distributed_tracing_enabled    0   0
newrelic.distributed_tracing_exclude_newrelic_header    0   0
newrelic.enabled    yes yes
newrelic.error_collector.attributes.enabled enabled enabled
newrelic.error_collector.attributes.exclude no value    no value
newrelic.error_collector.attributes.include no value    no value
newrelic.error_collector.capture_attributes enabled enabled
newrelic.error_collector.capture_events enabled enabled
newrelic.error_collector.enabled    enabled enabled
newrelic.error_collector.ignore_errors  no value    no value
newrelic.error_collector.ignore_exceptions  no value    no value
newrelic.error_collector.ignore_user_exception_handler  no  no
newrelic.error_collector.prioritize_api_errors  no  no
newrelic.error_collector.record_database_errors yes yes
newrelic.framework  auto-detect auto-detect
newrelic.framework.drupal.modules   on  on
newrelic.framework.wordpress.hooks  on  on
newrelic.framework.wordpress.hooks_skip_filename    no value    no value
newrelic.guzzle.enabled 1   1
newrelic.ignored_params no value    no value
newrelic.infinite_tracing.span_events.agent_queue.size  1000    1000
newrelic.infinite_tracing.span_events.agent_queue.timeout   1s  1s
newrelic.infinite_tracing.span_events.queue_size    100000  100000
newrelic.infinite_tracing.trace_observer.host   no value    no value
newrelic.infinite_tracing.trace_observer.port   443 443
newrelic.labels no value    no value
newrelic.license    eu...AL eu...AL
newrelic.phpunit_events.enabled disabled    disabled
newrelic.process_host.display_name  no value    no value
newrelic.security_policies_token    no value    no value
newrelic.span_events.attributes.enabled enabled enabled
newrelic.span_events.attributes.exclude no value    no value
newrelic.span_events.attributes.include no value    no value
newrelic.span_events.max_samples_stored 2000    2000
newrelic.span_events_enabled    1   1
newrelic.special.max_nesting_level  -1  -1
newrelic.synthetics.enabled enabled enabled
newrelic.transaction_events.attributes.enabled  enabled enabled
newrelic.transaction_events.attributes.exclude  no value    no value
newrelic.transaction_events.attributes.include  no value    no value
newrelic.transaction_events.enabled enabled enabled
newrelic.transaction_tracer.attributes.enabled  enabled enabled
newrelic.transaction_tracer.attributes.exclude  no value    no value
newrelic.transaction_tracer.attributes.include  no value    no value
newrelic.transaction_tracer.capture_attributes  enabled enabled
newrelic.transaction_tracer.custom  no value    no value
newrelic.transaction_tracer.detail  1   1
newrelic.transaction_tracer.enabled enabled enabled
newrelic.transaction_tracer.explain_enabled enabled enabled
newrelic.transaction_tracer.explain_threshold   500 500
newrelic.transaction_tracer.gather_input_queries    1   1
newrelic.transaction_tracer.max_segments_cli    100000  100000
newrelic.transaction_tracer.max_segments_web    0   0
newrelic.transaction_tracer.record_sql  obfuscated  obfuscated
newrelic.transaction_tracer.slow_sql    enabled enabled
newrelic.transaction_tracer.stack_trace_threshold   500 500
newrelic.transaction_tracer.threshold   apdex_f apdex_f
newrelic.webtransaction.name.files  no value    no value
newrelic.webtransaction.name.functions  no value    no value
newrelic.webtransaction.name.remove_trailing_path   no  no
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
pcre
PCRE (Perl Compatible Regular Expressions) Support  enabled
PCRE Library Version    10.34 2019-11-21
PCRE Unicode Version    12.1.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 sqlite, mysql
pdo_mysql
PDO Driver for MySQL    enabled
Client API version  mysqlnd 7.4.11
Directive   Local Value Master Value
pdo_mysql.default_socket    /tmp/mysql.sock /tmp/mysql.sock
pdo_sqlite
PDO Driver for SQLite 3.x   enabled
SQLite Library  3.16.2
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
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
readline
Readline Support    enabled
Readline library    7.0
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 memcache memcached
Registered serializer handlers  php_serialize php php_binary msgpack
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 0   0
session.cookie_lifetime 0   0
session.cookie_path /   /
session.cookie_samesite no value    no value
session.cookie_secure   0   0
session.gc_divisor  100 100
session.gc_maxlifetime  1440    1440
session.gc_probability  1   1
session.lazy_write  On  On
session.name    PHPSESSID   PHPSESSID
session.referer_check   no value    no value
session.save_handler    files   files
session.save_path   /tmp    /tmp
session.serialize_handler   php php
session.sid_bits_per_character  4   4
session.sid_length  32  32
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 1   1
soap.wsdl_cache_limit   5   5
soap.wsdl_cache_ttl 86400   86400
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
sqlite3
SQLite3 support enabled
SQLite Library  3.16.2
Directive   Local Value Master Value
sqlite3.extension_dir   no value    no value
standard
Dynamic Library Support enabled
Path to sendmail    /usr/lib/sendmail -t
Directive   Local Value Master Value
assert.active   1   1
assert.bail 0   0
assert.callback no value    no value
assert.exception    0   0
assert.quiet_eval   0   0
assert.warning  1   1
auto_detect_line_endings    0   0
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   a=href,area=href,frame=src,input=src,form=,fieldset=    a=href,area=href,frame=src,input=src,form=,fieldset=
user_agent  no value    no value
tokenizer
Tokenizer Support   enabled
xml
XML Support active
XML Namespace Support   active
libxml2 Version 2.9.4
xmlreader
XMLReader   enabled
xmlrpc
core library version    xmlrpc-epi v. 0.51
author  Dan Libby
homepage    http://xmlrpc-epi.sourceforge.net
open sourced by Epinions.com
xmlwriter
XMLWriter   enabled
Zend OPcache
Opcode Caching  Up and Running
Optimization    Enabled
SHM Cache   Enabled
File Cache  Disabled
Startup OK
Shared memory model mmap
Cache hits  3198382472
Cache misses    42405
Used memory 915158368
Free memory 119839016
Wasted memory   38744440
Interned Strings Used memory    38934552
Interned Strings Free memory    11396648
Cached scripts  36282
Cached keys 49635
Max keys    65407
OOM restarts    11
Hash keys restarts  0
Manual restarts 7
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 64  64
opcache.lockfile_path   /tmp    /tmp
opcache.log_verbosity_level 1   1
opcache.max_accelerated_files   33000   33000
opcache.max_file_size   0   0
opcache.max_wasted_percentage   5   5
opcache.memory_consumption  1024    1024
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.restrict_api    no value    no value
opcache.revalidate_freq 2   2
opcache.revalidate_path Off Off
opcache.save_comments   On  On
opcache.use_cwd On  On
opcache.validate_permission Off Off
opcache.validate_root   Off Off
opcache.validate_timestamps On  On
zip
Zip enabled
Zip version 1.15.6
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
USER    *******.com
HOME    /home/*******.com
PHP Variables
Variable    Value
$_REQUEST['something']  1
$_POST['something'] 1
$_FILES['diocane']  
Array
(
    [name] => Array
        (
            [0] => IMG1010.jpg
            [1] => IMG1009.jpg
            [2] => IMG1008.jpg
            [3] => IMG1007.jpg
            [4] => IMG1006.jpg
            [5] => IMG1005.jpg
            [6] => IMG1001b.jpg
            [7] => IMG1002.jpg
            [8] => IMG1001.jpg
            [9] => IMG1000.jpg
            [10] => IMG998.jpg
            [11] => IMG997.jpg
            [12] => IMG996.jpg
            [13] => IMG995.jpg
            [14] => IMG994.jpg
            [15] => IMG993.jpg
            [16] => IMG992.jpg
            [17] => IMG991.jpg
            [18] => IMG990.jpg
            [19] => IMG989.jpg
        )

    [type] => Array
        (
            [0] => image/jpeg
            [1] => image/jpeg
            [2] => image/jpeg
            [3] => image/jpeg
            [4] => image/jpeg
            [5] => image/jpeg
            [6] => image/jpeg
            [7] => image/jpeg
            [8] => image/jpeg
            [9] => image/jpeg
            [10] => image/jpeg
            [11] => image/jpeg
            [12] => image/jpeg
            [13] => image/jpeg
            [14] => image/jpeg
            [15] => image/jpeg
            [16] => image/jpeg
            [17] => image/jpeg
            [18] => image/jpeg
            [19] => image/jpeg
        )

    [tmp_name] => Array
        (
            [0] => /tmp/phpl51r8K
            [1] => /tmp/phpAsy2fg
            [2] => /tmp/phpHwDstL
            [3] => /tmp/phpMVnhKg
            [4] => /tmp/php7A4F4L
            [5] => /tmp/phpKgyDsh
            [6] => /tmp/phpfZG2TM
            [7] => /tmp/phpWiuKsi
            [8] => /tmp/php9kGv6N
            [9] => /tmp/php0yDnQj
            [10] => /tmp/phpnIRXDP
            [11] => /tmp/phpiRi4wl
            [12] => /tmp/phpr9j4uR
            [13] => /tmp/phpO0DXwn
            [14] => /tmp/phpNns7BT
            [15] => /tmp/phpm7XJLp
            [16] => /tmp/phpBGeQZV
            [17] => /tmp/phpGjWLgs
            [18] => /tmp/phpxJ2YBY
            [19] => /tmp/phpw7zn1u
        )

    [error] => Array
        (
            [0] => 0
            [1] => 0
            [2] => 0
            [3] => 0
            [4] => 0
            [5] => 0
            [6] => 0
            [7] => 0
            [8] => 0
            [9] => 0
            [10] => 0
            [11] => 0
            [12] => 0
            [13] => 0
            [14] => 0
            [15] => 0
            [16] => 0
            [17] => 0
            [18] => 0
            [19] => 0
        )

    [size] => Array
        (
            [0] => 323439
            [1] => 336872
            [2] => 303376
            [3] => 291466
            [4] => 323731
            [5] => 330419
            [6] => 622495
            [7] => 440345
            [8] => 554407
            [9] => 341069
            [10] => 486820
            [11] => 452887
            [12] => 346537
            [13] => 296444
            [14] => 406854
            [15] => 409838
            [16] => 240814
            [17] => 367529
            [18] => 376712
            [19] => 330419
        )

)
$_SERVER['USER']    *******.com
$_SERVER['HOME']    /home/*******.com
$_SERVER['SCRIPT_NAME'] /testupload.php
$_SERVER['REQUEST_URI'] /testupload.php
$_SERVER['QUERY_STRING']    no value
$_SERVER['REQUEST_METHOD']  POST
$_SERVER['SERVER_PROTOCOL'] HTTP/1.1
$_SERVER['GATEWAY_INTERFACE']   CGI/1.1
$_SERVER['REMOTE_PORT'] 33816
$_SERVER['SCRIPT_FILENAME'] /*******/sites/*******.com/web/htdocs/testupload.php
$_SERVER['SERVER_ADMIN']    webmaster@*******.com
$_SERVER['CONTEXT_DOCUMENT_ROOT']   /*******/sites/*******.com/web/htdocs
$_SERVER['CONTEXT_PREFIX']  no value
$_SERVER['REQUEST_SCHEME']  https
$_SERVER['DOCUMENT_ROOT']   /*******/sites/*******.com/web/htdocs
$_SERVER['REMOTE_ADDR'] 62.57.153.143
$_SERVER['SERVER_PORT'] 443
$_SERVER['SERVER_ADDR'] 91.192.110.74
$_SERVER['SERVER_NAME'] *******.com
$_SERVER['SERVER_SOFTWARE'] Apache
$_SERVER['SERVER_SIGNATURE']    no value
$_SERVER['LD_LIBRARY_PATH'] /*******/daemons/apache-2.4/lib
$_SERVER['PATH']    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
$_SERVER['HTTP_ACCEPT_LANGUAGE']    en-GB,en-US;q=0.9,en;q=0.8,es;q=0.7,ca;q=0.6,it;q=0.5,pt;q=0.4
$_SERVER['HTTP_ACCEPT_ENCODING']    gzip, deflate, br
$_SERVER['HTTP_REFERER']    https://*******.com/testupload.php
$_SERVER['HTTP_SEC_FETCH_DEST'] document
$_SERVER['HTTP_SEC_FETCH_USER'] ?1
$_SERVER['HTTP_SEC_FETCH_MODE'] navigate
$_SERVER['HTTP_SEC_FETCH_SITE'] same-origin
$_SERVER['HTTP_ACCEPT'] text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
$_SERVER['HTTP_USER_AGENT'] Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
$_SERVER['CONTENT_TYPE']    multipart/form-data; boundary=----WebKitFormBoundaryIqS5fdgiS15yHjzs
$_SERVER['HTTP_ORIGIN'] https://*******.com
$_SERVER['HTTP_UPGRADE_INSECURE_REQUESTS']  1
$_SERVER['HTTP_SEC_CH_UA_PLATFORM'] "Linux"
$_SERVER['HTTP_SEC_CH_UA_MOBILE']   ?0
$_SERVER['HTTP_SEC_CH_UA']  "Google Chrome";v="111", "Not(A:Brand";v="8", "Chromium";v="111"
$_SERVER['HTTP_CACHE_CONTROL']  no-cache
$_SERVER['HTTP_PRAGMA'] no-cache
$_SERVER['CONTENT_LENGTH']  7888228
$_SERVER['HTTP_CONNECTION'] keep-alive
$_SERVER['HTTP_HOST']   *******.com
$_SERVER['proxy-nokeepalive']   1
$_SERVER['SSL_SESSION_RESUMED'] Resumed
$_SERVER['SSL_SESSION_ID']  526c12384842e21a02d2a254d3b28da443a0a156096ef24dc005410223d15664
$_SERVER['SSL_SERVER_A_SIG']    sha256WithRSAEncryption
$_SERVER['SSL_SERVER_A_KEY']    rsaEncryption
$_SERVER['SSL_SERVER_I_DN'] CN=R3,O=Let's Encrypt,C=US
$_SERVER['SSL_SERVER_S_DN'] CN=*******.com
$_SERVER['SSL_SERVER_V_END']    Jun 15 11:51:37 2023 GMT
$_SERVER['SSL_SERVER_V_START']  Mar 17 11:51:38 2023 GMT
$_SERVER['SSL_SERVER_M_SERIAL'] 049CCCFB5A573E9E513F35457443F6291C0D
$_SERVER['SSL_SERVER_M_VERSION']    3
$_SERVER['SSL_CLIENT_VERIFY']   NONE
$_SERVER['SSL_CIPHER_ALGKEYSIZE']   128
$_SERVER['SSL_CIPHER_USEKEYSIZE']   128
$_SERVER['SSL_CIPHER_EXPORT']   false
$_SERVER['SSL_CIPHER']  ECDHE-RSA-AES128-GCM-SHA256
$_SERVER['SSL_COMPRESS_METHOD'] NULL
$_SERVER['SSL_SECURE_RENEG']    true
$_SERVER['SSL_PROTOCOL']    TLSv1.2
$_SERVER['SSL_VERSION_LIBRARY'] OpenSSL/1.1.0l
$_SERVER['SSL_VERSION_INTERFACE']   mod_ssl/2.4.43
$_SERVER['SSL_SERVER_SAN_DNS_1']    *******.com
$_SERVER['SSL_SERVER_SAN_DNS_0']    *.*******.com
$_SERVER['SSL_SERVER_I_DN_CN']  R3
$_SERVER['SSL_SERVER_I_DN_O']   Let's Encrypt
$_SERVER['SSL_SERVER_I_DN_C']   US
$_SERVER['SSL_SERVER_S_DN_CN']  *******.com
$_SERVER['SSL_TLS_SNI'] *******.com
$_SERVER['HTTPS']   on
$_SERVER['FCGI_ROLE']   RESPONDER
$_SERVER['PHP_SELF']    /testupload.php
$_SERVER['REQUEST_TIME_FLOAT']  1679485884.25
$_SERVER['REQUEST_TIME']    1679485884
$_SERVER['argv']    
Array
(
)
$_SERVER['argc']    0
$_ENV['USER']   *******.com
$_ENV['HOME']   /home/*******.com
$_ENV['SCRIPT_NAME']    /testupload.php
$_ENV['REQUEST_URI']    /testupload.php
$_ENV['QUERY_STRING']   no value
$_ENV['REQUEST_METHOD'] POST
$_ENV['SERVER_PROTOCOL']    HTTP/1.1
$_ENV['GATEWAY_INTERFACE']  CGI/1.1
$_ENV['REMOTE_PORT']    33816
$_ENV['SCRIPT_FILENAME']    /*******/sites/*******.com/web/htdocs/testupload.php
$_ENV['SERVER_ADMIN']   webmaster@*******.com
$_ENV['CONTEXT_DOCUMENT_ROOT']  /*******/sites/*******.com/web/htdocs
$_ENV['CONTEXT_PREFIX'] no value
$_ENV['REQUEST_SCHEME'] https
$_ENV['DOCUMENT_ROOT']  /*******/sites/*******.com/web/htdocs
$_ENV['REMOTE_ADDR']    62.57.153.143
$_ENV['SERVER_PORT']    443
$_ENV['SERVER_ADDR']    91.192.110.74
$_ENV['SERVER_NAME']    *******.com
$_ENV['SERVER_SOFTWARE']    Apache
$_ENV['SERVER_SIGNATURE']   no value
$_ENV['LD_LIBRARY_PATH']    /*******/daemons/apache-2.4/lib
$_ENV['PATH']   /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
$_ENV['HTTP_ACCEPT_LANGUAGE']   en-GB,en-US;q=0.9,en;q=0.8,es;q=0.7,ca;q=0.6,it;q=0.5,pt;q=0.4
$_ENV['HTTP_ACCEPT_ENCODING']   gzip, deflate, br
$_ENV['HTTP_REFERER']   https://*******.com/testupload.php
$_ENV['HTTP_SEC_FETCH_DEST']    document
$_ENV['HTTP_SEC_FETCH_USER']    ?1
$_ENV['HTTP_SEC_FETCH_MODE']    navigate
$_ENV['HTTP_SEC_FETCH_SITE']    same-origin
$_ENV['HTTP_ACCEPT']    text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
$_ENV['HTTP_USER_AGENT']    Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
$_ENV['CONTENT_TYPE']   multipart/form-data; boundary=----WebKitFormBoundaryIqS5fdgiS15yHjzs
$_ENV['HTTP_ORIGIN']    https://*******.com
$_ENV['HTTP_UPGRADE_INSECURE_REQUESTS'] 1
$_ENV['HTTP_SEC_CH_UA_PLATFORM']    "Linux"
$_ENV['HTTP_SEC_CH_UA_MOBILE']  ?0
$_ENV['HTTP_SEC_CH_UA'] "Google Chrome";v="111", "Not(A:Brand";v="8", "Chromium";v="111"
$_ENV['HTTP_CACHE_CONTROL'] no-cache
$_ENV['HTTP_PRAGMA']    no-cache
$_ENV['CONTENT_LENGTH'] 7888228
$_ENV['HTTP_CONNECTION']    keep-alive
$_ENV['HTTP_HOST']  *******.com
$_ENV['proxy-nokeepalive']  1
$_ENV['SSL_SESSION_RESUMED']    Resumed
$_ENV['SSL_SESSION_ID'] 526c12384842e21a02d2a254d3b28da443a0a156096ef24dc005410223d15664
$_ENV['SSL_SERVER_A_SIG']   sha256WithRSAEncryption
$_ENV['SSL_SERVER_A_KEY']   rsaEncryption
$_ENV['SSL_SERVER_I_DN']    CN=R3,O=Let's Encrypt,C=US
$_ENV['SSL_SERVER_S_DN']    CN=*******.com
$_ENV['SSL_SERVER_V_END']   Jun 15 11:51:37 2023 GMT
$_ENV['SSL_SERVER_V_START'] Mar 17 11:51:38 2023 GMT
$_ENV['SSL_SERVER_M_SERIAL']    049CCCFB5A573E9E513F35457443F6291C0D
$_ENV['SSL_SERVER_M_VERSION']   3
$_ENV['SSL_CLIENT_VERIFY']  NONE
$_ENV['SSL_CIPHER_ALGKEYSIZE']  128
$_ENV['SSL_CIPHER_USEKEYSIZE']  128
$_ENV['SSL_CIPHER_EXPORT']  false
$_ENV['SSL_CIPHER'] ECDHE-RSA-AES128-GCM-SHA256
$_ENV['SSL_COMPRESS_METHOD']    NULL
$_ENV['SSL_SECURE_RENEG']   true
$_ENV['SSL_PROTOCOL']   TLSv1.2
$_ENV['SSL_VERSION_LIBRARY']    OpenSSL/1.1.0l
$_ENV['SSL_VERSION_INTERFACE']  mod_ssl/2.4.43
$_ENV['SSL_SERVER_SAN_DNS_1']   *******.com
$_ENV['SSL_SERVER_SAN_DNS_0']   *.*******.com
$_ENV['SSL_SERVER_I_DN_CN'] R3
$_ENV['SSL_SERVER_I_DN_O']  Let's Encrypt
$_ENV['SSL_SERVER_I_DN_C']  US
$_ENV['SSL_SERVER_S_DN_CN'] *******.com
$_ENV['SSL_TLS_SNI']    *******.com
$_ENV['HTTPS']  on
$_ENV['FCGI_ROLE']  RESPONDER
$_ENV['PHP_SELF']   /testupload.php
$_ENV['REQUEST_TIME_FLOAT'] 1679485884.25
$_ENV['REQUEST_TIME']   1679485884
$_ENV['argv']   
Array
(
)
$_ENV['argc']   0
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 & Concept
Andi Gutmans, Rasmus Lerdorf, Zeev Suraski, Marcus Boerger
PHP Authors
Contribution    Authors
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, Peter Kokot
Windows Support Shane Caraveo, Zeev Suraski, Wez Furlong, Pierre-Alain Joye, Anatol Belski, Kalle Sommer Nielsen
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
Consistent 64 bit support   Anthony Ferrara, Anatol Belski
SAPI Modules
Contribution    Authors
Apache 2.0 Handler  Ian Holsman, Justin Erenkrantz (based on Apache 2.0 Filter code)
CGI / FastCGI   Rasmus Lerdorf, Stig Bakken, Shane Caraveo, Dmitry Stogov
CLI Edin Kadribasic, Marcus Boerger, Johannes Schlueter, Moriyoshi Koizumi, Xinchen Hui
Embed   Edin Kadribasic
FastCGI Process Manager Andrei Nigmatulin, dreamcat4, Antony Dovgal, Jerome Loyet
litespeed   George Wang
phpdbg  Felipe Pena, Joe Watkins, Bob Weinand
Module Authors
Module  Authors
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, Adam Baratz
DBA Sascha Schumann, Marcus Boerger
DOM Christian Stocker, Rob Richards, Marcus Boerger
enchant Pierre-Alain Joye, Ilia Alshanetsky
EXIF    Rasmus Lerdorf, Marcus Boerger
FFI Dmitry Stogov
fileinfo    Ilia Alshanetsky, Pierre Alain Joye, Scott MacVicar, Derick Rethans, Anatol Belski
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
Internationalization    Ed Batutis, Vladimir Iordanov, Dmitry Lakhtyuk, Stanislav Malyshev, Vadim Savchuk, Kirti Velankar
JSON    Jakub Zelenka, 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
Multibyte String Functions  Tsukada Takuya, Rui Hirokawa
MySQL driver for PDO    George Schlossnagle, Wez Furlong, Ilia Alshanetsky, Johannes Schlueter
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
Opcache Andi Gutmans, Zeev Suraski, Stanislav Malyshev, Dmitry Stogov, Xinchen Hui
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
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
Sodium  Frank Denis
SPL Marcus Boerger, Etienne Kneuss
SQLite 3.x driver for PDO   Wez Furlong
SQLite3 Scott MacVicar, Ilia Alshanetsky, Brad Dewar
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
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, Philip Olson, Georg Richter, Damien Seguy, Jakub Vrana, Adam Harvey
Editor  Peter Cowburn
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, 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
damianwadley commented 1 year ago

Do you have any extensions installed?

Several.

That was a very helpful answer 💯

Do you still have problems if you disable all non-standard extensions? Notably newrelic?

php4fan commented 1 year ago

Do you have any extensions installed?

Several.

That was a very helpful answer 100

I attached the output of phinfo, from which you should be able to tell which extensions I have.

Do you still have problems if you disable all non-standard extensions? Notably newrelic?

Hmmmm, I can't (reasonably easily) test that without affecting other production websites on the same server.

I have tried on another unrelated server with PHP 7.4 where I don't have the New Relic extension, and indeed it doesn't reproduce the issue. It's a slightly different version of PHP with a completely different set of installed extensions, though, so this doesn't necessarily narrow the issue down to New Relic. It is one suspect, though. I'll see if I can try disabling specific features.

Here's the phpinfo() of this other server not reproducing the issue:

PHP Version 7.4.32
System  Linux *********** 4.19.0-6-cloud-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64
Build Date  Oct 28 2022 18:35:33
Server API  FPM/FastCGI
Virtual Directory Support   disabled
Configuration File (php.ini) Path   /etc/php/7.4/fpm
Loaded Configuration File   /etc/php/7.4/fpm/php.ini
Scan this dir for additional .ini files /etc/php/7.4/fpm/conf.d
Additional .ini files parsed    /etc/php/7.4/fpm/conf.d/10-mysqlnd.ini, /etc/php/7.4/fpm/conf.d/10-opcache.ini, /etc/php/7.4/fpm/conf.d/10-pdo.ini, /etc/php/7.4/fpm/conf.d/15-xml.ini, /etc/php/7.4/fpm/conf.d/20-calendar.ini, /etc/php/7.4/fpm/conf.d/20-ctype.ini, /etc/php/7.4/fpm/conf.d/20-dom.ini, /etc/php/7.4/fpm/conf.d/20-exif.ini, /etc/php/7.4/fpm/conf.d/20-ffi.ini, /etc/php/7.4/fpm/conf.d/20-fileinfo.ini, /etc/php/7.4/fpm/conf.d/20-ftp.ini, /etc/php/7.4/fpm/conf.d/20-gd.ini, /etc/php/7.4/fpm/conf.d/20-gettext.ini, /etc/php/7.4/fpm/conf.d/20-iconv.ini, /etc/php/7.4/fpm/conf.d/20-json.ini, /etc/php/7.4/fpm/conf.d/20-mysqli.ini, /etc/php/7.4/fpm/conf.d/20-pdo_mysql.ini, /etc/php/7.4/fpm/conf.d/20-phar.ini, /etc/php/7.4/fpm/conf.d/20-posix.ini, /etc/php/7.4/fpm/conf.d/20-readline.ini, /etc/php/7.4/fpm/conf.d/20-shmop.ini, /etc/php/7.4/fpm/conf.d/20-simplexml.ini, /etc/php/7.4/fpm/conf.d/20-sockets.ini, /etc/php/7.4/fpm/conf.d/20-sysvmsg.ini, /etc/php/7.4/fpm/conf.d/20-sysvsem.ini, /etc/php/7.4/fpm/conf.d/20-sysvshm.ini, /etc/php/7.4/fpm/conf.d/20-tokenizer.ini, /etc/php/7.4/fpm/conf.d/20-xmlreader.ini, /etc/php/7.4/fpm/conf.d/20-xmlwriter.ini, /etc/php/7.4/fpm/conf.d/20-xsl.ini
PHP API 20190902
PHP Extension   20190902
Zend Extension  320190902
Zend Extension Build    API320190902,NTS
PHP Extension Build API20190902,NTS
Debug Build no
Thread Safety   disabled
Zend Signal Handling    enabled
Zend Memory Manager enabled
Zend Multibyte Support  disabled
IPv6 Support    enabled
DTrace Support  available, disabled
Registered PHP Streams  https, ftps, compress.zlib, php, file, glob, data, http, ftp, phar
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3
Registered Stream Filters   zlib.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, convert.iconv.*
Zend logoThis program makes use of the Zend Scripting Language Engine:
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.32, Copyright (c), by Zend Technologies
Configuration
calendar
Calendar support    enabled
cgi-fcgi
php-fpm active
Directive   Local Value Master Value
cgi.discard_path    0   0
cgi.fix_pathinfo    1   1
cgi.force_redirect  1   1
cgi.nph 0   0
cgi.redirect_status_env no value    no value
cgi.rfc2616_headers 0   0
fastcgi.error_header    no value    no value
fastcgi.logging 1   1
fpm.config  no value    no value
Core
PHP Version 7.4.32
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   pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,  pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
display_errors  On  Off
display_startup_errors  On  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  Off Off
extension_dir   /usr/lib/php/20190902   /usr/lib/php/20190902
file_uploads    On  On
hard_timeout    2   2
highlight.comment   #FF8000 #FF8000
highlight.default   #0000BB #0000BB
highlight.html  #000000 #000000
highlight.keyword   #007700 #007700
highlight.string    #DD0000 #DD0000
html_errors On  On
ignore_repeated_errors  Off Off
ignore_repeated_source  Off Off
ignore_user_abort   Off Off
implicit_flush  Off Off
include_path    .:/usr/share/php    .:/usr/share/php
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  30  30
max_file_uploads    20  20
max_input_nesting_level 64  64
max_input_time  60  60
max_input_vars  1000    1000
memory_limit    128M    128M
open_basedir    no value    no value
output_buffering    4096    4096
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  Off Off
report_memleaks On  On
report_zend_debug   On  On
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
track_errors    Off Off
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.multibyte  Off Off
zend.script_encoding    no value    no value
zend.signal_check   Off Off
ctype
ctype functions enabled
date
date/time support   enabled
timelib version 2018.04
"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.583333   90.583333
date.sunset_zenith  90.583333   90.583333
date.timezone   no value    no value
dom
DOM/XML enabled
DOM/XML API Version 20031129
libxml Version  2.9.14
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   disabled
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
FFI
FFI support enabled
Directive   Local Value Master Value
ffi.enable  preload preload
ffi.preload no value    no value
fileinfo
fileinfo support    enabled
libmagic    537
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 headers Version  2.3.3
GD library Version  2.2.5
FreeType Support    enabled
FreeType Linkage    with freetype
GIF Read Support    enabled
GIF Create Support  enabled
JPEG Support    enabled
PNG Support enabled
WBMP Support    enabled
XPM Support enabled
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
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
MHASH support   Enabled
MHASH API Version   Emulated Support
iconv
iconv support   enabled
iconv implementation    glibc
iconv library version   2.28
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
json
json support    enabled
libxml
libXML support  active
libXML Compiled Version 2.9.14
libXML Loaded Version   20904
libXML streams  enabled
mysqli
MysqlI Support  enabled
Client API library version  mysqlnd 7.4.32
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   no value    no value
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 7.4.32
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.1d 10 Sep 2019
OpenSSL Header Version  OpenSSL 1.1.1n 15 Mar 2022
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
pcre
PCRE (Perl Compatible Regular Expressions) Support  enabled
PCRE Library Version    10.40 2022-04-14
PCRE Unicode Version    14.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
pdo_mysql
PDO Driver for MySQL    enabled
Client API version  mysqlnd 7.4.32
Directive   Local Value Master Value
pdo_mysql.default_socket    /var/run/mysqld/mysqld.sock /var/run/mysqld/mysqld.sock
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   disabled (install ext/bz2)
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
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
shmop
shmop support   enabled
SimpleXML
SimpleXML support   enabled
Schema support  enabled
sockets
Sockets Support enabled
sodium
sodium support  enabled
libsodium headers version   1.0.18
libsodium library version   1.0.17
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   1   1
assert.bail 0   0
assert.callback no value    no value
assert.exception    0   0
assert.quiet_eval   0   0
assert.warning  1   1
auto_detect_line_endings    0   0
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
tokenizer
Tokenizer Support   enabled
xml
XML Support active
XML Namespace Support   active
libxml2 Version 2.9.14
xmlreader
XMLReader   enabled
xmlwriter
XMLWriter   enabled
xsl
XSL enabled
libxslt Version 1.1.32
libxslt compiled against libxml Version 2.9.4
EXSLT   enabled
libexslt Version    1.1.32
Zend OPcache
Opcode Caching  Up and Running
Optimization    Enabled
SHM Cache   Enabled
File Cache  Disabled
Startup OK
Shared memory model mmap
Cache hits  56864
Cache misses    67
Used memory 9896808
Free memory 124173872
Wasted memory   147048
Interned Strings Used memory    657376
Interned Strings Free memory    5633632
Cached scripts  49
Cached keys 93
Max keys    16229
OOM restarts    0
Hash keys restarts  0
Manual restarts 0
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.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.restrict_api    no value    no value
opcache.revalidate_freq 2   2
opcache.revalidate_path Off Off
opcache.save_comments   On  On
opcache.use_cwd On  On
opcache.validate_permission Off Off
opcache.validate_root   Off Off
opcache.validate_timestamps On  On
zlib
ZLib Support    enabled
Stream Wrapper  compress.zlib://
Stream Filter   zlib.inflate, zlib.deflate
Compiled Version    1.2.11
Linked Version  1.2.11
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
USER    www-data
HOME    /var/www
PHP Variables
Variable    Value
$_REQUEST['something']  1
$_POST['something'] 1
$_FILES['diocane']  
Array
(
    [name] => Array
        (
            [0] => IMG988.jpg
            [1] => IMG989.jpg
            [2] => IMG990.jpg
            [3] => IMG991.jpg
            [4] => IMG992.jpg
            [5] => IMG993.jpg
            [6] => IMG994.jpg
            [7] => IMG995.jpg
            [8] => IMG996.jpg
            [9] => IMG997.jpg
            [10] => IMG998.jpg
            [11] => IMG1000.jpg
            [12] => IMG1001.jpg
            [13] => IMG1001b.jpg
            [14] => IMG1002.jpg
            [15] => IMG1005.jpg
            [16] => IMG1006.jpg
            [17] => IMG1007.jpg
            [18] => IMG1008.jpg
            [19] => IMG1009.jpg
        )

    [type] => Array
        (
            [0] => image/jpeg
            [1] => image/jpeg
            [2] => image/jpeg
            [3] => image/jpeg
            [4] => image/jpeg
            [5] => image/jpeg
            [6] => image/jpeg
            [7] => image/jpeg
            [8] => image/jpeg
            [9] => image/jpeg
            [10] => image/jpeg
            [11] => image/jpeg
            [12] => image/jpeg
            [13] => image/jpeg
            [14] => image/jpeg
            [15] => image/jpeg
            [16] => image/jpeg
            [17] => image/jpeg
            [18] => image/jpeg
            [19] => image/jpeg
        )

    [tmp_name] => Array
        (
            [0] => /tmp/php5mXAPD
            [1] => /tmp/phpDUCQvY
            [2] => /tmp/php3VnWlj
            [3] => /tmp/phpXuk3hE
            [4] => /tmp/phplV5PiZ
            [5] => /tmp/php38wFnk
            [6] => /tmp/phpLE1qxF
            [7] => /tmp/phpxKLaM0
            [8] => /tmp/phpVQpl4l
            [9] => /tmp/phpX8oyqH
            [10] => /tmp/php5i4JR2
            [11] => /tmp/phpD7KPoo
            [12] => /tmp/phpZ1FEZJ
            [13] => /tmp/phpjyehH5
            [14] => /tmp/phpHurLvr
            [15] => /tmp/phprZmvpN
            [16] => /tmp/phpRg30m9
            [17] => /tmp/phpdYOnov
            [18] => /tmp/phpdEOYsR
            [19] => /tmp/phpRDSiBd
        )

    [error] => Array
        (
            [0] => 0
            [1] => 0
            [2] => 0
            [3] => 0
            [4] => 0
            [5] => 0
            [6] => 0
            [7] => 0
            [8] => 0
            [9] => 0
            [10] => 0
            [11] => 0
            [12] => 0
            [13] => 0
            [14] => 0
            [15] => 0
            [16] => 0
            [17] => 0
            [18] => 0
            [19] => 0
        )

    [size] => Array
        (
            [0] => 302558
            [1] => 330419
            [2] => 376712
            [3] => 367529
            [4] => 240814
            [5] => 409838
            [6] => 406854
            [7] => 296444
            [8] => 346537
            [9] => 452887
            [10] => 486820
            [11] => 341069
            [12] => 554407
            [13] => 622495
            [14] => 440345
            [15] => 330419
            [16] => 323731
            [17] => 291466
            [18] => 303376
            [19] => 336872
        )

)
$_SERVER['USER']    www-data
$_SERVER['HOME']    /var/www
$_SERVER['SCRIPT_NAME'] /test/stupidphp/upload/index.php
$_SERVER['REQUEST_URI'] /test/stupidphp/upload/
$_SERVER['QUERY_STRING']    no value
$_SERVER['REQUEST_METHOD']  POST
$_SERVER['SERVER_PROTOCOL'] HTTP/1.1
$_SERVER['GATEWAY_INTERFACE']   CGI/1.1
$_SERVER['REMOTE_PORT'] 33046
$_SERVER['SCRIPT_FILENAME'] /srv/www/***********.org/public_html/test/stupidphp/upload/index.php
$_SERVER['SERVER_ADMIN']    ***********@gmail.com
$_SERVER['CONTEXT_DOCUMENT_ROOT']   /srv/www/***********.org/public_html
$_SERVER['CONTEXT_PREFIX']  no value
$_SERVER['REQUEST_SCHEME']  https
$_SERVER['DOCUMENT_ROOT']   /srv/www/***********.org/public_html
$_SERVER['REMOTE_ADDR'] 62.57.153.143
$_SERVER['SERVER_PORT'] 443
$_SERVER['SERVER_ADDR'] 142.93.134.180
$_SERVER['SERVER_NAME'] ***********.org
$_SERVER['SERVER_SOFTWARE'] Apache/2.4.38 (Debian)
$_SERVER['SERVER_SIGNATURE']    <address>Apache/2.4.38 (Debian) Server at ***********.org Port 443</address>
$_SERVER['PATH']    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
$_SERVER['HTTP_ACCEPT_LANGUAGE']    en-GB,en-US;q=0.9,en;q=0.8,es;q=0.7,ca;q=0.6,it;q=0.5,pt;q=0.4
$_SERVER['HTTP_ACCEPT_ENCODING']    gzip, deflate, br
$_SERVER['HTTP_REFERER']    https://***********.org/test/stupidphp/upload/
$_SERVER['HTTP_SEC_FETCH_DEST'] document
$_SERVER['HTTP_SEC_FETCH_USER'] ?1
$_SERVER['HTTP_SEC_FETCH_MODE'] navigate
$_SERVER['HTTP_SEC_FETCH_SITE'] same-origin
$_SERVER['HTTP_ACCEPT'] text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
$_SERVER['HTTP_USER_AGENT'] Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
$_SERVER['CONTENT_TYPE']    multipart/form-data; boundary=----WebKitFormBoundaryRtrCEQkGPxBzmVD1
$_SERVER['HTTP_ORIGIN'] https://***********.org
$_SERVER['HTTP_UPGRADE_INSECURE_REQUESTS']  1
$_SERVER['HTTP_SEC_CH_UA_PLATFORM'] "Linux"
$_SERVER['HTTP_SEC_CH_UA_MOBILE']   ?0
$_SERVER['HTTP_SEC_CH_UA']  "Google Chrome";v="111", "Not(A:Brand";v="8", "Chromium";v="111"
$_SERVER['HTTP_CACHE_CONTROL']  max-age=0
$_SERVER['CONTENT_LENGTH']  7888228
$_SERVER['HTTP_CONNECTION'] keep-alive
$_SERVER['HTTP_HOST']   ***********.org
$_SERVER['proxy-nokeepalive']   1
$_SERVER['SSL_SESSION_RESUMED'] Resumed
$_SERVER['SSL_SESSION_ID']  9f4f5e04b343cf79c983c58d85bd88e3ddb26a54f800b689fc5dd9e98227ef18
$_SERVER['SSL_SERVER_A_SIG']    sha256WithRSAEncryption
$_SERVER['SSL_SERVER_A_KEY']    rsaEncryption
$_SERVER['SSL_SERVER_I_DN'] CN=R3,O=Let's Encrypt,C=US
$_SERVER['SSL_SERVER_S_DN'] CN=***********.com
$_SERVER['SSL_SERVER_V_END']    May 7 02:13:50 2023 GMT
$_SERVER['SSL_SERVER_V_START']  Feb 6 02:13:51 2023 GMT
$_SERVER['SSL_SERVER_M_SERIAL'] 030DD74C67FBFD8937025042C9C0ED7374E7
$_SERVER['SSL_SERVER_M_VERSION']    3
$_SERVER['SSL_CLIENT_VERIFY']   NONE
$_SERVER['SSL_CIPHER_ALGKEYSIZE']   128
$_SERVER['SSL_CIPHER_USEKEYSIZE']   128
$_SERVER['SSL_CIPHER_EXPORT']   false
$_SERVER['SSL_CIPHER']  TLS_AES_128_GCM_SHA256
$_SERVER['SSL_COMPRESS_METHOD'] NULL
$_SERVER['SSL_SECURE_RENEG']    false
$_SERVER['SSL_PROTOCOL']    TLSv1.3
$_SERVER['SSL_VERSION_LIBRARY'] OpenSSL/1.1.1d
$_SERVER['SSL_VERSION_INTERFACE']   mod_ssl/2.4.38
$_SERVER['SSL_SERVER_SAN_DNS_27']   www.***********
$_SERVER['SSL_SERVER_SAN_DNS_26']   www.***********.com
$_SERVER['SSL_SERVER_SAN_DNS_25']   www.***********.es
$_SERVER['SSL_SERVER_SAN_DNS_24']   www.***********.org
$_SERVER['SSL_SERVER_SAN_DNS_23']   www.***********.es
$_SERVER['SSL_SERVER_SAN_DNS_22']   www.***********.com
$_SERVER['SSL_SERVER_SAN_DNS_21']   www.***********.cat
$_SERVER['SSL_SERVER_SAN_DNS_20']   www.***********.io
$_SERVER['SSL_SERVER_SAN_DNS_19']   www.***********.info
$_SERVER['SSL_SERVER_SAN_DNS_18']   www.***********.fun
$_SERVER['SSL_SERVER_SAN_DNS_17']   www.***********.es
$_SERVER['SSL_SERVER_SAN_DNS_16']   www.***********
$_SERVER['SSL_SERVER_SAN_DNS_15']   ***********
$_SERVER['SSL_SERVER_SAN_DNS_14']   ***********.com
$_SERVER['SSL_SERVER_SAN_DNS_13']   ***********.es
$_SERVER['SSL_SERVER_SAN_DNS_12']   phpmyadmin.***********.com
$_SERVER['SSL_SERVER_SAN_DNS_11']   phpmyadmin.***********.com
$_SERVER['SSL_SERVER_SAN_DNS_10']   ph.***********.com
$_SERVER['SSL_SERVER_SAN_DNS_9']    ***********.org
$_SERVER['SSL_SERVER_SAN_DNS_8']    ***********.es
$_SERVER['SSL_SERVER_SAN_DNS_7']    ***********.com
$_SERVER['SSL_SERVER_SAN_DNS_6']    ***********.cat
$_SERVER['SSL_SERVER_SAN_DNS_5']    iframe.***********.com
$_SERVER['SSL_SERVER_SAN_DNS_4']    ***********.io
$_SERVER['SSL_SERVER_SAN_DNS_3']    ***********.info
$_SERVER['SSL_SERVER_SAN_DNS_2']    ***********.fun
$_SERVER['SSL_SERVER_SAN_DNS_1']    ***********.es
$_SERVER['SSL_SERVER_SAN_DNS_0']    ***********
$_SERVER['SSL_SERVER_I_DN_CN']  R3
$_SERVER['SSL_SERVER_I_DN_O']   Let's Encrypt
$_SERVER['SSL_SERVER_I_DN_C']   US
$_SERVER['SSL_SERVER_S_DN_CN']  ***********.com
$_SERVER['SSL_TLS_SNI'] ***********.org
$_SERVER['HTTPS']   on
$_SERVER['FCGI_ROLE']   RESPONDER
$_SERVER['PHP_SELF']    /test/stupidphp/upload/index.php
$_SERVER['REQUEST_TIME_FLOAT']  1679527131.7084
$_SERVER['REQUEST_TIME']    1679527131
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 & Concept
Andi Gutmans, Rasmus Lerdorf, Zeev Suraski, Marcus Boerger
PHP Authors
Contribution    Authors
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, Peter Kokot
Windows Support Shane Caraveo, Zeev Suraski, Wez Furlong, Pierre-Alain Joye, Anatol Belski, Kalle Sommer Nielsen
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
Consistent 64 bit support   Anthony Ferrara, Anatol Belski
SAPI Modules
Contribution    Authors
Apache 2.0 Handler  Ian Holsman, Justin Erenkrantz (based on Apache 2.0 Filter code)
CGI / FastCGI   Rasmus Lerdorf, Stig Bakken, Shane Caraveo, Dmitry Stogov
CLI Edin Kadribasic, Marcus Boerger, Johannes Schlueter, Moriyoshi Koizumi, Xinchen Hui
Embed   Edin Kadribasic
FastCGI Process Manager Andrei Nigmatulin, dreamcat4, Antony Dovgal, Jerome Loyet
litespeed   George Wang
phpdbg  Felipe Pena, Joe Watkins, Bob Weinand
Module Authors
Module  Authors
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, Adam Baratz
DBA Sascha Schumann, Marcus Boerger
DOM Christian Stocker, Rob Richards, Marcus Boerger
enchant Pierre-Alain Joye, Ilia Alshanetsky
EXIF    Rasmus Lerdorf, Marcus Boerger
FFI Dmitry Stogov
fileinfo    Ilia Alshanetsky, Pierre Alain Joye, Scott MacVicar, Derick Rethans, Anatol Belski
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
Internationalization    Ed Batutis, Vladimir Iordanov, Dmitry Lakhtyuk, Stanislav Malyshev, Vadim Savchuk, Kirti Velankar
JSON    Jakub Zelenka, 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
Multibyte String Functions  Tsukada Takuya, Rui Hirokawa
MySQL driver for PDO    George Schlossnagle, Wez Furlong, Ilia Alshanetsky, Johannes Schlueter
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
Opcache Andi Gutmans, Zeev Suraski, Stanislav Malyshev, Dmitry Stogov, Xinchen Hui
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
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
Sodium  Frank Denis
SPL Marcus Boerger, Etienne Kneuss
SQLite 3.x driver for PDO   Wez Furlong
SQLite3 Scott MacVicar, Ilia Alshanetsky, Brad Dewar
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
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, Philip Olson, Georg Richter, Damien Seguy, Jakub Vrana, Adam Harvey
Editor  Peter Cowburn
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, 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
Debian Packaging
Ondřej Surý
damianwadley commented 1 year ago

I have tried on another unrelated server with PHP 7.4 where I don't have the New Relic extension, and indeed it doesn't reproduce the issue. It's a slightly different version of PHP with a completely different set of installed extensions, though, so this doesn't necessarily narrow the issue down to New Relic. It is one suspect, though. I'll see if I can try disabling specific features.

I suspect the newrelic extension, as this wouldn't be the first time I've seen it create some problems - as have many other third-party kitchen-sink extensions, to be fair.

If you can't remove, can you change its settings? Like the global enabled flag, of course, but I would be even more interested in trying the error_collector.* settings themselves.

php4fan commented 1 year ago

Like the global enabled flag,

Bingo! Disabling that removes the issue.

I'll report this to NewRelic, as it seems very likely to be a bug of theirs.