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

Errors when disassembling #9

Open
cubicYYY opened this issue Dec 12, 2021 · 3 comments
Open

Errors when disassembling #9

cubicYYY opened this issue Dec 12, 2021 · 3 comments

Comments

@cubicYYY
Copy link

Traceback (most recent call last):
  File "./opcache_disassembler.py", line 307, in <module>
    ast = disassembler.create_ast(sys.argv[len(sys.argv) - 1])
  File "./opcache_disassembler.py", line 186, in create_ast
    functions = opcache['script']['function_table']['buckets']
KeyError: 'buckets'

command:python3 ./opcache_disassembler.py -c -a64 phpinfo.php.bin
Tried:changing PHP version(3.4~3.9),run in wsl,but none of them worked.
phpinfo.php.zip
Here's my file
:)Thanks

@obilodeau
Copy link
Contributor

There's probably something that needs to be adapted to support newer PHP version. This was developed for PHP 7.

Tried:changing PHP version(3.4~3.9),run in wsl,but none of them worked.

You are saying PHP version 3.4 or 3.9 but I assume you are mistaken since PHP 3 was released in 1998.

Unfortunately, we do not plan to maintain our OPCache disassembler. That said, we would accept contributions if you ever manage to understand what is not working properly.

@andypost
Copy link

andypost commented Feb 3, 2024

Is there plans to allow it parsing PHP 8 files?

@obilodeau
Copy link
Contributor

No, this was a proof-of-concept done by a former intern to demonstrate what we thought was problematic behavior with PHP. No work is planned for this project. Contributions would be accepted. Donating the project to another organization or individual would also be possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants