diff options
author | Davey Shafik <me@daveyshafik.com> | 2016-07-04 00:03:38 -0700 |
---|---|---|
committer | Davey Shafik <me@daveyshafik.com> | 2016-07-04 00:03:38 -0700 |
commit | 9fdbbf878acf0435557406716793f7611549d0d2 (patch) | |
tree | 220c7fc970cf35788432c4d7bac8089f748736cb /lib/mysql.php | |
parent | f117f7c0143f7b0845dab3852f84396de3991a3a (diff) | |
download | php7-mysql-shim-9fdbbf878acf0435557406716793f7611549d0d2.zip php7-mysql-shim-9fdbbf878acf0435557406716793f7611549d0d2.tar.gz php7-mysql-shim-9fdbbf878acf0435557406716793f7611549d0d2.tar.bz2 |
Fix issues found by <insight.sensiolabs.com>
Diffstat (limited to 'lib/mysql.php')
-rw-r--r-- | lib/mysql.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mysql.php b/lib/mysql.php index 9b82a93..17eb1b2 100644 --- a/lib/mysql.php +++ b/lib/mysql.php @@ -335,7 +335,7 @@ namespace { // @codeCoverageIgnoreEnd } - if ($class == null) { + if ($class === null) { $object = mysqli_fetch_object($result); } else { $object = mysqli_fetch_object($result, $class, $params); @@ -446,7 +446,7 @@ namespace { function mysql_escape_string($unescapedString) { - if (\Dshafik\MySQL::$last_connection == null) { + if (\Dshafik\MySQL::$last_connection === null) { trigger_error( sprintf( "%s() is insecure; use mysql_real_escape_string() instead!", |