Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constructor with same name as class #311

Open
petermoo opened this issue Oct 3, 2018 · 0 comments
Open

Constructor with same name as class #311

petermoo opened this issue Oct 3, 2018 · 0 comments

Comments

@petermoo
Copy link

petermoo commented Oct 3, 2018

Another thing going away and with warnings in PHP 7.2. In adodb.inc.php at line 236, replace the following code.
function ADODB_Cache_File()
{
global $ADODB_INCLUDED_CSV;
if (empty($ADODB_INCLUDED_CSV)) include_once(ADODB_DIR.'/adodb-csvlib.inc.php');
}
With something like:
function __construct()
{
global $ADODB_INCLUDED_CSV;
if (empty($ADODB_INCLUDED_CSV)) include_once(ADODB_DIR.'/adodb-csvlib.inc.php');
}
function ADODB_Cache_File()
{
$this->__construct();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant