Skip to content

Can´t parse rdkafka.h #2

Description

@dirx

Parsing rdkafka.h gives PHP Warning: Only arrays and Traversables can be unpacked in /app/vendor/ircmaxell/php-c-parser/lib/Context.php on line 140:

return $this->evaluate(...$this->definitions[$expr->value]);

You may replay this with:

--TEST--
Test  bug
--FILE--

#ifndef TEST
#define TEST 1
#endif

#if TEST
int bar;
#endif

--EXPECT--
int bar;

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions