mantisbt 2.19 upgrading php from 5.6 to 8.0

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
gkeepa
Posts: 7
Joined: 14 May 2019, 15:45

mantisbt 2.19 upgrading php from 5.6 to 8.0

Post by gkeepa »

hi my current mantisbt is 2.19.0, running on php 5.6, mysql8.025 and iis 10 in windows server 2019. i just tried to change php to 8.0, however after the change, mantisbt is not rendering any php page, instead, it only shows the following on the browser for any mantisbt php pages, what could be the problem, thanks in advance, also when i switch php back to 5.6, everything seems to work fine:

2022-04-25 13:27 UTC DB database_api.php:319 db_query() array (
0 => 'SET NAMES UTF8',
1 => '0.0002',
)

2022-04-25 13:27 UTC DB database_api.php:319 db_query() array (
0 => 'SELECT basename, priority, protected FROM mantis_plugin_table WHERE enabled=\'1\' ORDER BY priority DESC',
1 => '0.0003',
)

2022-04-25 13:27 UTC DB database_api.php:319 db_query() array (
0 => 'SELECT config_id, user_id, project_id, type, value, access_reqd FROM mantis_config_table',
1 => '0.0008',
)

2022-04-25 13:27 UTC DB database_api.php:319 db_query() array (
0 => 'SELECT * FROM mantis_user_table WHERE username=NULL',
1 => '0.0002',
)
Attachments
source code screenshot
source code screenshot
Capture.JPG (59.65 KiB) Viewed 68704 times
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: mantisbt 2.19 upgrading php from 5.6 to 8.0

Post by atrol »

There are several known bugs using old MantisBT versions with PHP 8.0
The last known one is fixed in version 2.25.2 https://www.mantisbt.org/bugs/view.php?id=28803
You should upgrade to latest stable version 2.25.3.
Please use Search before posting and read the Manual
gkeepa
Posts: 7
Joined: 14 May 2019, 15:45

Re: mantisbt 2.19 upgrading php from 5.6 to 8.0

Post by gkeepa »

thanks. although i prefer to avoid upgrade since i did make some changes to various part of the mantisbt 2.19, is there a way to automatically replicate these changes to the new version. for future reference if i do need to upgrade again, what's the best way to retain my local customizations
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: mantisbt 2.19 upgrading php from 5.6 to 8.0

Post by atrol »

The best (but not cheap and fast) way would be to write plugins instead of changing original MantisBT code if possible.

In any other case, use a VCS like Git, create an own branch based on the MantisBT master branch to implement your changes, fetch new stable MantisBT versions from time to time, merge the changes to your branch (resolve conflicts if they should occur).
Please use Search before posting and read the Manual
gkeepa
Posts: 7
Joined: 14 May 2019, 15:45

Re: mantisbt 2.19 upgrading php from 5.6 to 8.0

Post by gkeepa »

how would i do the following as a plugin: adding a 2nd approver for each issue. currently i added a field on the db for the 2nd approver and added the same field for the manage user screens, then modify the bug update to handle the case when the ticket should be automatically sent to the 2nd approver. not sure how this can be done with plugin
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: mantisbt 2.19 upgrading php from 5.6 to 8.0

Post by atrol »

I don't have time to give you more in-depth support.
Please read https://mantisbt.org/docs/master/en-US/ ... ev.plugins to get an impression of what can be done and where are the limitations using the plugin system.

There are quite a lot of examples on https://github.com/mantisbt-plugins
Please use Search before posting and read the Manual
cas
Posts: 1587
Joined: 11 Mar 2006, 16:08
Contact:

Re: mantisbt 2.19 upgrading php from 5.6 to 8.0

Post by cas »

You can use the status field in combination with the workflow.
So for a new issue workflow is
Developer moves it to confirmed ( so from unassigned only to Confirmed)
Manager moves it to assigned ( so from confirmed only to assigned by the manager).
Downside here is that it needs to be done by level and not by persons but actually that keeps it pretty clean.
gkeepa
Posts: 7
Joined: 14 May 2019, 15:45

Re: mantisbt 2.19 upgrading php from 5.6 to 8.0

Post by gkeepa »

i did setup the same env on linux with same source code of 2.19 and same mysql db and php7.4 and it was working without any issues. so what could cause it not to work with windows server 2019?
cas
Posts: 1587
Joined: 11 Mar 2006, 16:08
Contact:

Re: mantisbt 2.19 upgrading php from 5.6 to 8.0

Post by cas »

On Windows you tried php8 and now you talk about php7.4, seems obvious what the issue was :mrgreen:
gkeepa
Posts: 7
Joined: 14 May 2019, 15:45

Re: mantisbt 2.19 upgrading php from 5.6 to 8.0

Post by gkeepa »

on windows i tried both 7.4 and 8.0, both have the same issue. on linux i tried 7.4 and it's running fine.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: mantisbt 2.19 upgrading php from 5.6 to 8.0

Post by atrol »

There are several known bugs using old MantisBT versions with PHP 7.4
The last known one is fixed in version 2.24.0 https://www.mantisbt.org/bugs/view.php?id=26439

I guess the difference between Windows and Linux could be caused by different PHP / Weberserver settings around how to deal with PHP errors and/or warnings.

Did you run admin/check/index.php on the Windows / PHP 7.4 system?
Please use Search before posting and read the Manual
gkeepa
Posts: 7
Joined: 14 May 2019, 15:45

Re: mantisbt 2.19 upgrading php from 5.6 to 8.0

Post by gkeepa »

yes i tried it, same output from the browser. clearly something is not loading properly before the page could render. is there a way we can turn on or see the log on where the process is stuck on?
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: mantisbt 2.19 upgrading php from 5.6 to 8.0

Post by atrol »

I can't help that much, as this seems to be a Windows / running PHP in IIS issue.

Do you kept at least the original version of config_default_inc.php, or did you even change this file?

How is the current setting of $g_log_destination ?
How is the current setting of $g_log_level ?

Do you see any errors or warnings in the webserver and / or PHP logs?

What do you get when creating a file test.php with the following content in the folder where MantisBT is installed and open the page in browser?

Code: Select all

<?php
echo "Hello";
Please use Search before posting and read the Manual
gkeepa
Posts: 7
Joined: 14 May 2019, 15:45

Re: mantisbt 2.19 upgrading php from 5.6 to 8.0

Post by gkeepa »

really appreciated the help.

created a php page with the following, works fine.:
<?php
echo "hello";
phpinfo();
?>


the following are set in the config_default_inc.php (we never changed these)
$g_log_level = LOG_ALL;
$g_log_destination = '';

from iis, the following is the latest log when the error happens:
2022-04-27 20:01:02 99.88.96.48 GET /mantis/login_page.php return=%2Fmantis%2Fmy_view_page.php%3Frefresh%3Dtrue 443 - 99.88.96.48 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/100.0.4896.127+Safari/537.36 - 500 0 0 1805
2022-04-27 20:01:54 99.88.96.48 GET /mantis/login_page.php return=%2Fmantis%2Fmy_view_page.php%3Frefresh%3Dtrue 443 - 99.88.96.48 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/100.0.4896.127+Safari/537.36 - 500 0 0 115
2022-04-27 20:01:54 99.88.96.48 GET /mantis/login_page.php return=%2Fmantis%2Fmy_view_page.php%3Frefresh%3Dtrue 443 - 99.88.96.48 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/100.0.4896.127+Safari/537.36 - 500 0 0 112
2022-04-27 20:01:54 99.88.96.48 GET /mantis/login_page.php return=%2Fmantis%2Fmy_view_page.php%3Frefresh%3Dtrue 443 - 99.88.96.48 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/100.0.4896.127+Safari/537.36 - 500 0 0 111
2022-04-27 20:01:55 99.88.96.48 GET /mantis/login_page.php return=%2Fmantis%2Fmy_view_page.php%3Frefresh%3Dtrue 443 - 99.88.96.48 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/100.0.4896.127+Safari/537.36 - 500 0 0 111

not sure where to get the php log, this is the php setting:
PHP Version 8.0.18
System Windows NT CMBNY-OADEV 10.0 build 17763 (Windows Server 2016) AMD64
Build Date Apr 13 2022 07:46:17
Build System Microsoft Windows Server 2019 Datacenter [10.0.17763]
Compiler Visual C++ 2019
Architecture x64
Configure Command cscript /nologo /e:jscript configure.js "--enable-snapshot-build" "--enable-debug-pack" "--disable-zts" "--with-pdo-oci=..\..\..\..\instantclient\sdk,shared" "--with-oci8-19=..\..\..\..\instantclient\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--without-analyzer" "--with-pgo"
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path no value
Loaded Configuration File C:\php\php.ini
Scan this dir for additional .ini files (none)
Additional .ini files parsed (none)
PHP API 20200930
PHP Extension 20200930
Zend Extension 420200930
Zend Extension Build API420200930,NTS,VS16
PHP Extension Build API20200930,NTS,VS16
Debug Build no
Thread Safety disabled
Zend Signal Handling disabled
Zend Memory Manager enabled
Zend Multibyte Support provided by mbstring
IPv6 Support enabled
DTrace Support disabled
Registered PHP Streams php, file, glob, data, http, ftp, zip, compress.zlib, phar
Registered Stream Socket Transports tcp, udp
Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, convert.*, consumed, dechunk, zlib.*
Zend logoThis program makes use of the Zend Scripting Language Engine:
Zend Engine v4.0.18, Copyright (c) Zend Technologies
Configuration
bcmath
BCMath support enabled
Directive Local Value Master Value
bcmath.scale 0 0
calendar
Calendar support enabled
cgi-fcgi
Directive Local Value Master Value
cgi.check_shebang_line On On
cgi.discard_path Off Off
cgi.fix_pathinfo On On
cgi.force_redirect On On
cgi.nph Off Off
cgi.redirect_status_env no value no value
cgi.rfc2616_headers Off Off
fastcgi.impersonate Off Off
fastcgi.logging On On
Core
PHP Version 8.0.18
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 On On
display_startup_errors On On
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 32767 32767
expose_php On On
extension_dir C:\php\ext C:\php\ext
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 .;C:\php\pear .;C:\php\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 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 Off Off
request_order GP GP
sendmail_from no value no value
sendmail_path no value no value
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
windows.show_crt_warning Off Off
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.exception_string_param_max_len 15 15
zend.multibyte Off Off
zend.script_encoding no value no value
ctype
ctype functions enabled
date
date/time support enabled
timelib version 2020.03
"Olson" Timezone Database Version 2021.5
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
dom
DOM/XML enabled
DOM/XML API Version 20031129
libxml Version 2.9.10
HTML Support enabled
XPath Support enabled
XPointer Support enabled
Schema Support enabled
RelaxNG Support enabled
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
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 "libiconv"
iconv library version 1.16
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
ldap
LDAP Support enabled
Total Links 0/unlimited
API Version 3001
Vendor Name OpenLDAP
Vendor Version 20447
SASL Support Enabled
Directive Local Value Master Value
ldap.max_links Unlimited Unlimited
libxml
libXML support active
libXML Compiled Version 2.9.10
libXML Loaded Version 20910
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.9.7
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.18
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 8.0.18
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 Yes
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
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 no value
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)
OpenSSL support disabled (install ext/openssl)
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
readline
Readline Support enabled
Readline library WinEditLine
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 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 no value no value
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
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
Internal Sendmail Support for Windows enabled
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
tokenizer
Tokenizer Support enabled
xml
XML Support active
XML Namespace Support active
libxml2 Version 2.9.10
xmlreader
XMLReader enabled
xmlwriter
XMLWriter enabled
zip
Zip enabled
Zip version 1.19.5
Libzip version 1.7.1
BZIP2 compression Yes
XZ compression Yes
ZSTD compression No
AES-128 encryption Yes
AES-192 encryption Yes
AES-256 encryption Yes
zlib
ZLib Support enabled
Stream Wrapper compress.zlib://
Stream Filter zlib.inflate, zlib.deflate
Compiled Version 1.2.12
Linked Version 1.2.12
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
_FCGI_X_PIPE_ \\.\pipe\IISFCGI-f82f0744-78e1-4bdc-a60e-92c19b8b3219
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\WINDOWS\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG C:\inetpub\temp\apppools\DefaultAppPool\DefaultAppPool.config
APP_POOL_ID DefaultAppPool
CLASSPATH C:\Program Files\IBM\MQ\java\lib\com.ibm.mqjms.jar;C:\Program Files\IBM\MQ\java\lib\com.ibm.mq.jar
CommonProgramFiles C:\Program Files\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME CMBNY-OADEV
ComSpec C:\WINDOWS\system32\cmd.exe
DriverData C:\Windows\System32\Drivers\DriverData
INCLUDE C:\Program Files\IBM\MQ\tools\c\include;C:\Program Files\IBM\MQ\tools\cplus\include
JAVA_HOME C:\Program Files\Java\jdk1.8.0_291
LIB C:\Program Files\IBM\MQ\tools\lib64;C:\Program Files\IBM\MQ\tools\lib
LOCALAPPDATA C:\WINDOWS\system32\config\systemprofile\AppData\Local
MQ_FILE_PATH C:\Program Files\IBM\MQ
MQ_JAVA_DATA_PATH C:\ProgramData\IBM\MQ
MQ_JAVA_INSTALL_PATH C:\Program Files\IBM\MQ\java
MQ_JAVA_LIB_PATH C:\Program Files\IBM\MQ\java\lib64;C:\Program Files\IBM\MQ\java\lib
MQ_JRE_PATH C:\Program Files\IBM\MQ\java\jre
NUMBER_OF_PROCESSORS 4
OS Windows_NT
Path C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\IBM\MQ\java\lib;C:\Program Files\IBM\MQ\java\lib64;C:\Program Files\Java\jdk1.8.0_291\bin;D:\oracle\product\12.2.0\client_1\bin;D:\app\oracle12\product\12.2.0\client_1;D:\app\oracle\product\11.2.0\client_1;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\IBM\MQ_1\bin;C:\Program Files\IBM\MQ\bin64;C:\Program Files\IBM\MQ\bin;C:\Program Files\IBM\MQ\tools\c\samples\bin64;C:\Program Files\IBM\MQ\tools\c\samples\bin;C:\Program Files (x86)\SAP BusinessObjects\sqlanywhere\\BIN32;C:\Program Files (x86)\SAP BusinessObjects\sqlanywhere\\BIN64;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 79 Stepping 0, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 4f00
ProgramData C:\ProgramData
ProgramFiles C:\Program Files
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
PSModulePath C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\PowerShell\Modules\
PUBLIC C:\Users\Public
SQLANY17 C:\Program Files (x86)\SAP BusinessObjects\sqlanywhere\
SystemDrive C:
SystemRoot C:\WINDOWS
TEMP C:\WINDOWS\TEMP
TMP C:\WINDOWS\TEMP
USERDOMAIN CMBNY
USERNAME CMBNY-OADEV$
USERPROFILE C:\WINDOWS\system32\config\systemprofile
windir C:\WINDOWS
PHP Variables
Variable Value
$_COOKIE['PHPSESSID'] vl8jsrb3frftr5b6lul2dst8d6
$_SERVER['_FCGI_X_PIPE_'] \\.\pipe\IISFCGI-f82f0744-78e1-4bdc-a60e-92c19b8b3219
$_SERVER['ALLUSERSPROFILE'] C:\ProgramData
$_SERVER['APPDATA'] C:\WINDOWS\system32\config\systemprofile\AppData\Roaming
$_SERVER['APP_POOL_CONFIG'] C:\inetpub\temp\apppools\DefaultAppPool\DefaultAppPool.config
$_SERVER['APP_POOL_ID'] DefaultAppPool
$_SERVER['CLASSPATH'] C:\Program Files\IBM\MQ\java\lib\com.ibm.mqjms.jar;C:\Program Files\IBM\MQ\java\lib\com.ibm.mq.jar
$_SERVER['CommonProgramFiles'] C:\Program Files\Common Files
$_SERVER['CommonProgramFiles(x86)'] C:\Program Files (x86)\Common Files
$_SERVER['CommonProgramW6432'] C:\Program Files\Common Files
$_SERVER['COMPUTERNAME'] CMBNY-OADEV
$_SERVER['ComSpec'] C:\WINDOWS\system32\cmd.exe
$_SERVER['DriverData'] C:\Windows\System32\Drivers\DriverData
$_SERVER['INCLUDE'] C:\Program Files\IBM\MQ\tools\c\include;C:\Program Files\IBM\MQ\tools\cplus\include
$_SERVER['JAVA_HOME'] C:\Program Files\Java\jdk1.8.0_291
$_SERVER['LIB'] C:\Program Files\IBM\MQ\tools\lib64;C:\Program Files\IBM\MQ\tools\lib
$_SERVER['LOCALAPPDATA'] C:\WINDOWS\system32\config\systemprofile\AppData\Local
$_SERVER['MQ_FILE_PATH'] C:\Program Files\IBM\MQ
$_SERVER['MQ_JAVA_DATA_PATH'] C:\ProgramData\IBM\MQ
$_SERVER['MQ_JAVA_INSTALL_PATH'] C:\Program Files\IBM\MQ\java
$_SERVER['MQ_JAVA_LIB_PATH'] C:\Program Files\IBM\MQ\java\lib64;C:\Program Files\IBM\MQ\java\lib
$_SERVER['MQ_JRE_PATH'] C:\Program Files\IBM\MQ\java\jre
$_SERVER['NUMBER_OF_PROCESSORS'] 4
$_SERVER['OS'] Windows_NT
$_SERVER['Path'] C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\IBM\MQ\java\lib;C:\Program Files\IBM\MQ\java\lib64;C:\Program Files\Java\jdk1.8.0_291\bin;D:\oracle\product\12.2.0\client_1\bin;D:\app\oracle12\product\12.2.0\client_1;D:\app\oracle\product\11.2.0\client_1;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\IBM\MQ_1\bin;C:\Program Files\IBM\MQ\bin64;C:\Program Files\IBM\MQ\bin;C:\Program Files\IBM\MQ\tools\c\samples\bin64;C:\Program Files\IBM\MQ\tools\c\samples\bin;C:\Program Files (x86)\SAP BusinessObjects\sqlanywhere\\BIN32;C:\Program Files (x86)\SAP BusinessObjects\sqlanywhere\\BIN64;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
$_SERVER['PATHEXT'] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
$_SERVER['PROCESSOR_ARCHITECTURE'] AMD64
$_SERVER['PROCESSOR_IDENTIFIER'] Intel64 Family 6 Model 79 Stepping 0, GenuineIntel
$_SERVER['PROCESSOR_LEVEL'] 6
$_SERVER['PROCESSOR_REVISION'] 4f00
$_SERVER['ProgramData'] C:\ProgramData
$_SERVER['ProgramFiles'] C:\Program Files
$_SERVER['ProgramFiles(x86)'] C:\Program Files (x86)
$_SERVER['ProgramW6432'] C:\Program Files
$_SERVER['PSModulePath'] C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\PowerShell\Modules\
$_SERVER['PUBLIC'] C:\Users\Public
$_SERVER['SQLANY17'] C:\Program Files (x86)\SAP BusinessObjects\sqlanywhere\
$_SERVER['SystemDrive'] C:
$_SERVER['SystemRoot'] C:\WINDOWS
$_SERVER['TEMP'] C:\WINDOWS\TEMP
$_SERVER['TMP'] C:\WINDOWS\TEMP
$_SERVER['USERDOMAIN'] CMBNY
$_SERVER['USERNAME'] CMBNY-OADEV$
$_SERVER['USERPROFILE'] C:\WINDOWS\system32\config\systemprofile
$_SERVER['windir'] C:\WINDOWS
$_SERVER['ORIG_PATH_INFO'] /mantis/phpinfo.php
$_SERVER['URL'] /mantis/phpinfo.php
$_SERVER['SERVER_SOFTWARE'] Microsoft-IIS/10.0
$_SERVER['SERVER_PROTOCOL'] HTTP/1.1
$_SERVER['SERVER_PORT_SECURE'] 1
$_SERVER['SERVER_PORT'] 443
$_SERVER['SERVER_NAME'] 99.88.96.48
$_SERVER['SCRIPT_NAME'] /mantis/phpinfo.php
$_SERVER['SCRIPT_FILENAME'] C:\inetpub\wwwroot\mantis\phpinfo.php
$_SERVER['REQUEST_URI'] /mantis/phpinfo.php
$_SERVER['REQUEST_METHOD'] GET
$_SERVER['REMOTE_USER'] no value
$_SERVER['REMOTE_PORT'] 55481
$_SERVER['REMOTE_HOST'] 99.88.96.48
$_SERVER['REMOTE_ADDR'] 99.88.96.48
$_SERVER['QUERY_STRING'] no value
$_SERVER['PATH_TRANSLATED'] C:\inetpub\wwwroot\mantis\phpinfo.php
$_SERVER['LOGON_USER'] no value
$_SERVER['LOCAL_ADDR'] 99.88.96.48
$_SERVER['INSTANCE_META_PATH'] /LM/W3SVC/1
$_SERVER['INSTANCE_NAME'] DEFAULT WEB SITE
$_SERVER['INSTANCE_ID'] 1
$_SERVER['HTTPS_SERVER_SUBJECT'] C=CN, S=Guangdong Province, L=Shenzhen, O="China Merchants Bank Co., Ltd", CN=*.ny.cmbchina.com
$_SERVER['HTTPS_SERVER_ISSUER'] C=US, O=DigiCert Inc, OU=www.digicert.com, CN=GeoTrust CN RSA CA G1
$_SERVER['HTTPS_SECRETKEYSIZE'] 2048
$_SERVER['HTTPS_KEYSIZE'] 256
$_SERVER['HTTPS'] on
$_SERVER['GATEWAY_INTERFACE'] CGI/1.1
$_SERVER['DOCUMENT_ROOT'] C:\inetpub\wwwroot
$_SERVER['CONTENT_TYPE'] no value
$_SERVER['CONTENT_LENGTH'] 0
$_SERVER['CERT_SUBJECT'] no value
$_SERVER['CERT_SERIALNUMBER'] no value
$_SERVER['CERT_ISSUER'] no value
$_SERVER['CERT_FLAGS'] no value
$_SERVER['CERT_COOKIE'] no value
$_SERVER['AUTH_USER'] no value
$_SERVER['AUTH_PASSWORD'] no value
$_SERVER['AUTH_TYPE'] no value
$_SERVER['APPL_PHYSICAL_PATH'] C:\inetpub\wwwroot\
$_SERVER['APPL_MD_PATH'] /LM/W3SVC/1/ROOT
$_SERVER['HTTP_SEC_FETCH_DEST'] document
$_SERVER['HTTP_SEC_FETCH_USER'] ?1
$_SERVER['HTTP_SEC_FETCH_MODE'] navigate
$_SERVER['HTTP_SEC_FETCH_SITE'] none
$_SERVER['HTTP_UPGRADE_INSECURE_REQUESTS'] 1
$_SERVER['HTTP_SEC_CH_UA_PLATFORM'] "Windows"
$_SERVER['HTTP_SEC_CH_UA_MOBILE'] ?0
$_SERVER['HTTP_SEC_CH_UA'] " Not A;Brand";v="99", "Chromium";v="100", "Google Chrome";v="100"
$_SERVER['HTTP_USER_AGENT'] Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36
$_SERVER['HTTP_HOST'] 99.88.96.48
$_SERVER['HTTP_COOKIE'] PHPSESSID=vl8jsrb3frftr5b6lul2dst8d6
$_SERVER['HTTP_ACCEPT_LANGUAGE'] en-US,en;q=0.9
$_SERVER['HTTP_ACCEPT_ENCODING'] gzip, deflate, br
$_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.9
$_SERVER['HTTP_CONNECTION'] close
$_SERVER['FCGI_ROLE'] RESPONDER
$_SERVER['PHP_SELF'] /mantis/phpinfo.php
$_SERVER['REQUEST_TIME_FLOAT'] 1651090106.5586
$_SERVER['REQUEST_TIME'] 1651090106
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, Mark Randall
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, Eliot Lear
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
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
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.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: mantisbt 2.19 upgrading php from 5.6 to 8.0

Post by atrol »

gkeepa wrote: 27 Apr 2022, 20:14 the following are set in the config_default_inc.php (we never changed these)
$g_log_level = LOG_ALL;
You changed obviously this file.
This is the original file of version 2.19.0
https://github.com/mantisbt/mantisbt/bl ... .php#L4292
As you can see the original setting is

Code: Select all

$g_log_level = LOG_NONE;
gkeepa wrote: 27 Apr 2022, 20:14 PHP Version 8.0.18
So you are now again using PHP 8.

As told before, the last known PHP 8 related issue is fixed in version 2.25.2
You really can't expect that your tweaked 2.19.0 version will work with PHP 8.
As told before, even PHP 7.4 is questionable, but should run in general with minor issues.

As fisrst steps I would reenable PHP 7.4 and set $g_log_level to the original value, so you don't get any longer this database loggin on the page.

The strange thing is, that the logging is done to the browser page although $g_log_destination is not set to 'page' in MantisBT config settings, so you should check your PHP error logging settings https://www.php.net/manual/de/errorfunc ... .error-log
Please use Search before posting and read the Manual
Post Reply