Skip to content

ibase_close() does not check proper resource type #96

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions