Skip to content

Commit cc6f98b

Browse files
authored
Merge pull request #229 from dannetstudio:fix/php84-pg-escape-string-deprecation
Fix PHP 8.4 pg_escape_string() deprecation in ez_pgsql
2 parents 780c1c1 + 0ba7a4e commit cc6f98b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Database/ez_pgsql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public function connect(
122122
*/
123123
public function escape(string $str)
124124
{
125-
return \pg_escape_string(\stripslashes($str));
125+
return \pg_escape_string($this->dbh, \stripslashes($str));
126126
} // escape
127127

128128
/**

0 commit comments

Comments
 (0)