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

Weird bug with numbers or char or i don't know #413

Open
tserber98 opened this issue May 25, 2020 · 0 comments
Open

Weird bug with numbers or char or i don't know #413

tserber98 opened this issue May 25, 2020 · 0 comments
Labels

Comments

@tserber98
Copy link

$rem = 10;

var_dump(chr(ord('A') + ($rem - 10)));
Log
jppm start
-> win
-> app:run
-> install
java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
    $php_module_m077e3488bd374227a16264e32ed01e2b.__include(Lphp/runtime/env/Environment;[Lphp/runtime/Memory;Lphp/runtime/memory/ArrayMemory;)Lphp/runtime/Memory; @43: invokevirtual
  Reason:
    Type long_2nd (current frame, stack[3]) is not assignable to integer
  Current Frame:
    bci: @43
    flags: { }
    locals: { 'php/runtime/env/Environment', '[Lphp/runtime/Memory;', 'php/runtime/memory/ArrayMemory', 'php/runtime/memory/ArrayMemory', '[Lphp/runtime/env/TraceInfo;', 'php/runtime/Memory' }
    stack: { 'php/runtime/env/Environment', 'php/runtime/Memory', long, long_2nd }
  Bytecode:
    0x0000000: 2cb8 002d 4eb2 002f 3a04 2d59 1231 b600
    0x0000010: 373a 0557 1905 b200 3903 32b6 003d 572a
    0x0000020: 1905 1400 3eb6 0043 1400 44b6 0049 b600
    0x0000030: 4d88 b800 53b8 0058 01b8 005e 57b2 0061
    0x0000040: b0

        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
        at java.lang.Class.getDeclaredMethod(Class.java:2128)
        at php.runtime.loader.RuntimeClassLoader.loadModule(RuntimeClassLoader.java:139)
        at php.runtime.env.CompileScope.loadModule(CompileScope.java:618)
        at php.runtime.env.CompileScope.loadModule(CompileScope.java:622)
        at php.runtime.env.Environment.importModule(Environment.java:1253)
        at php.runtime.env.ConcurrentEnvironment.importModule(ConcurrentEnvironment.java:175)
        at php.runtime.env.ModuleManager.fetchTemporaryModule(ModuleManager.java:71)
        at php.runtime.env.ModuleManager.fetchModule(ModuleManager.java:41)
        at php.runtime.env.ModuleManager.fetchModule(ModuleManager.java:27)
        at php.runtime.launcher.Launcher.loadFrom(Launcher.java:121)
        at php.runtime.launcher.Launcher.run(Launcher.java:309)
        at php.runtime.launcher.Launcher.run(Launcher.java:248)
        at php.runtime.launcher.Launcher.run(Launcher.java:244)
        at php.runtime.launcher.Launcher.main(Launcher.java:426)
@dim-s dim-s added the bug label May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants