Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pg_escape_string() throws deprecation warning when called without connection on PHP 8.1 #956

Closed
1 task done
dregad opened this issue Apr 16, 2023 · 0 comments
Closed
1 task done
Assignees
Labels
bug pgsql PostgreSQL (Tier 1) PHP8.1 PHP8.1 Compatibility Issues
Milestone

Comments

@dregad
Copy link
Member

dregad commented Apr 16, 2023

Description

PHP Deprecated: pg_escape_string(): Automatic fetching of PostgreSQL connection is deprecated

Environment

  • ADOdb version: 5.22.5
  • Driver or Module: pgsql
  • Database type and version: PostgreSQL
  • PHP version: 8.1+
  • Platform: any
  • I have tested that the problem is reproducible in the latest release / master branch

Steps to reproduce

Call qStr() with a closed connection.

Expected behavior

No warning or error.

Additional context

Original report by @Mike-Benoit in #952

@dregad dregad added bug pgsql PostgreSQL (Tier 1) PHP8.1 PHP8.1 Compatibility Issues labels Apr 16, 2023
@dregad dregad added this to the v5.22.6 milestone Apr 16, 2023
@dregad dregad self-assigned this Apr 16, 2023
@dregad dregad closed this as completed in b881dea Apr 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug pgsql PostgreSQL (Tier 1) PHP8.1 PHP8.1 Compatibility Issues
Projects
None yet
Development

No branches or pull requests

1 participant