You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having a problem when assigning a value to a two-dimensional array while writing a PHP extension with PHPCPP library.
The extension works fine with PHPCPP5 + PHP5, but fails with PHPCPP7 + PHP7 (both on ubuntu 16.04). When works with PHPCPP7, I get a fatal error with message:
PHP Fatal error: Cannot make a variable undefined in /path/to/my/php/code.php
I tried to change Php::Value to Php::Array, the same error is produced. If I change test[2][0] = 100; to test["a"][0] = 100;, then there is no error. However, this is not what I want.
I am having a problem when assigning a value to a two-dimensional array while writing a PHP extension with PHPCPP library.
The extension works fine with PHPCPP5 + PHP5, but fails with PHPCPP7 + PHP7 (both on ubuntu 16.04). When works with PHPCPP7, I get a fatal error with message:
The function in the extension looks like:
I tried to change
Php::Value
toPhp::Array
, the same error is produced. If I changetest[2][0] = 100;
totest["a"][0] = 100;
, then there is no error. However, this is not what I want.The stack trace is as follows:
I am not sure if it is due to a newly introduced bug or there is a mistake I made in my code, please have a look. Thanks!
The text was updated successfully, but these errors were encountered: