Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Added ability to specify port #2622

Merged
merged 1 commit into from
Oct 6, 2012
Merged

Conversation

radnan
Copy link
Contributor

@radnan radnan commented Sep 29, 2012

No description provided.

@@ -225,6 +228,9 @@ public function connect()
if (isset($hostname)) {
$dsn[] = "host={$hostname}";
}
if (isset($port)) {
$dsn[] = "port={$port}";
Copy link
Member

Choose a reason for hiding this comment

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

Please move the variable out of the quotes:
$dsn[] = "port=" . $port;

Copy link
Contributor

Choose a reason for hiding this comment

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

@Freeaqingme that would conflict with the standards found here http://framework.zend.com/wiki/display/ZFDEV2/Coding+Standards#CodingStandards-VariableSubstitution and is inconsistent with the preceding block.

@Freeaqingme
Copy link
Member

@radnan Thank you for your pull request. Could you please add a unit test for this?

@ghost ghost assigned ralphschindler Oct 1, 2012
@ralphschindler ralphschindler merged commit 2f387d4 into zendframework:master Oct 6, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants