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

Segfault when passing non builder object in to Phalcon\Paginator\Adapter\QueryBuilder #14299

Closed
ruudboon opened this issue Aug 15, 2019 · 1 comment

Comments

@ruudboon
Copy link
Member

commented Aug 15, 2019

Expected and Actual Behavior

Exception when passing in wrong object. Currently results in Segfault

Provide minimal script to reproduce the issue

        $paginator = new Phalcon\Paginator\Adapter\QueryBuilder(
            [
                'builder'  => new \stdClass(),
                'limit' => 10,
                'page'  => 1,
            ]
        );

Details

  • Phalcon version: 4.0.0-beta.1
  • PHP Version: 7.3.7
  • Operating System: Alpine
  • Installation type: Compiling from source)

@ruudboon ruudboon changed the title Segfault when passing non builder object into Segfault when passing non builder object in to Phalcon\Paginator\Adapter\QueryBuilder Aug 15, 2019

@ruudboon ruudboon referenced this issue Aug 15, 2019
4 of 4 tasks complete
sergeyklay added a commit that referenced this issue Aug 15, 2019
@sergeyklay

This comment has been minimized.

Copy link
Member

commented Aug 15, 2019

Fixed in the 4.0.x branch. Thank you for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.