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
Labels
bug A bug report status: medium Medium

Comments

@ruudboon
Copy link
Member

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 mentioned this issue Aug 15, 2019
4 tasks
sergeyklay added a commit that referenced this issue Aug 15, 2019
@sergeyklay
Copy link
Contributor

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

@niden niden added bug A bug report status: medium Medium and removed Bug - Medium labels Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug report status: medium Medium
Projects
None yet
Development

No branches or pull requests

3 participants