-
Notifications
You must be signed in to change notification settings - Fork 269
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
Numerous drivers make unneeded PHP4 version checks #584
Comments
@mnewnham Great minds think alike ! I noticed some occurences of this yesterday, and added this to my todo list too 😃 Since you assigned the issue to yourself I assume you're working on it, so I'll wait for your patch. I would suggest to get rid of the ADODB_PHPVER constant (defined in adodb.inc.php lines 181-190) entirely, and just leave a check to die if PHP < 5.0. Note that there are also several checks on PHP_VERSION, which should be reviewed as part of this work item too. |
Could you take a look at the mssql driver for me, the way I read it is that if the php version > 4.3 then the global ''ADODB_mssql_mths'' is never declared correctly. If the inbound date passed to unixDate() was in the format "M d y", then the function would crash. Either: |
In this context, the That being said, I don't know enough about MSSQL and how the drivers work in later versions of PHP to be able to reply with absolute certainty, but it looks like this whole $ADODB_mssql_xxx is only needed for PHP <4.3. |
In that case I'm going to strip all of it out. |
I've just seen This. I was not aware of this (having migrated my own stuff to mssqlnative years ago), but I thought that it was still active. I would say then deprecate mssql in 5.21. I'm going to open a new thread about removing a whole bunch of drivers in 5.22 and I'll add that to the list |
Didn't notice either, as I don't use MSSQL at all...
Sounds good. I'm starting to think that with all the removed stuff, maybe the next release should be 6.0, and include namespacing and refactoring of the library into individual classes (one per file), to be PSR4 compliant. |
The following drivers check for PHP version 4.0.5 and higher
ads, firebird, ibase, mssl, mssqlnative, mysql, oci8, oci8po odbc, postgres64, sybase
The text was updated successfully, but these errors were encountered: