Skip to content

ibase_close() does not check proper resource type #96

@mlazdans

Description

@mlazdans

One can pass any resource to ibase_close() and it will reduce ref count:

$gz = gzopen("/dev/null", "w");
var_dump(ibase_close($gz));
var_dump(gzwrite($gz, "data"));

bool(true)

Fatal error: Uncaught TypeError: gzwrite(): supplied resource is not a valid stream resource

Related to #22

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions