Permalink
Browse files

Fixup for PR #3163

Fixed PR to not use warning/error suppression
  • Loading branch information...
ralphschindler committed Dec 19, 2012
1 parent c5487e7 commit 466a9016e22812be916015536fc294db49f2e554
Showing with 4 additions and 4 deletions.
  1. +4 −4 library/Zend/Db/Adapter/Driver/Mysqli/Connection.php
@@ -172,11 +172,11 @@ public function connect()
if (!empty($p['driver_options'])) {
foreach ($p['driver_options'] as $option => $value) {
if (is_string($option)) {
- // Suppress warnings here
- // Ignore it if it's not a valid constant
- $option = @constant(strtoupper($option));
- if ($option === null)
+ $option = strtoupper($option);
+ if (!defined($option)) {
continue;
+ }
+ $option = constant($option);
}
$this->resource->options($option, $value);
}

0 comments on commit 466a901

Please sign in to comment.