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

OCIFetch(): This alias has been DEPRECATED as of PHP 5.4.0. Relying on this alias is highly discouraged. #862

Closed
walteroze opened this issue Sep 3, 2022 · 1 comment
Assignees
Labels
bug OCI8 (Oracle) Oracle DBMS (Tier 1) PHP8 PHP 8 compatibility issues
Milestone

Comments

@walteroze
Copy link

This alias has been deprecated and is no longer being accepted by php 8.
Must be fixed to use oci_fetch() function.

adodb-oci8po.inc.php line 242

change:

if (!@OCIfetch($this->_queryID)) {

to

if (!@oci_fetch($this->_queryID)) {

@dregad dregad self-assigned this Sep 3, 2022
@dregad dregad added bug OCI8 (Oracle) Oracle DBMS (Tier 1) PHP8 PHP 8 compatibility issues labels Sep 3, 2022
@dregad dregad added this to the v5.22.3 milestone Sep 3, 2022
@dregad
Copy link
Member

dregad commented Sep 3, 2022

There are several additional occurrences of deprecated OCI* aliases usage in the oci8po driver

drivers/adodb-oci8po.inc.php:195:       $fld->name = OCIcolumnname($this->_queryID, $fieldOffset);
drivers/adodb-oci8po.inc.php:199:       $fld->type = OCIcolumntype($this->_queryID, $fieldOffset);
drivers/adodb-oci8po.inc.php:200:       $fld->max_length = OCIcolumnsize($this->_queryID, $fieldOffset);
drivers/adodb-oci8po.inc.php:202:           $sc = OCIColumnScale($this->_queryID, $fieldOffset);
drivers/adodb-oci8po.inc.php:234:   /* Optimize SelectLimit() by using OCIFetch() instead of OCIFetchInto() >
drivers/adodb-oci8po.inc.php:242:           if (!@OCIFetch($this->_queryID)) {

dregad added a commit that referenced this issue Sep 3, 2022
@dregad dregad closed this as completed Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug OCI8 (Oracle) Oracle DBMS (Tier 1) PHP8 PHP 8 compatibility issues
Projects
None yet
Development

No branches or pull requests

2 participants