Skip to content

always empty collection by binding to statement in php 8 #87

Open
@balukoff

Description

@balukoff

Summary of problem or feature request

i have php 8 and laravel 8. While binding oracle collections in Statement.php there is a check for oci-collection class. But in php 8 class is changed to 'OciCollection', and now we have empty collection anytime

Code snippet of problem

if (strtoupper(get_class($variable)) == 'OCI-COLLECTION') {

must be:
$collection_class = 'OCI-COLLECTION';
if(phpversion() >= 8)
{
$collection_class = 'OCICOLLECTION';
}
if (strtoupper(get_class($variable)) == $collection_class) {

System details

  • macOS High Sierra(docker container)
  • php 8.0.2
  • PDO-VIA-OCI8 Version 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions