-
Notifications
You must be signed in to change notification settings - Fork 4
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
Transparent switch over for deprecated mssql DB driver. #226
Comments
Closes #224 Closes #225 Closes #226 Code Cleanup. File(s): base_ag_main.php : base_local_rules.php : includes/base_krnl.php : includes/base_net.inc.php : includes/base_state_citems.inc.php : includes/base_state_query.inc.php Code Cleanup. File(s): base_common.php Code Cleanup. Issue(s): #222 Function(s): Removed: BuildIPFormVars(), BuildSrcIPFormVars(), & BuildDstIPFormVars(). Function(s): BuildIPFormVar( ip, addr_type, criteria_instance ) Returns HTTP Query String fragment containing IP Address search criteria; or empty string on invalid IP. Note: Curently the NULL_IP constant is also treated as valid foe backward compatibility reasons. This "feature" will be removed in the future, when code depending on NULL_IP being in the HTTP Query String is removed. File(s): base_db_common.php : includes/base_db.inc.php Code Cleanup. Issue(s): #226 File(s): base_maintenance.php : composer.json : includes/base_auth.inc.php : includes/base_capabilities.php Code Cleanup. Issue(s): #225 File(s): base_stat_ipaddr.php Issue(s): #217 Code Cleanup. File(s): base_stat_uaddr.php Issue(s): #223 Code Cleanup. File(s): includes/base_log_error.inc.php Issue(s): #226 Function(s): returnBuildError( Desc, Opt, dll ) Added dll paramater to provide more meaningful error reports for Windows installations. File(s): includes/base_rtl.php Code Cleanup. Bumped RTL Version to 0.0.12 Issue(s): #224 #225 Function(s): BCMi() Returns true if BCMath is installed, false otherwise. : GMPi() Returns true if GMP is installed, false otherwise. : IPv6i() Returns true if RTL can handle IPv6 on this installation. Sets New Constant BASE_RTL_IPv6 accordingly. File(s): includes/base_state_criteria.inc.php Issue(s): #218 Unit Test(s): Covers BuildIPFormVar(), the following in the CriteriaState Class, ReadState().
Ok, @mesteele, it's in the devel branch, let us know how it works. Also, any help with getting the |
As long as the extensions are added to the extension_dir and added as an extension= they will load.
; The ldap extension must be before curl if OpenSSL 1.0.2 and OpenLDAP is used
|
Do all the DB extensions in the extension dir follow the file naming convention of The idea is that the dll referenced in an error message for windows users will not necessarily point to the specific dll that will fix their issue, but that the suggested dll name is close enough to the solution that they can look in their extensions directory, see what they have, and hopefully figure it out from there. For example, the |
The only extension dll names I'm not sure about are the old MySQL & MsSQL drivers. |
The official MS drivers for PHP 8.x are: php_pdo_sqlsrv_80_nts_x64.dll PHP.ini omits the php_ and the .dll - So the extension for Windows x64 PHP 8.2 and Apache would be: extension=sqlsrv_82_ts_x64 |
Thanks, that helped me refine the error message a bit more. Better than compile time options for building PHP from source, which most of the time doesn't apply to the situation, especially on windows. |
php-5.6.40-Win32-VC11-x64 php-5.6.40-nts-Win32-VC11-x64 php-5.0.0-Win32 |
Work on #216 & #231. Code Cleanup. File(s): admin/index.php : base_conf.php.dist : base_user.php : includes/base_constants.inc.php : includes/base_include.inc.php : includes/base_log_timing.inc.php : includes/base_output_html.inc.php : includes/base_template.php : includes/base_user.inc.php : index.php : languages/index.php : setup/base_conf_contents.php Code Cleanup. File(s): base_db_common.php : includes/base_log_error.inc.php Code Cleanup. Issue(s): #226 File(s): base_maintenance.php Code Cleanup. Issue(s): #229 File(s): base_stat_common.php Code Cleanup. Issue(s): #230 File(s): includes/base_db.inc.php Code Cleanup. Issue(s): #231 Additional logging to debug this. File(s): includes/base_krnl.php Bumped Kernel Version to 0.0.8. Code Cleanup. File(s): includes/base_rtl.php Bumped RTL Version to 0.0.13. Code Cleanup. File(s): phpcs.xml.dist : tests/phpunit.sh : tests/setuptestdb.php : tests/singletest.sh : tests/teardowntestdb.php Local & CI Test system adjustments. File(s): setup/setup_db.inc.php Issue(s): #228 File(s): tests/setupdb.sh Issue(s): #216
Need:
php.ini
lines for enabling the following:Extension=mysql
Extension=mysqli
Extension=pgsql
Extension=mssql
Extension=sqlsrv
.Extension=oci8
.We can detect when BASE is running on windows and issue a more appropriate error message about enabling the necessary extension.
Expected Behavior:
When
$DBtype
is set tomssql
, transparently switch over to thesqlsrv
driver.Current Behavior:
BASE crashes.
The text was updated successfully, but these errors were encountered: