1

Can someone help me to fixing the problem about connecting PostgreSQL with XAMPP?

The error is :

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Misc has a deprecated constructor in C:\xampp\phpPgAdmin\classes\Misc.php on line 8

I use PostgreSQL version 9.6.2-3 and XAMPP 7.1.1.0

1 Answer 1

1

That (notice) message is based on changes to PHP 7.

So an old way of using a constructor is still in use, is what that message means. It will be ok at the moment, until the support is completely removed in the future. However, I don't believe that should/would cause any connection trouble ?

What is expected is instead of having a class with a constructor like this:

<?php
    class foo {
        function foo() {
            echo 'I am the constructor';
        }
    }
?>

... would now be expected to look like this:

<?php
    class foo {
        function __construct() {
            echo 'I am the constructor';
        }
    }
?>

See the first section section of this PHP 7 deprecation info.

You could apply that change yourself, just comment-out the old way, and use the other constructor form.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.