Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixup for PR #3163

Fixed PR to not use warning/error suppression
  • Loading branch information...
commit 460840e2f35889c5c6eab3f94a993e1d48583d54 1 parent 3ce7e05
@ralphschindler ralphschindler authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 library/Zend/Db/Adapter/Driver/Mysqli/Connection.php
View
8 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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.