Page 1 of 1

New Install, I get "__autoload() is deprecated"

PostPosted: Dec 06, 2017 11:00 am
by bitflow
Hello,

I have a brand new install of mandtis 2.9, running on Apache on Windows. I'm just starting the installation process and I get an error opening "install.php" (error, "Site can't be reached"). I see the following error in the PHP log:

PHP Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in C:\Apache Software Foundation\Apache24\htdocs\mantisbt\core.php on line 162

PHP is version 7.2, just downloaded and installed (full PHP information is below).

Any idea what might be going wrong here?

Thanks for you help.


System Windows NT INTRANETSERVER 10.0 build 14393 (Windows 10) AMD64
Build Date Nov 28 2017 23:44:10
Compiler MSVC15 (Visual C++ 2017)
Architecture x64
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--with-pdo-oci=c:\php-snap-build\deps_aux\oracle\x64\instantclient_12_1\sdk,shared" "--with-oci8-12c=c:\php-snap-build\deps_aux\oracle\x64\instantclient_12_1\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--without-analyzer" "--with-pgo"
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINDOWS
Loaded Configuration File C:\PHP7\php.ini
Scan this dir for additional .ini files (none)
Additional .ini files parsed (none)
PHP API 20170718
PHP Extension 20170718
Zend Extension 320170718
Zend Extension Build API320170718,TS,VC15
PHP Extension Build API20170718,TS,VC15
Debug Build no
Thread Safety enabled
Zend Signal Handling disabled
Zend Memory Manager enabled
Zend Multibyte Support disabled
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, string.strip_tags, convert.*, consumed, dechunk, zlib.*

Re: New Install, I get "__autoload() is deprecated"

PostPosted: Dec 06, 2017 2:31 pm
by atrol
Mantis is not tested with PHP 7.2 and uses some more functions that are deprecated in PHP 7.2.
But deprecated means just, that it will be removed in later versions and is not a reason to fail.
bitflow wrote:PHP is version 7.2,
This version is brand new and there are certainly some bugs at the moment. I recommend to use PHP 7.1.

Re: New Install, I get "__autoload() is deprecated"

PostPosted: Dec 06, 2017 3:05 pm
by bitflow
OK, I'll roll back to 7.1 and see how that goes.

Thanks for the quick response.

Re: New Install, I get "__autoload() is deprecated"

PostPosted: Dec 07, 2017 10:07 am
by bitflow
Moved server to 7.1, everything works now. Thanks.

PS - when I installed 7.2 I just downloaded the latest release. I did not realize that it was just two weeks old.

Re: New Install, I get "__autoload() is deprecated"

PostPosted: Dec 08, 2017 10:15 am
by atrol
Thanks for the feedback.
I created a report to track the issue https://www.mantisbt.org/bugs/view.php?id=23710