D
D
Dmitry Threy2015-07-31 21:25:56
PHP
Dmitry Threy, 2015-07-31 21:25:56

Updated to PHP 5.5.27, and now errors?

Actually, I have the same Denwer on the local , which, unfortunately, uses PHP version 5.3~. Well, in a fit of emotion, I downloaded php5.5.27 ( windows.php.net/download/#php-5.5-ts-VC11-x86) and hosted usr\local\php5 with a couple of files replaced. I did not rip out the config from the php.ini-production file , thinking that my php.ini file is almost the same.
Actually everything started, without errors.
And the only error was Deprecated, which I knew about before. Well, supposedly mysql is outdated already, yeah.

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead

I'm still suspicious, and I think I'll look into the logs.
[Fri Jul 31 23:00:32 2015] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Fri Jul 31 23:00:32 2015] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Fri Jul 31 23:00:35 2015] [notice] Apache/2.2.22 (Win32) mod_ssl/2.2.22 OpenSSL/1.0.1c PHP/5.5.9 configured -- resuming normal operations
[Fri Jul 31 23:00:35 2015] [notice] Server built: Apr 20 2012 18:42:30
[Fri Jul 31 23:00:35 2015] [notice] Parent: Created child process 9456
[Fri Jul 31 23:00:35 2015] [notice] Disabled use of AcceptEx() WinSock2 API
[Fri Jul 31 23:00:35 2015] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Fri Jul 31 23:00:35 2015] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Fri Jul 31 23:00:35 2015] [notice] Child 9456: Child process is running
[Fri Jul 31 23:00:35 2015] [notice] Child 9456: Acquired the start mutex.
[Fri Jul 31 23:00:35 2015] [notice] Child 9456: Starting 25 worker threads.
[Fri Jul 31 23:00:35 2015] [notice] Child 9456: Listening on port 443.
[Fri Jul 31 23:00:35 2015] [notice] Child 9456: Listening on port 8648.
[Fri Jul 31 23:00:35 2015] [notice] Child 9456: Listening on port 443.
[Fri Jul 31 23:00:35 2015] [notice] Child 9456: Listening on port 80.
[Fri Jul 31 23:02:51 2015] [error] [client 127.0.0.1] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in Z:\\home\\role-play-engine.net\\www\\db.connect.php on line 7
[Fri Jul 31 23:03:42 2015] [error] [client 127.0.0.1] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in Z:\\home\\role-play-engine.net\\www\\db.connect.php on line 7
[Fri Jul 31 23:03:48 2015] [error] [client 127.0.0.1] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in Z:\\home\\role-play-engine.net\\www\\db.connect.php on line 7, referer: http://role-play-engine.net/admin.php
[Fri Jul 31 23:03:51 2015] [error] [client 127.0.0.1] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in Z:\\home\\role-play-engine.net\\www\\db.connect.php on line 7, referer: http://role-play-engine.net/admin.php

Is everything good in these logs? Should I change something in my Apache / PHP config ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
6
65536, 2015-07-31
@65536

it's time to switch to mysqli / pdo, and you can also switch from denver

A
Andrey Pavlenko, 2015-07-31
@Akdmeh

You can disable error reporting if the script is in production:
error_reporting(E_ALL ^ ​​E_DEPRECATED);
(write at the beginning of the main file).
But it's better to switch to PDO

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question