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

mssql.compatability_mode fix #385

Closed
wants to merge 3 commits into from

Conversation

vlajos
Copy link
Contributor

@vlajos vlajos commented Jul 14, 2013

referencing to this PR: #383
this request contains the mssql.compatability_mode cfg directive fixes.

@vlajos vlajos mentioned this pull request Jul 14, 2013
@@ -243,7 +243,7 @@ static PHP_INI_DISP(display_text_size)
STD_PHP_INI_ENTRY_EX("mssql.max_links", "-1", PHP_INI_SYSTEM, OnUpdateLong, max_links, zend_mssql_globals, mssql_globals, display_link_numbers)
STD_PHP_INI_ENTRY_EX("mssql.min_error_severity", "10", PHP_INI_ALL, OnUpdateLong, cfg_min_error_severity, zend_mssql_globals, mssql_globals, display_link_numbers)
STD_PHP_INI_ENTRY_EX("mssql.min_message_severity", "10", PHP_INI_ALL, OnUpdateLong, cfg_min_message_severity, zend_mssql_globals, mssql_globals, display_link_numbers)
STD_PHP_INI_BOOLEAN("mssql.compatability_mode", "0", PHP_INI_ALL, OnUpdateBool, compatability_mode, zend_mssql_globals, mssql_globals)
STD_PHP_INI_BOOLEAN("mssql.compatibility_mode", "0", PHP_INI_ALL, OnUpdateBool, compatibility_mode, zend_mssql_globals, mssql_globals)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here I think we should support both names, make them refer to the same variable. Otherwise people will get surprises on upgrade if their php.ini has non-default values.

@vlajos
Copy link
Contributor Author

vlajos commented Jul 15, 2013

I made a small modification to allow the use of the old (misspelled) cfg argument also.

@kaplanlior
Copy link
Contributor

@vlajos thanks for the addition. Worth to add a comment near that line to explain the dual lines.

@kaplanlior
Copy link
Contributor

Great. @smalyshev, do you think it's ready for merge or do you have further comments?

@vlajos
Copy link
Contributor Author

vlajos commented Jul 17, 2013

ping.

@php-pulls
Copy link

Comment on behalf of stas at php.net:

merged

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

Successfully merging this pull request may close these issues.

4 participants