Skip to content

Fails when passing php-object to the function #11

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
ghost opened this issue Mar 11, 2019 · 0 comments
Open

Fails when passing php-object to the function #11

ghost opened this issue Mar 11, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Mar 11, 2019

Steps to reproduce:

  1. Create function with non-object parameter, or with use of non-object parameter
  2. Pass to the function Object type on the interpretator side:
    psv.RunCode(' <?php issue11( new stdClass() ); ?> ');

Expected behaviour:
Type mismatch interpreter exception

Actual behaviour:
Access Violation error

Proposed solution:

  • Prevent php from attempting to convert Object to required argument type
@ghost ghost added the bug Something isn't working label Mar 11, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

0 participants